Introduction: A Remote Controlled Power RGB LED Mood Light.
Control the colour of a powerful LED light beam with a remote control, store the colours and recall them at will.
With this thing I can control the colour of a bright light into many different colours using the three fundamentals colours : red green and blue. Adding them toghether with different intensity can yeld very great a range of colours from the visible spectrum.
Specifically my mood lamp can shift colours through 32 intensity values for each RGB colour giving
32*32*32 = 32768 different combinations of hue, intensity and brightness. It can also store 10 different combinations can be turned on or off, all of these through a TV remote control.
The intensity of each red, green and blue component is done via PWM so heat dissipation is kept to a minimum.
The circuit is simple and there are no pushbuttons as control is done entirely through the remote control.
I use this circuit to light a flower vase. The flat case of the box I chose does a good job at balancing the vase.
The pictures provide some ideas.
One day I am possibly buying one of those glass cubes with LASER created 3D shapes inside to go with the lamp. For now glass vases are just fine.
UPDATE : I uploaded V1.1 where at power up the micro outputs the values from memory number 0. Just make sure you store your power up colour in memory number 0 and at power up it will show up. If you'd rather go for lights off, just store all blanks in memory numer 0.
Ciao
Hey I'm on the best of Instructables book !
Step 1: Description
The LED I chose is a Seoul Semiconductors single chip. It is pretty expensive, but it is powerful giving a very bright light. It provides also an excellent colour blending.
It could be replaced by cheaper and probably equivalent ones; when I designed this, it was the only one suitable I could find.
Due to the LED's high power rating it is absolutely necessary to provide it with a reasonable heat sink like the one you see in the photos; before putting the finished circuit in a case check the LEDs for heat at maximum intensity on all of the three colours. The current limiting resistors I chose match my LED only !
I chose a 10% less than the typical recommended V-I values on the datasheet curves.
Being the circuit in a plastic case it is not safe to pull dissipation any higher while a metallic case with an external dissipation scheme might make safe to pull the LEDs currents a make a more powerful beam.
Different LEDs do have different ratings. Check the datasheets for maximum dissipation and recommendations for your LED.
I purchased my LED online from Distrelec. Farnellinone carries them also.
The drivers are surplus NPN transistors over-dimensioned for the current required. Less powerful TO126 encased NPNs should do fine. As the Transistor are driven with PWM, their dissipation is kept to a minimum so heat sink is not necessary.
The IR receiver is one i savaged from a dead TV toghether with the remote control. The receiver has a metallic screen that should be grounded to 0V. Some newer small-sized ones are from Temic and can be bought from the same sources as above. Practically any receiver works fine, provided that it has 5Volt logic levels (and supply) and has the same (or close) carier frequency as the remote transmitter (typically 38-50kHz). When demolishing a TV or any other remote controlled piece of equipmentm, a good rule is to save both the remote and the receiver. By the way, I love saving transformers, VFD, motors as well, but that's another story.
This lamp uses an european RC5 standard for Philips TV remotes; Any programmable remote control that supports Philips TVs should be fine, I tried one and it works.
Both remote decoding and PWM generating routines should be understandable from the source code I commented.
The circuit must be supplied from a 5 Volt, 1A good source. Initially I used a linear voltage regulator IC on the board into the case, but the heat generated by the regulator was way too much to be easily dissipated from within the box, so I removed it and now I'm using anexternal waal adapter with a regulated 5V 3A output. The LEDs are powered directly from the 5Volt, so any variation would trash your precise calculations for currents to flow through the LEDs, possibly damaging them. So, the better and stable the supply, the better.
The case I chose is a Teko TB9, it looks elegant to me and small transparent objects can be placed on top of the case+LED without the risk of falling.
Step 2: Operation
The remote controls every operation the RGB lamp.
Remote control channel buttons 1, 2 and 3 pull up R, G and B intensity, buttons 4, 5 and 6 pull down the intensity; Channel up and channel down buttons shuffle through the 10 stored values of R G & B intensity.
You can access directly the preset with the 'volume+' button followed by the preset number (0 to 9). You can store your preferred colour pressing 'volume-' followed by the preset number (0 to 9).
The power on/off button does exactly what you might expect : it turns on and off the lamp.
Step 3: Construction
I designed a PCB for the circuit but did not use it. I used perfboard instead.
The pictures should give information enough for anyone willing to replicate exactly what I did. Depending on the height of the box of your choice, the square hole could be not necessary.
Again. keep in mind the heat generated by the LED. Also if you are planning to use this thing to light up a glass object from below, the latter may prevent heat from flowing.
Use a 5Volt regulated wall adapter 1.5A .
During the first uses, monitor the heat generated as it depends a lot from the environment (plastic case, heat insulating stands, objects on the LED).
Never stare at the beam. The light is strong and concentrated.
The microprocessor must be programmed. I used WinPIC. The hardware interface is the one described here.
Attached you can find the schematics, the PCB (check this before, as I never used it !), the source code fully commented and the HEX file to burn directly into the PIC. The software was designed with MPLAB by Microchip.
Hope you enjoy this instructable. If you make your own lamp, please share pictures of your creation and please leave a comment.
Ciao
5V.
113 Comments
8 years ago on Introduction
can i extend this circuit upto 3 LED with the same circuit by adding proper heat sinks ?
10 years ago on Introduction
Hi to all. I have a serious problem with this project...
It does not react except of random change off colour on any of 400 codes of universal remote.
Let me just ask, can i use 16F627 [not 627A] or 16F628A, because i cant find anywhere 16F627A???
I have 16F627 and i cant program it at all, error ocures. 16f628a i programable, but it is not working as it should.
And at the end, what is the difference between 627 and 627a?
Thanks!
11 years ago on Introduction
Dear all! Is there users which use this device with RGB led strip(aprox 4 meter lenght). If not, is there any idea what components(or component nominals) need change so safety use this great device?Thanks all for help!
12 years ago on Introduction
Wow, what a great contribution! I have to return to the site to keep reading. You make assembly code understandable ( I have always found assembly hard to follow) with your comments and neat form. I am looking forward to finding time to build this. Thanks for sharing !
Build_it_Bob
12 years ago on Step 3
great design but for doing we need pretty interest
12 years ago on Introduction
Try to connect an LED at the output of the IR receiver and see if it lights up a bit when you press a button on the remote. Specific code to test the hardware is probably overkill. Car Led
13 years ago on Introduction
Is there a way to get a chip pre-programed? or do you know where I could get one programed?
Reply 13 years ago on Introduction
Sorry, I can't supply any preprogrammed chip. They are simple to program and the internet is full of how-to's. Please try Googling or ask an expert friend.
Some reader might start a simple service (with a veeeeery reasonable fee, remember : this project is CC non commercial, but a reasonable fee would be fine for me to be charged to the buyers ! )
In case someone wants to volunteer, just write.
Thank
A.
14 years ago on Introduction
Can anybody provide a data sheet for the 2SB2012 transistors in the schematic. Is it a typo, I can't find anything on them.
Reply 14 years ago on Introduction
Ciao, It's not a typo, I actually used the 2SB. I'm sure I have the pdf datasheet somewhere. I of course put it in somewhere I could find it easily...:( Anyways, choose the NPN transistor depending on the power requirements of your LEDs, so Any Radio Shack low frequency NPN (darlington should work also) transistor should do then. If you're in doubt, just write with the specs of your LEDs.
Reply 13 years ago on Introduction
Under the JIS coding scheme, 2SB* is an audio-frequency PNP transistor. Are you quite sure it's not a 2SC2012 (3A Ic, TO-220 package)?
Reply 13 years ago on Introduction
Ooops ! I insisted one time too much !
I opened the box to check and found that I actually used a 2SD 2012.
Sorry for the inconvenient.
I uploaded the pdf file.
Best to all
Alex
13 years ago on Introduction
why don't you make a rc5 encoder?(with pic) it is one of the most used codes by hobbyists!
Reply 13 years ago on Introduction
An RC5 encoder is one of the projects I never finished. I do not promise but one day I might spend some time and finalize it. Best A.
13 years ago on Introduction
have you engaged cp(code protection )? i want to be able to reuse my pic.
Reply 13 years ago on Introduction
Ciao 12V No, I did not engage CP. The statement _CONFIG _CP_OFF & _WDT_OFF & _BODEN_ON & _PWRTE_OFF & _HS_OSC & _MCLRE_ON & _LVP_OFF explicitly excludes CP. However if you erase a CP'ed PIC you get back a clean and reusable PIC. A.
13 years ago on Introduction
Hi, This is a very good Instructables it possible to increase the number of preset channels from 10 to say 30 or more . I am using PIC16C628A micro and any possibility of cyclic colour fading in/out.
13 years ago on Introduction
Would there be a way to make this controll an LED string, and do fades and strobe? Also, could the reciever and LEDs run off of a battery? thanks
14 years ago on Introduction
hi iam new to electronics , this project looks realy worth while, i have nearly sourced all the components, could any one tell me what what the 2 components are after the qaurtz 20 mhz are, sorry for the stupid question also the rating of the 2 black capcitors. i have a little experience with pic programmers thats about it iam afraid. thanks from brian
Reply 14 years ago on Introduction
Ciao Brian, the two small components are the ceramic capacitors connected to the quartz towards ground. They are small 15pF 50 Volts (could higher say 100 Volts but size would increase). The two round brown electrolytic capacitors are 100 micro Farads 16 Volts (again, could be 25 or 35 or 63 Volts but at cost of increased size). In the schematic I put just one electrolytic capacitor : the second is in parallel to the one in the schematic, simply placed near the LEDs and transistors connections. Just be careful to make clean solders, remove with alcohol any extra solder paste that may have remained in place and didn't evaporate with heat, especially around the quartz. Buon divertimento, have fun. Alessandro