Part 04 / 10

Diodes and LEDs

A diode lets current through in one direction only, and an LED is a diode that glows while it does, provided a resistor keeps the current in check.

6 sections 2 interactives
§ 4.1

A one-way valve for current

A resistor treats current the same in both directions. A does not. It lets current through from one end, the anode, to the other, the cathode, and blocks it the other way, like the check valve in a water pipe that lets water flow forward but never back.

On a real diode, a silver or white stripe marks the cathode. In the circuit symbol, a triangle points in the direction the current is allowed to go, and a bar across its tip stands for the stripe. The arrow is easy to remember: current flows the way it points.

One-way conduction was noticed long before anyone could explain it. In 1874 the German physicist Karl Ferdinand Braun found that the contact between certain crystals and a metal wire let current through more easily one way than the other. In 1904 John Ambrose Fleming patented a glass valve that did the same job in a vacuum, and it became the heart of early radio. Today’s diodes are made of silicon, and they are small, cheap and very good at it.

Diodes guard circuits against batteries put in backwards, and they turn the back-and-forth current of the mains into the one-way current electronics need. That second job, called rectifying, is part of every phone charger.

§ 4.2

The 0.7 volt toll

A diode does not conduct the moment you push current at it the right way. Below about 0.6 volts, a silicon diode lets almost nothing through. Above it, the current rises very steeply, and the voltage across the diode hardly changes, staying close to 0.7 volts whatever current flows.

That voltage is the diode’s , a toll it takes for itself. Put a diode in a 4.5 volt circuit and about 0.7 volts go to the diode; the other 3.8 volts are left for everything else.

You can see it with your multimeter. Set the dial to the diode symbol, red probe on the anode, black on the stripe. The meter pushes about a milliamp through and shows the voltage that takes: around 0.5 to 0.7 volts for a silicon diode like the 1N4001. Swap the probes and the display shows OL, for “overload”: no current gets through.

§ 4.3

Light from a diode

An , a light-emitting diode, is a diode made from materials that give out light as current crosses them. Every electron that makes the crossing releases a small amount of energy as a particle of light, and the size of that energy sets the colour. Blue light carries more energy than red, so a blue LED needs a bigger push to make it:

LED Forward voltage, roughly
Red 1.8 to 2.0 V
Yellow 2.0 to 2.2 V
Green 2.0 to 2.2 V for older types, about 3 V for bright “true green”
Blue and white 2.8 to 3.3 V

A white LED is usually a blue one coated with a yellow phosphor that turns part of the blue into other colours. Datasheets give the exact figures for any particular LED.

Like any diode, an LED has a + and a − leg. The longer leg is the anode, the + side. The rim of the plastic body has a flat edge on the cathode side, and inside, the cathode is usually the larger, flag-shaped piece of metal.

Light from a crystal diode was first reported in 1907, by Henry Round at the Marconi company. The first practical visible LED came in 1962, when Nick Holonyak, at a General Electric laboratory near Syracuse in New York, made a diode that glowed red. Red, then yellow and green LEDs became the little indicator lights on every piece of electronics. Bright blue took until the early 1990s; Isamu Akasaki, Hiroshi Amano and Shuji Nakamura shared the 2014 Nobel Prize in Physics for it, because blue made white LED lighting possible.

§ 4.4 · interactive

Try it: turn the LED round

On your breadboard, build the circuit from part 2: battery, 220 Ω resistor, red LED. It lights. Now pull the LED out, turn it round and push it back in. It goes dark. Nothing has broken: turn it back and it lights again. Measure across the reversed LED and you will find almost the whole battery voltage across it, with no current flowing.

Try it

Turn the LED round

Turn the LED round and back. Then turn the battery down slowly and watch the current stop at the knee. Try the other colours and a plain silicon diode.

220 Ω4.5 V+−11.1 mA −5 V limitvolts across it →current ↑reverseforward

11.1 mA flows. The LED takes 2.06 V for itself and the resistor takes the other 2.44 V.

Typical forward voltages at 10 mA. Real LEDs vary a little from batch to batch.

Reversing an LED is safe in this circuit because LEDs are built to block about 5 volts the wrong way round, and the battery gives only 4.5. A 9 volt battery could, in principle, push past that limit. The resistor would still hold the current down, but it is a good reason to stay with 4.5 volts while you experiment.

The graph is the diode’s whole personality in one line. In reverse, nothing at all. Forward, nothing until the knee, then a current that shoots up for a tiny extra push. That steep climb is why an LED cannot be connected straight to a battery: a fraction of a volt too much means many times too much current.

§ 4.5

Choosing the LED’s resistor

So every LED needs something to set its current, and on a breadboard that is a resistor in series. Part 2 gave the rule:

R = (supply voltage − LED forward voltage) ÷ current

Three steps:

  1. Pick a current. Up to 20 mA for a standard 5 mm LED; 5 to 10 mA is plenty for an indicator.
  2. Subtract and divide. A red LED on 4.5 volts at 10 mA: (4.5 − 2) ÷ 0.010 = 250 Ω.
  3. Round up to a standard value. 250 Ω is not made, so use 270 Ω. The current comes out a little lower, 9.3 mA, which is the safe side.

A blue LED on the same battery: (4.5 − 3.1) ÷ 0.010 = 140 Ω, rounded up to 150 Ω. Notice how little voltage is left for the resistor. As the batteries run down, a blue LED dims much sooner than a red one.

Two LEDs in a row, in series, share one resistor and one current. Their voltages add, so two red LEDs need 4 volts before anything happens, which leaves only 0.5 volts on a 4.5 volt supply. Two LEDs side by side, in parallel, should each get their own resistor. If they share one, the LED with the slightly lower forward voltage takes most of the current, and it can be overloaded while the other stays dim.

§ 4.6 · interactive

Try it: LED resistor calculator

Try it

LED resistor calculator

Choose a supply, an LED colour, how many LEDs in a row and the current you want. The calculator rounds up to a standard value and shows its bands.

Supply
LED colour · about 2.0 V each
LEDs in a row

R = (4.5 V − 2.0 V) ÷ 10 mA = 250 Ω

270 Ω

Bands: red, violet, brown, gold

9.26 mAactual current
23 mWheat in the resistor

No resistor comes in 250 Ω, so take the next standard value up, 270 Ω. The current comes out a little lower, which is the safe side.

Forward voltages are typical values: red 2.0 V, yellow 2.1 V, green 2.2 V, blue and white 3.1 V. Real LEDs vary, so the currents are approximate.

Diodes, LEDs and resistors all react instantly. The next part is about a component that takes its time: one that fills up with charge, holds it, and lets it go again slowly enough to watch.

Sources for this part

Diodes

LEDs

Series Resistors, Capacitors and Transistors
Menu

Gears & Signals · Static site · No trackers