Driving various LEDs with one voltage supply [duplicate]

This question already has an answer here:

I       V(typ)      V(max)
525nm LED   0.03    3.5         4
562nm LED   0.05    2.3         2.7
660nm LED   0.05    1.8         2.2
940nm LED   0.1     1.5         1.8

I was wondering how I can drive all the LEDs with one voltage supply. I can only think of running them all in parallel which is bad.

note: Different than the possible duplicate. I understand that a resistor of value = (Vs - Vled)/(Max current) in series with the led will work for one led, but I want to run multiple different leds.

marked as duplicate by uint128_t, PeterJ, Daniel Grillo, Dave Tweed♦Apr 20 '16 at 15:56 simulate this circuit – Schematic created using CircuitLab

Figure 1. Parallel connection. Figure 2. Series connection.

For the parralel connection choose a voltage, V+, at least a volt highter than the highest LED forward voltage, $V_F$ and calculate the series resistor value from $R = \frac {V_+ - V_F}{I}$.

If the light level is adequate when all LEDs are run at the same current and the supply voltage is high enough they can be connected in series as shown in Figure 2. In this case $R = \frac {V_+ - V_{F1} - V_{F2} - V_{F3} - V_{F4}}{I}$.

Of course, any combination of series-parallel strings is possible too.

• Thanks! So the first diagram with them all in parallel i have and then I calculated the resistance (vs-vled)/i for each line. – lightro Apr 20 '16 at 6:22
• but is that configuration safe and reliable? or is there a better option – lightro Apr 20 '16 at 6:22
• Yes, Figure 1 requires the correct value for each line or branch of the circuit. Both configurations are safe and reliable and are the standard approach. The only thing to watch out for is the power dissipated in the resistor when the voltage is high. Use $P = VI$ to calculate that where V is the voltage drop across the resistor. – Transistor Apr 20 '16 at 6:27

Depends on your voltage source, either multiple in series with a resistor, or worst case, a single of each in parallel with a resistor each.

As you now stated your voltage source as 5V, it's easier to say. The most you can have in series is any combination of 2 of the 562, 660, and 940 nm leds with the appropriate resistor. The same formula applies.

R = (VSource - (Sum of the VForward for all LEDs in series)) / IForward

The 525nm led with a VForward of 3.5V would have to be by itself, with a series resistor, because any combination of that led plus another would put it past the 5V source available.

• I have just a 5V voltage source. – lightro Apr 20 '16 at 5:58
• What's the reason you term the other option as worst case? BOM? What would you call "All led's in parallel sharing a common resistor" then? ;) – vvy Apr 20 '16 at 6:14
• @vvy inefficient power usage. – Passerby Apr 20 '16 at 6:21
• @lightro with a 5V source, you could only put 1 of the 3.5V leds by itself, but you could put 2 of any of the others in series. – Passerby Apr 20 '16 at 6:23
• @vvy I also don't believe that multiple parallel leds with one resistor is really bad. The dangers of it are overstated. Commercial products use that design all the time. – Passerby Apr 20 '16 at 6:29