In this page we will introduce a great project designed by Toon Beerten. His project named "DIY Led Mood Lamp" can become a very interesting add-on for your room that's absolutely sure it will impress everyone. As you can see on the photos, we talk about a color fading lamp, that looks amazing!
The purpose of this page is to try to give some hints building it successful. This high power led mood light is based on PIC16F628 and the ability of this mcu to produce PWM pulses. Varying pulse width we can produce millions of color combinations using only the three basic colors. So only one RGB (Red-Green-Blue) led is capable producing a rainbow of fading colors.
With the help of four switches we can handle all functions of the lamp. We can choose fading or jumping between colors, we can select a rainbow style or a random color changing behavior, we can choose slow or fast changing of colors and we can pause on a desired color.
Finally we will make some power dissipation measurements to help us select an appropriate power supply unit.
Housing for best color diffuse
You can use your imagination to find a housing that will be able to diffuse colors uniformly. Color difussion is necessary to achieve best results. In original design the author used the 45cm IKEA Mylonit lamp. That's a great housing for your lamp. Instead you can use the smaller 31cm IKEA Mylonit lamp with the same amazing results. That's the lamp we used in our construction.
In our research we found other lamps (ex. sphere shape) that are ideal for housing your big led.
High Power LED
The led used is a high power 3W RGB LED. It can be found on ebay at LEDSEE-electronics. You can also check ebay for other high power RGB leds. It will do the jod the same way. Details of this brilliant led shown below.
The schematic used is shown in the next image. It's as simple as it shows. Take care on the correct transistor mount and correct polarity of power source.
Here is a list of the components i used for making the led mood lamp.
On the next image you can see the circuit arranged on a perforated board.
Programming The PIC 16F628 Microprocessor
Just use your programmer and upload the .hex file on your PIC.
For successful results you should pay attention on the fuse bits. You should enter the correct fuses as noted on the following table.
DIP Switches functions
A good way to mount the circuit board is to use a hot glue gun to "mold" the circuit underneath the lamp housing. There is plenty of space there for your board. At the next photos you can see the circuit board mounted on the small 31cm IKEA Mylonit Lamp.
Update - 10/2009
Steve Rougier made improvements on the original code and schematic adding additional operation modes. For detailed info and for updated source code check on this zip file.
PCB Pricing: https://jlcpcb.com/quote