RGB LED Driver/Controller Help?
To my question: I have enough know how to complete the simple circuit with a cell battery, but I want to control the LED's, inexpensively, with some type of knob control (potentiometer??? I have many from an old classroom) so that I can "color-mix." My research seemed to indicate arduino as my only option. I'm not really interested in that. So? Any thoughts? A schematic even a dummy like me can follow with six RGB LEDs??
Thanks for the help. I will be posting the background build once I am through.
Sincerely,
Eric
18
answers
|
Answer it!
|
There are LOTS of led driver circuits here on ibles. Some use microcontrollers/arduino, some just use less efficient pot/mosfet drivers that limit the power that way.
What EXACTLY do you want control over, and we'll be happy to help? :)
Not sure if I am using the correct vernacular, but I want to be able to control each color and its intensity in each LED. So like....R @ 70%, G @ 50%, and B @ 100%..... or R@100%, G@0%, B@100%.... and so on. Does that make since...err, sense?
Thanks for the help,
Eric
If you want all 6 rgb leds to show the same colour, (just 1 rgb channel) is 3 controls. Steveastrouk has a great circuit; not extremely efficient at less than 100% brightness, but definitely easy and inexpensive.
Sincerely,
Eric
I could do the math for you, but will again point you to an led wizard -- in this case you're running 6 parallel leds on one circuit, so you want your forward voltage to closely match your led forward voltage.
So, I used:
24v Power Source (old laptop)
3.5 as my forward voltage
20mA as my forward current (wizard suggested)
18 total LEDs (6 p/color)
It suggested 1/4w resistor @ R = 150 ohms p/6 LEDs.
If I run it this way will I be able to run different configurations of lights? Green On, Blue On, Red Off..... for example .... or...
Green Off, Blue Off, Red On... as another.
The LEDs are set into my project and replacing a burned out LED will be near impossible. Should have tested the circuits before moving forward. Oh well. Thanks for any help. Sincerely, Eric
**Important!!!**
red, green and blue leds take DIFFERENT voltages because they have different chemicals inside!
Run the simulator again saying 24v input, 20ma but only 6 leds.
Change the Vf for each colour to find the value.
Red typical: 1.8-2.0V
Green typical: 2.0-2.5V
Blue typical: 3.4-3.8v
http://www.oksolar.com/led/led_color_chart.htm (use the real numbers from your real led's datasheet!)
If you want to control rgb individually, you'll need to add a switch in series with each resistor (or on the + side of each string if you prefer). Good design would have all the components close to one another -- so switch+resistor is a good thing.
**see picture**
Advanced:
Now, in place of a switch, you could use a transistor or relay, which allows 'something else' to control whether the string is turned on. The advantage to the transistor route, is you can use a micro-controller (arduino etc) to dim the leds with PWM, making thousands of colours instead of 7.
Vf stands for forward voltage correct? Should I use the Min or Typ forward voltage number in the wizard?
I am all about the KISS rule on this one. I would love the idea of more color control, but without detailed, do-this-then-do-that directions, it is a little over my head. Not to mention that would significantly raise the cost...I think?
Thanks again!
Use three circuits like these, one for red, one for green, one for blue. Put each colour in series, and run them from a 24V supply
If I knew what current your LEDs needed, I'd tell you what all the parts you need are.
Steve
Radio Shack for
3 x LM317 regulators.
3 x 5k potentiometer
3 x 50 Ohm 1/8 watt resistors. (instead of the 0.05 Ohm above)
Forget the 1000Ohm resistors shown in the circuit above
Once I have it all, what do I do with it? I have no idea what the diagram up there is telling me. Now I know how my new Chinese students feel when I am giving them assignments in my classroom =0)
Eric
I have attached a diagram. I hope I make sense in it, but I believe it shows what I should do. Could you verify that it would work without burning up my LEDs but still be bright? I am unsure of what power supply to use. I have several lying around. How many volts, etc? Do I need resistors?
Let me know what you think.
By the way, I have been showing my language arts students our exchange to demonstrate the power of the Internet community and collaboration. They are learning a lot about being able to say, "I don't know how, but I am willing to look for answers."
Sincerely,
Eric
Thanks again for your time.
Eric
![]() |





































