Diodes and LEDs
Use one-way parts correctly: how a diode conducts, forward voltage, why every LED needs a current-limiting resistor and how to calculate it, series LED strings, reverse polarity protection, Zener and Schottky diodes, and rectifying AC.
1. The one-way valve
A diode conducts current in one direction only, from anode (A) to cathode (K), the end marked with a stripe. It conducts when the anode is about 0.6 to 0.7 V (silicon) higher than the cathode, called the forward voltage (Vf), and blocks when reversed, up to its reverse breakdown voltage.
| Diode type | Forward drop | Notes |
|---|---|---|
| Silicon (1N4148, 1N4007) | About 0.6 to 0.7 V | General purpose; the 1N4007 handles 1 A of mains-rectifier current |
| Schottky | About 0.2 to 0.4 V | Low drop, fast; used in power supplies and protection |
| LED | 1.8 to 3.3 V depending on colour | Gives light; needs a current limit |
| Zener | Conducts forward like a diode, but reverse breakdown at a set voltage (for example 5.1 V) | Used as a simple voltage reference or clamp |
A diode is not a resistor. Its current rises steeply once the forward voltage is reached, so it must always be limited by the rest of the circuit.
2. LEDs and the series resistor
An LED is a diode that emits light. Typical forward voltages: red about 1.8 to 2.2 V, yellow and green 2 to 2.4 V, blue and white 3 to 3.4 V. A standard 5 mm LED is rated for about 20 mA maximum; 5 to 10 mA is plenty bright for an indicator.
Because the LED holds its own voltage nearly constant, the resistor must absorb the rest:
R = (Vsupply − Vf) / I
Example. Red LED, Vf = 2.0 V, supply 5 V, I = 20 mA: R = 3 / 0.02 = 150 Ω. For 10 mA, R = 300 Ω, so use the nearest standard value 330 Ω (about 9 mA). Round the resistor up so the current stays under the limit.
Check the resistor’s power: P = I² × R = 0.02² × 150 = 0.06 W, comfortable for a 0.25 W part.
For a 3.3 V supply and the same LED at 10 mA: R = (3.3 − 2) / 0.01 = 130 Ω, use 150 Ω. A blue LED with Vf of 3.2 V on a 3.3 V supply has almost no headroom, and the current becomes very sensitive to small changes; use a higher supply or a constant-current driver.
3. LEDs in series and in parallel
- In series, one current flows through all of them, and their forward voltages add: three red LEDs need about 6 V plus headroom for the resistor. With 12 V supply and 2 V LEDs you can fit up to (12 − 1) / 2 = 5 LEDs with about 1 V left for the resistor.
- In parallel, give each LED its own resistor. LEDs differ slightly, and without individual resistors one hogs the current and may fail, and then the others carry more.
4. Other uses of diodes
- Reverse polarity protection: a diode in series with the supply passes current only when the polarity is correct, losing about 0.7 V (a Schottky loses less). A P-channel MOSFET in the supply line has almost no drop and is the modern choice.
- Rectification: turns AC into pulsating DC. A single diode passes only the positive half-cycles (half-wave); four diodes in a bridge use both halves (full-wave). A capacitor then smooths the result into steady DC (power supply lesson).
- Clamping and protection: two diodes to the supply rails stop an input from going outside the rails. A diode across a relay coil absorbs the voltage spike when the coil switches off (the inductor lesson).
- Voltage reference: a Zener plus a resistor gives a rough fixed voltage. For accurate references use a dedicated reference IC.
5. On your bench
- Test an LED with the multimeter’s diode mode and note the forward voltage (the red probe on the anode).
- Build 5 V → 330 Ω → red LED → ground and measure the voltage across the resistor, the LED, and the current in series. Check KVL: the drops add to 5 V.
- Replace the resistor with 150 Ω and with 1 kΩ and see the brightness and current change.
- Put a 1N4007 in series with the supply and measure the drop at 20 mA. Reverse it and see that nothing flows.
- Wire two LEDs in parallel on one shared resistor, then give each its own resistor, and compare the brightness.
6. Hands-on lab: LED design
7. Common mistakes
| Mistake | Better |
|---|---|
| An LED directly on the supply | Always use a resistor or constant-current driver |
| Rounding the resistor down | Round up so the current stays within the rating |
| Sharing one resistor between parallel LEDs | One resistor per LED |
| Reversing a diode or LED | Check the cathode stripe or the flat side |
| Forgetting the 0.7 V lost in a protection diode | Use a Schottky or a P-channel MOSFET when the voltage is tight |
| Driving a high-current LED from a microcontroller pin | Use a transistor (transistor lesson) |
8. Key takeaways
- A diode conducts anode to cathode above its forward voltage: 0.7 V silicon, 0.3 V Schottky, about 2 V a red LED.
- R = (Vs − Vf) / I; round up to the next standard value and check the resistor power.
- LEDs in series add forward voltages; in parallel use a resistor each.
- Diodes give polarity protection, rectification, clamping and (Zener) references.
- Test them with the multimeter’s diode mode.
A green LED (Vf 2.2 V, 15 mA maximum) runs from 9 V. What resistor, and how much power does it dissipate?
R = (9 − 2.2) / 0.012 for a safe 12 mA gives 567 Ω, so use 560 Ω or 680 Ω. At 680 Ω the current is 6.8 / 680 = 10 mA and the resistor dissipates 0.01² × 680 = 0.068 W, safe for a 0.25 W part.
Can You Explain It?
Close the lesson and answer these without looking back. The goal isn't the wording — it's whether you've formed a usable mental model.
- Explain why an LED needs a current-limiting resistor and how to calculate it.
- Compare silicon, Schottky, LED and Zener diodes.
- Describe two ways to protect a circuit from reverse polarity.
🧪 Want to practise this on your own computer? See how to set up your lab →