3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

RGB LED Driver/Controller Help?

I officially feel inept.  As I am more of a wordsmith than electrician, this should come as no surprise to me.  Anyway, I have 6 RGB LEDs that I am embedding into a DIY background for my aquarium.  I bought RGB, LED strip lights which came with a controller/driver which I have installed in my canopy.  I thought it would be cool to place 5mm RGB lights encased in siliconed capsules in the caves and recesses of my background.  I have already wired and tested the LEDs underwater and all works as planned...individually. 

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
sort by: active | newest | oldest
Nov 7, 2011. 1:50 PMfrollard says:
6 rgb leds is 18 leds...Do you want individual colour control on each, or simply 3 sliders for overall colour control (making only 3 channels)...

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? :)
Nov 7, 2011. 4:42 PMfrollard says:
Right, so rgbx6 = 18 control circuits; that's pretty really hard without a microcontroller.

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.
Dec 3, 2011. 5:33 AMfrollard says:
That should work, and yes you need INDIVIDUAL resistors for each diode (3 per rgb led).

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.
Dec 5, 2011. 6:54 PMfrollard says:
That is exactly right! Great job on doing the homework! 20mA is suitable for most leds. 25 is ok but they will burn out 10x faster, 15 is great because they will last seemingly forever.
**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.
Nov 7, 2011. 3:13 PMsteveastrouk says:
Hi Eric,

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
Nov 8, 2011. 1:40 AMsteveastrouk says:
Middle pin is usually the one marked with the arrow.

If I knew what current your LEDs needed, I'd tell you what all the parts you need are.

Steve
Nov 8, 2011. 1:46 PMsteveastrouk says:
If you;re in the USA,

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
Nov 9, 2011. 8:25 AMsteveastrouk says:
Try 47 Ohm.
Steve

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!