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 Color Controllable High Power LED Room + Spot Lighting

Step 7Selecting resistors and dials

selecting resistors and dials
the exact resistor values you use depend on the number and type of LED's and the power supply voltage.


Selecting R3 sense resistor
R3 is the "sense resistor" for the current-limiting circuit. select the value of R3 as follows: R3 = 0.55 / (LED string current). so for my circuit I have R3 = 0.55 / 0.8 = 0.69 ohms. resistors don't come in every possible value, the closest match was 0.68 ohms. you also need a resistor that can handle a bit of power, use this guideline:

LED string current:
less than 200mA: standard 1/4 watt resistor, search digikey for: "yageo CFR-25JB"
less than 1200mA: 2 watt resistor, search digikey for: "panasonic ERX-2SJR", they go down to 0.47 ohms.
1200mA to 5000mA: use a couple of 2-watt resistors in parallel, or else try: "huntington ALSR-5". (the limit for the voltage regulator we are using is 5 amps).

note that the current-limit is not especially accurate, using just the calculation it might be 15% off. if you need it more accurate, you will need to build your circuit and then test a couple of resistor values. note that the current limit will decrease as the temperature of Q1 goes up - that's a feature!


Selecting R4 control slider/dial
First choose if you want a slider or dial! this is your user interface for your controls. It's less work to make a control panel using dials, because you just drill a hole for them, but you might prefer the look & feel of the sliders. I went with the sliders, but you'll see how much of a hassle they were later. any dial or slider between 2k-ohm and 10k-ohm will work. a 2k-ohm is the best because it allows precise calculation of the output voltage without testing. for sliders, i was only able to find 10k-ohm sliders which required a bit of trial-and-error to get the output voltages correct.

Slider: search digikey for: "panasonic EWA-Q12C15B14", a 10k-ohm linear taper slider
Dial: search digikey for: "CTS 270x232a", a 2k-ohm to 10k-ohm linear taper dial w/o switch


Setting R1 and R2 control range resistors
The combination of R1, R2 and R4 set the output voltage (= LED brightness) of the regulator. the output voltage is approximately equal to: 1.25 * (1 + ((R2+R4) / R1)). This becomes less accurate with larger R values. With a 2.5k dial for R4, the formula will be very close, with a 10k dial, you'll need to hand-test your R1, R2 values. below i work through two examples: one with 10k slider and one with 2.5k dial.

We need high-precision resistors for R1 & R2 (that means 1% accuracy rather than the common 5% accuracy). Search digikey for: "yageo MFR-25FBF" which will show all the available values.

So how do we use that output voltage formula? we want to choose our values of R1 & R2 so that when the dial is all the way to the left the LED's are just turned off, and so that when the dial is all the way to the right the LED's are at maximum power. To do that we need to know the voltage across the LED's where they are just turned off, and the voltage across them at our maximum set current. You can refer to the LED spec sheets from the manufacturer, or to my Power LED Data Handy Reference Chart where i've listed some typical working values.


Example 1: R1 & R2
here's the calculation for my circuit using values from the 'handy chart' above.
for 5 x red LED, our "turn on" is at 5 x 1.8 = 9V, and maximum power is at 5 x 3.8 = 19V.
for 5 x green or blue, "turn on" is at 5 x 2.4 = 12V, maximum power at 5 x 3.8 = 19V

using the regulator's output voltage formula to calculate R1 and R4 for the red led's using my 10k-ohm slider (which is 0 ohms at turn-off and 10k-ohms at maximum power):

Vout = 1.25 * (1 + ((R4+R2) / R1))
9V = 1.25 * (1 + ((0 + R2) / R1))
19V = 1.25 * (1 + ((10,000 + R2) / R1))

solving the two equations gives:
R1 = 1250 ohm
R2 = 7750 ohm

using the 10k-ohm slider there is a bit of error in the calculation compared to practice, so experimentation led to using the following values: R1 = 1.2k-ohm, R2 = 6.8k-ohm with a tested output of 9V to 20V

similarly with the green and blue (using 12V and 19V in the equations):
R1 = 1790 ohm
R2 = 15360 ohm
and experimentation led to: R1 = 1.8k-ohm, R2 = 15k-ohm with tested output: 12V to 19.5V

my power supply is 19.5V, so this is a good setup.
- the current-limit circuit will kick in at about 800mA, or at about 3.8V per LED, so at around 19V per LED string.
- the controller + current-limit resistor will drop a minimum of about 1.5V, so maximum LED voltage is actually limited to about 18V (3.6V each), the last bit of the dial's range won't do anything, and with this setup i'm not likely to hit my current limit under normal conditions (but if something overheats, it will save the day)
- this circuit will work just as well for a power supply with more than 19.5V, you just burn more power in the controller.

- if you use different-length strings of LED's, or you have a different dial, you will need to recalculate the resistor values.


Example 2: R1 & R2
Here's a second example using a 2.5k dial and strings of 3 Luxeon-3 LED's. here, the R1 & R2 calculations should be "right on". For this example we'll target "full-power" to be the spec-sheet maximum for the Luxeon-3's, which is 1000mA for the green and blue and 1400mA for the red.

first we check my handy-chart or the led spec sheet to see the turn-on voltage for the different led's, and the voltage needed at the maximum current. for the red led's: 1.8V - 3.4V per LED is the target range (no current to max current), and for the green and blue we target 2.4V - 3.9V per LED

calculating R1 & R2 for the Red channel with 2500 ohm R2:

(1.8 * 3)V = 1.25 * (1 + ((0 + R2) / R1))
(3.4 * 3)V = 1.25 * (1 + ((2500 + R2) / R1))
R1 = 650 ohm
R2 = 2160 ohm

for the Green & Blue channel:

(2.4 * 3)V = 1.25 * (1 + ((0 + R2) / R1))
(3.9 * 3)V = 1.25 * (1 + ((2500 + R2) / R1))
R1 = 694 ohm
R2 = 3303 ohm

lastly, we should point out that with a regulated 12V supply, we won't actually get the green and blue led's all the way to full power because the controller will drop 1.5V minimum leaving 3.5V at most for each LED. what are our options?
- leave it, who cares.
- switch to strings of 2 LED's rather than strings of 3. the led's will work great although the controller will need a decent heat sink since it will burn a lot more power.
- most 12V 4-amp supplies are going to be the regulated type (any computer supply for example), but on the off chance you have an un-regulated supply (it will have a large heavy transformer), you are probably fine. most un-regulated supplies put out well over their rated voltage.
- if you are handy, many computer supplies have a "trim" knob inside them that lets the factory set the output at exactly 12V. usually you can adjust the trim knob to bump the output up to 12.5 or 13V. if the case of the supply opens up with screws, it probably has a trim knob.
- you could bypass the current-limiter in our circuit (replace R3 with a wire). this will reduce the controller loss to 1.0V, and get your blue and green to about 3.7V each. is it safe? if you are sure you have a regulated 12V supply - yes. at 3.7V you're still enough below the rated maximum for the LED that random variations should not be large enough to exceed the true maximum. just don't do this for the red channel!
« Previous StepDownload PDFView All StepsNext Step »
16 comments
Apr 11, 2012. 11:20 AMstp715a says:
Hi. Have read all your material with great interest and appreciation. Thank you. Have built your LM1084 circuit many times for LED projects. The lastest is interesting in that I designed a 1.55A array using a 0.4 sense resistor (actually 2 X 0.8 ohm sense resistor in parallel). When I measure the amperage while the circuit is ON the reading is a steady state 600ma and no where near the 1.55A the circuit should draw. Any ideas or suggestions appreciated.

Thanks again for all the helpful instructables.
Dec 5, 2010. 11:18 AMTrimaran says:
I wonder if Q1 getting really hot in a short time is normal. It is similar to the one used in this instructable.
May 26, 2011. 9:57 AMfrollard says:
That is normal - hence the big heat sink. The more power the regulator dissipates, the more you have to sink.
Apr 23, 2011. 2:18 PMmglipton says:
I am using an LED with these stats:
2.9V @ 700mA
3.35V @ 3A
I want to control it up to the max current. Seems you define R3 for a single current. Do I calculate that with the max (3A) current, giving a 0.2-Ohm resistor (closest value)? Thanks!
Mar 5, 2011. 5:26 PMSpuzzum says:
They sell thermal epoxy specifically for heatsinks.. a lot better than silicone. In fact, that's what the reefer led supply shops recommend if you don't drill and screw the stars down. "Arctic Silver Premium Thermal Adhesive".
Feb 1, 2011. 5:52 PMdrfusion says:
Hey, having a little trouble getting this to work right. Mostly it seems the resistor combinations I use won't turn off the LEDs(voltage not low enough) and won't turn them up high enough. I'm using LED's with FV of 3.2 and max of 3.75. Using a 2k pot. 19.5v supply. The LM1084IT-ADJ. What should my R1 and R2 be? Thanks!
Feb 1, 2011. 6:44 PMdrfusion says:
Never-mind, I figured it out. Ended up with R1=680, R2=2.7k. I had blown the regulator chip earlier experimenting and didn't realize it! :) Dropped in a new one and presto! Thanks, this circuit deserves grand kudos!
May 15, 2010. 4:30 PMnanozap says:
I've been using the more "simple" current driver with NFET, NPN, and R1&R2, and it has work great for 1watt, 3 watt and 10 watt LEDs.
I'd like to construct the controllable driver with voltage regulator for use with (2) 10 watt LEDs; V= 23 volts, current = 1000ma. Cut off voltage =18 volts, max voltage= 23 volts. I'll use the 2.5K pot for R4. I need to figure values for R1&R2, but I am math/calculation deficient ,Any help will be appreciated.
Apr 12, 2009. 1:01 PMcorentin.h says:
Salut, je ne trouve pas le matériel néessaires pour le montage du circuit sur le site. Je ne trouve pas R1 , R2 et R3. Peux tu m'aider. Je vais faire un montage avec 15led (5 de chaque). Merci d'avance
May 27, 2009. 7:29 PMCoodude26 says:
Translated: "Hi, I can't find the necessary materials for the circuit assembly on the site. I can't find R1, R2, and R3. Can you help me? I'm going to make an assembly with 15 LED's (5 each) Thanks in advance" If someone could answer this, I'd be glad to re-translate.
Dec 22, 2008. 3:18 PMimin says:
Also does this value need to be higher than the power supply's rated voltage, because of a peak voltages that may fry the resistors?
Dec 22, 2008. 3:16 PMimin says:
I know this is and old thread, but when obtaining the resistors, what is the working voltage? Is that the total of Vf of all the LEDs in a series or the amount of voltage coming from the power supply?
Dec 13, 2007. 9:37 AMrye_84 says:
can the LEDs be run in series of 3 with 4 parallels as long as all together they don't use more then the 5A maximum? If so would I solve R3 as the total current that the 4 parallels draw (which is 2.8A total) or would I still solve for a single series (which is 700mA). Thanks
Oct 14, 2007. 5:35 PMRobbGodshaw says:
how would one go about replacing the slider with a light dependent resistor? i plan on doing this for each channel and placing a red,green or blue filter on each LDR to add ambilight to a television.
Oct 15, 2007. 6:27 PMRobbGodshaw says:
exactly. i would like the ledPhillips Ambilights to shine at about the average color of the television
Jan 18, 2007. 1:09 AMmikey1234 says:
im still kinda confused. i want 3 of each led so could you tell me my resistor values ill be using a 2.5 k dial. sorry i suck at this electrical math.

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!
525
Followers
47
Author:dan(MonkeyLectric)
Dan Goldwater is a co-founder of Instructables. Currently he operates MonkeyLectric where he develops revolutionary bike lighting products. He also writes a DIY column for Momentum magazine.