This simple mood light controller has three PWM controlled channels; red, green and blue. Each capable of delivering 100 mA, or about five LEDs. This can easily be improved by using a more powerful transistor. I’ve used 3x3 LEDs soldered to a tiny circuit board as the light source, and placed them inside a frosted glass. A better solution would be to use a powerful RBG LED. Just remember to use another transistor if you want to use bigger LEDs.
Table of content
The settings can be changed with four DIL-switches:
- Delay between color changes (long / short)
- Fade speed when changing color (fast / slow)
- Fade when changing color (on / off)
- Color mode (one color / all colors)
- PD.0 DIP-Switch 1
- PD.1 DIP-Switch 2
- PD.2 DIP-Switch 3
- PD.3 DIP-Switch 4
- PB.1 (OC1A) Red LED
- PB.2 (OC1B) Green LED
- PB.3 (OC2) Blue LED
Connector for LEDs
- Red (0V)
- Green (0V)
- Blue (0V)
Simple mood light controller with three PWM channels, written with BASCOM-AVR.
You may also like
A 3W Prolight RGB LED mounted on a heat-sink, with rubber feet to support e.g. a glass ball.
Turn any RGB LED into a mood light with this controller. Uses an AVR ATmega8 microcontroller.
Measures light intensity and shows the value on a LED display, if value passes over/under the set point the output is enabled. Uses the AVR ATmega8 microcontroller.
- Created Jan 15, 2007
- Last modified 1 week ago
- Project status: Given away