Skip to main content

I'm thinking of adding LEDs to the headlights and tail lights of some of my vehicles.  I know that is  common practice on here, so I've searched for my answers, but haven't found them (or maybe just didn't understand).  Anyway, my plan is to use a 12VDC power supply and have each vehicle on it's on toggle so I can turn each one on and off.  My issue is that I do not understand resistors and what not that is needed to make this work.  I've found the calculators on here and helpful information, but still can't grasp it.  

What will I need in addition to what is shown in my attached image?  (Or is this even correct??)

Multiple LED Wiring

Attachments

Images (1)
  • Multiple LED Wiring
Last edited by mjrodg3n88
Original Post

Replies sorted oldest to newest

You'll certainly need to add resistors. Your diagram shows all of the LEDs wired in parallel. You will want resistors for each LED like this:

For warm white LEDs, the forward voltage (Vf) to each should be 3.3 volts. Depending how bright you want them, the forward current (If) should be between 10 and 20 milliamps. In the configuration shown in the above diagram, we can use the following formula to calculate the resistor value that you'll need.

    R = (Vs - Vf) / If  -- or --
    R = (Supply Voltage - LED forward voltage) / Forward current
    R = (12v - 3.3v) / .020A
    R = 8.7 / .02
    R = 435Ω

The nearest higher common resistor value is 470 ohms which is fine. The same calculation at 10ma gives a result of 870 ohms. So even a 1k (1000 ohms) would be alright in this situation.

Attachments

Images (1)
  • mceclip0
Last edited by Consolidated Leo

Well...it depends on the resistor value. If you are limiting the current to 20 ma, then the wattage dissipated it I^2 times R or .000400 times R in watts. But double that for good measure. For example, .000400 times 470 ohms equals .188 watts. So doubling is .376 watts. I guess 1/4 watt resistor would be a safe choice even though it's not double. In the case of 10 ma, that would be .000100 times 470 or .047 watts. Doubling would be .094 and 1/8 watt resistor is quite adequate.

Leo,
Most of that makes sense.  So then I could use either a 10mA or 20mA for a warm white LED?  The difference would be the brightness, is that correct?  If so, is it the difference in the mA value or the wattage (1/4W vs 1/8W) that changes the brightness? 

Chuck,
Your reply has me confused.  Could you please clarify?  

Mark,
That is an option, thank you.  I really like the turn signal idea.

Chief Bob,
Thanks.  I've actually bought quite a few ready-to-use LEDs from Evans Designs (and love them).  Ultimately though, I'd really like to understand how to build my own.  The reason being one - price and two - I like being able to understand how things work.

To further confuse myself, what is the math/equation to determine how many LEDs I can operate on one 12VDC power supply?

Last edited by mjrodg3n88

Mike: The difference in brightness is based on how many milliamps you run through the LED. The 20ma and 10ma values are just in the ballpark values. You should not go higher than 20ma though. Any more will tend to shorten the life of the LED. You can also go lower than 10ma which will dim the LED further. But I wouldn't run it at less than 5ma.

So anywhere from 5ma to 20ma can be run through the calculation for the resistor value to give you the brightness level that you desire.

The difference in wattage values has to do with the amount of current in the circuit. The resistor needs to be hefty enough to carry the load. Higher current, higher wattage and the resistor should be rated to handle it without generating a lot of heat. The LED calculators on the Internet will tell you what the wattage should be.

As far as the number of LEDs that you can run off of your 12vdc power supply, again it depends on how much current you want to use with each LED. If you use 20ma and you hook up 100 LEDs, you need 20 x 100 = 2000ma = 2A. Your power supply will be rated to be able to put out so many Amps. So a 1A power supply could run 1000ma / 20ma = 50 LEDs.

Attachments

Images (1)
  • mceclip0
Last edited by Consolidated Leo

I was messing with the LED calculators before I posted this thread, but didn't really understand what I was looking at.  With what was mentioned above (and finding the same calculator), I think I'm starting to get the hang of this?

A few things I think I'm gathering is:
1. 20mA = brighter LEDs 
2. Higher current (20mA vs 10mA) produces? a larger wattage.  That is why 20mA requires a 1/4W resistor and 10mA a 1/8W.  Correct?
3. Using the calculator (shown in the image):
     a.  With a current of 20mA, the circuit's total current consumption = 18.5mA.  If my power source is 12VDC 1A, then technically I could fit 54 LEDs on that 
          power source (1000/18.5 = 54.054054).  With a power source of 12VDC 2A, I could double that to 108 LEDs (2000/18.5 = 108.108108).
     b.  With a current of 10mA, there is less of a current consumption, therefore allowing more LEDs on one power source (whether it be 12VDC 1A or 2A)   

Does it seem like I am in the ballpark here of understanding, or am I way off?

LED Calculator

Attachments

Images (1)
  • LED Calculator
mjrodg3n88 posted:

1. 20mA = brighter LEDs

Yes.  Remember, we're dealing with a range of values. The higher the current to the LED the brighter it will shine. But 20mA is the limit. Beyond that is outside the LED specifications.

2. Higher current (20mA vs 10mA) produces? a larger wattage.  That is why 20mA requires a 1/4W resistor and 10mA a 1/8W.  Correct?

You are correct.

3. Using the calculator (shown in the image):
     a.  With a current of 20mA, the circuit's total current consumption = 18.5mA.  If my power source is 12VDC 1A, then technically I could fit 54 LEDs on that 
          power source (1000/18.5 = 54.054054).  With a power source of 12VDC 2A, I could double that to 108 LEDs (2000/18.5 = 108.108108).
     b.  With a current of 10mA, there is less of a current consumption, therefore allowing more LEDs on one power source (whether it be 12VDC 1A or 2A) 

Correct again. The 18.5mA value comes from our desired 20mA current that is limited by the standard resistor value from 435 ohms to 470 ohms. With ohm's law we get: V/R = I or 8.7 / 470 = .0185A. So the actual current is a bit less than what we are aiming for.

The number of LEDs is just a straight forward division of available amperage from the power supply to the amperage consumed by the LEDs. But be aware that the ratings of a power supply may not be very exact.


Does it seem like I am in the ballpark here of understanding, or am I way off?

I'd say that you've got the right idea!

LED Calculator

 

Perfect, thank you.

Now... I'm going to further complicate things.  

I was looking for an Excel file someone posted on the forum and in another thread (here) found a link to an LED Wizard .  In that wizard, using (Vs = 12VDC, Vf = 3.3V, If = .020A, 50 LEDs) it shows an array? that has one resistor for two LEDs.   

Is that scenario not possible in my case, and if not, what is the reason?  I'm not questioning any information above, I just want to understand.  

Mike: Yes, there are other ways to wire your circuit with the switches. Placing the resistor in other places will change the calculation.

LEDs wired in series is close to what we've looked at before. Now you just add the forward voltage (Vf) of each LED before subtracting the supply voltage and dividing the whole mess by the forward current (If). Here we just multiply the forward voltage by the number (n) of LEDs in series:

    R = (Vs - (Vf * n)) / If
    R = (12 - (3.3 * 2)) / .02
    R = (12 - 6.6) / .02
    R = 5.4 / .02
    R = 270 Ω

To wire 2 LEDs in parallel using 1 resistor for them both, you take the desired forward current (If) of the LEDs and multiply by the number of LEDs (n). Again we'll use 20mA as the target current.

    R = (Vs - Vf) / (If * n)
    R = (12 - 3.3) / (.02 * 2)
    R = 8.7 / .04
    R = 217.5 Ω

However, parallel wiring of 2 LEDs from the same resistor is not recommended. Here's a note from this calculator page that warns about brightness variations.

Note: You should avoid connecting LEDs in parallel with just one resistor shared between them. Identical LEDs can be successfully connected in parallel, but each LED may have a slightly different voltage drop, and the brightness of the LEDs will differ. If you want to connect the LEDs in parallel each one should have its own resistor. Calculate the value for a single LED and connect all the LED-resistor pairs in parallel.

I hope that helps.

Attachments

Images (2)
  • mceclip1
  • mceclip3

Chuck,
That makes sense.

Leo,
That seems pretty clear to me.  I'm thinking I learned something something else in your last post.... that the image I shared in my last post, the two LEDs are wired in parallel.  Is that correct?  If it is, then I am assuming the image I created below is that of LEDs being wired in a series?

Is wiring LEDs in both parallel and series wiring not recommended, or just in parallel?  Will one LED (possibly) be brighter in both parallel and series wiring or just in parallel?

Again, I'm fine with doing one resistor per LED, but want to understand all of this.  Plus, space may be limited in some places where having multiple resistors may not work.

Wiring Multiple LEDs in a Series

Attachments

Images (1)
  • Wiring Multiple LEDs in a Series

Mike: As Chuck said, wiring in series is better than wiring in parallel. When you split the circuit path between the 2 LEDs,  you end up dealing with 2 independent calculations for voltage and current. So if the forward voltage of the LEDs do not match, you'll end up with different current as well and that could cause the LEDs to shine with different intensity.

Series wiring is the recommended method. That way the current moving through the 2 LEDs will be equivalent and the forward voltage (which may vary due to manufacturing technique) don't have to match exactly.

Yes. Your previous diagram showed the LEDs wired in parallel; each LED having a positive and negative to the supply voltage. Your last diagram shows the LEDs in series. That's the way to do it. That's the recommended configuration.

Add Reply

Post
×
×
×
×
Link copied to your clipboard.
×
×