Sizing an LED resistor
In the last lesson the resistor took up whatever voltage the LED didn't, and that set the current. Turn that into a recipe and you can light any LED from any supply.
The maths
| Symbol | Meaning |
|---|---|
| the supply voltage | |
| the LED's forward voltage | |
| the current you want through the LED |
The forward voltage depends on the LED's colour:
| Colour | Typical |
|---|---|
| Red, yellow | about 2.0 V |
| Green | about 2.2 V |
| Blue, white | about 3.0 V |
Worked example. A red LED at 15 mA from 9 V:
The nearest standard value is 470 Ω.
Your job: light a red LED at 8 mA from a 9 V supply.
First, set the supply. Click the battery and change its voltage to 9 V.
Now the sum. What resistance gives 8 mA through a red LED ( = 2 V) from 9 V?
Answer in Ω.
Build it: a resistor and a red LED in series across the rails. Choose the standard resistor value nearest to your answer (click the resistor to change its value).
The LED's current has to come within 15% of 8 mA.
Now a blue LED is to run from the same supply, at the same 8 mA. A blue LED's forward voltage is about 3.0 V, not 2.0 V.
Compared with the red LED's resistor, the blue LED's needs to be:
- Bigger
- Smaller
- The same
What resistance gives 8 mA through the blue LED ( = 3 V) from 9 V?
Answer in Ω.
Add the blue LED beside the red one: its own resistor from the + rail, then a blue LED, then back to the − rail. Leave the red LED's circuit as it is.
Both LEDs should end up within 15% of 8 mA.
The recipe, for any LED on any supply:
- Look up the LED's forward voltage for its colour.
- Subtract it from the supply: that's the voltage across the resistor.
- Divide by the current you want.
- Pick the nearest standard value, going up if the current must not exceed a limit.
On a real bench forward voltages vary from one LED to the next, even in the same packet, and the datasheet gives a range, not a number. That is one more reason to aim for the middle of an LED's current range (10 to 15 mA is plenty for most indicator LEDs, and modern ones are bright at 2 mA) and not to run it at its maximum.