LEDs
Where the light in an LED comes from, why each material glows one colour, and how to work out the resistor that keeps a red LED safe on a 5 V supply.
In 30 seconds
An LED is a diode that gives off light. When current flows forward, electrons drop into gaps called holes at the junction inside, and each drop releases a particle of light.
The size of that drop, the material’s band gap, sets the colour: a bigger gap gives bluer light.
An LED does not limit its own current, so it needs a resistor in series. On 5 V, a red LED that keeps 2 V and wants 20 mA needs (5 − 2) ÷ 0.02 = 150 Ω. Because the light is made directly, not by heating something, LEDs waste far less power than filament bulbs.
LEDs, step by step
1240 is the rounded constant hc in eV·nm. Forward voltages and bulb wattages are typical figures that vary from part to part. White LEDs are blue LEDs with a phosphor coating that turns part of the light yellow.
- Step 1: A diode that glows. An LED is a diode, a one-way valve for current, built from materials that give off light when current flows through them in the forward direction. Its symbol is the diode symbol with two small arrows for the light leaving. On the part itself, the longer leg is the anode, the positive side.
- Step 2: Light from recombination. Inside is a junction between p-type material, whose moving charges are holes (missing electrons), and n-type, whose moving charges are electrons. Forward current pushes both towards the junction. When an electron drops into a hole (recombination) it gives up energy, and in an LED that energy leaves as a photon of light.
- Step 3: Colour from the band gap. How far the electron drops is fixed by the material: the band gap, measured in electron-volts. That drop sets the energy of the photon, and a photon’s energy is its colour. A 2.0 eV gap gives red light at 620 nm; a 2.7 eV gap gives blue at about 459 nm. So the colour comes from the semiconductor, not from the plastic lens.
- Step 4: Why it needs a resistor. Like any diode, an LED hardly conducts until the voltage across it reaches its forward voltage, about 2 V for this red one. Past that point a little more voltage means a lot more current. Connected straight to a 5 V supply it would draw far more than its usual 20 mA and burn out, so something else must set the current.
- Step 5: Work out the resistor. Put a resistor in series to take up the spare voltage. The supply gives 5 V and the red LED keeps about 2 V, so 3 V is left across the resistor. For 20 mA, which is 0.02 A, Ohm’s law gives R = 3 ÷ 0.02 = 150 Ω. The resistor then turns 3 V × 0.02 A = 0.06 W into heat, well within a quarter-watt part.
- Step 6: Efficiency. An old filament bulb makes light by heating a wire until it glows, so most of its power leaves as heat. An LED makes light directly at the junction. For about the same 800 lumens of light, a typical filament bulb uses 60 W and a typical LED bulb about 8 W: more than seven times the light from each watt.
Try it yourself
Learn this first
Spotted a mistake on this page?