Simple RGB LED Color Mixer using LM317 IC

The post explains a simple LM317 IC based RGB 3 watt LED color mixer circuit, which can be used for demonstrating the color mixing effects of red, blue, green colors as specified in the standard color charts. The idea was requested by Mr.Praveen.

Technical Specifications

My name is Pravin, I work in school as Physics technician.I need to show kids colour mixing of red green and
blue. I would like to be able to vary the brightness of the three
colours LEDs to show the effect it has on screen. I have 3W RGB LEDs. 
Could you please help me to make a circuit . The simple the better.I have tried to make one with LM317 IC. 


Analyzing the RGB LED Specifications

The following image shows a typical 3 watt RGB LED.

According to the datasheet of this LED the three leads on each side correspond with the three leads on the other side on a straight line such that the two straight ends left to right form the terminals of the red, green, blue LEDs embedded respectively inside the package.

Therefore, the upper most left, right end to end leads may form the cathode, anode of the red LED, the center left, right leads may correspond to the green LED, and identically the lower most left, right end to end leads may signify the terminals for the blue LED.

How to Configure the LED Pinouts

Configuring these leads of this RGB LED such that the individual colors can be adjusted separately, is actually quite easy.

The idea is simply to integrate three separate adjustable voltage regulators for these three LEDs, for example by using a LM317 voltage regulator, as shown in the following diagram.

Simple RGB LED Color Mixer using LM317 IC

Using LM317 Regulator for the Control Circuit

Referring to the above diagram one can visualize that the three LM317 voltage regulators are in fact exactly identical with their part and wiring configuration.

Each of the modules have the facility of voltage adjustment and are all current controlled through a BC547 transistor and a resistor Rc.

The leads of the 3 watt LED are hooked up individually to the outputs of the 3 LM317 circuits, while the input is fed to all the 3 modules through a common DC source which could be a SMPS adapter rated appropriately for handling the RGB illumination.

The anode, cathode orientation of the LED is also indicated in the diagram which must be carefully and correctly set before connecting them to the 317 outputs.

Once everything is completed, and the power is switched ON, the voltage control feature present in the LM317 modules can be used for setting up the illumination levels of the respective LEDs discretely for creating any of the specified color effects, right from the primary RGB to voilet, indigo, orange, maroon etc etc.

The 10K presets of the 317 circuit can be replaced with 10K pots for enabling an external control for the intended color mixing effects on the LED.

The value of  Rc can be calculated by using the following formula:

Rc = 0.6/LED current rating

Simple RGB Color Mixer using Transistors

Simple RGB Color Mixer using Transistors

For color mixing, 3nos of 8050 variable voltage power supply could beuilt and their outputs connected with points A, B and C.

For creating fading effect, fading circuit could be connected to point E

For flashing effect point F could be used for supplying the flashing signal.

Need Help? Please send your queries through Comments for quick replies! And please Bookmark my site :)


Claudiu Dinca said…
which is the functional range of voltage
Swagatam said…
set it as per the specs of the LED...input can be minimum 3V higher than the LED voltage spec
Linas said…
hello, would this circuit work for RGB led strip?
Swagatam said…
yes it can be used with any RGB just need to set the voltage accordingly
GeoffN said…
Hi Swagatam, I have some 3 watt RGB LEDs on a star base that have a common cathode, could you suggest a circuit setup to drive these. I have been toying with a PNP and NPN circuit with an Arduino but wasn't very successful.
Swag said…
Hi Geoff, could you please specify on what manner or mode would you want to illuminate them?
GeoffN said…
Hi Swagatam, thank you for your reply. At the moment I only have two of them to play with, so I was thinking of just getting them illuminated as single RGB and then mixing the colours and fading and flashing. These are the specs for them Red: 2.5V ~ 3.0V, 350mA, Green: 3.2V ~ 3.8V, 350mA
Blue: 3.2V ~ 3.8V, 350mA.
Swag said…
Hi Geoff, and how do you want to implement the steps, through automatic sequencing or manually through a switch and potentiometer?
GeoffN said…
Hi Swagatam, I will be using the switch and potentiometer.
Swag said…
Hi Geoff, I have updated a design idea which you could try. If you succeed in building it, please send the video clip to my email, if possible....
GeoffN said…
Thanks Swagatam, I will give it a go. The diodes, will 1N4818 suffice?
Swag said…
You are welcome Geoff, since the LEDs are high watt, the diode must be 1N4007 or higher.

 Follow on G+  Follow on Facebook   Follow on Tweeter  Follow on G+  Follow on G+

Contact me for Customized Circuits


Email *

Message *

Follow Homemade Circuits