Part 14 · Electronics and Computing
Light-Emitting Diodes
A light-emitting diode turns electricity straight into light of one colour, ten times more efficiently than a filament lamp, and lasts for decades if kept cool and fed the right current. How it works, which crystal gives which colour, how blue chips and yellow phosphor make white, how LEDs are packaged, and how to build the drivers, lamps, strips and torches that use them.
- Difficulty
- ●●●●●
- Time
- An hour to wire a resistor and LED; a day to build a constant-current lamp or a torch; the chips themselves need a semiconductor works
- Steps from zero
- 45 prerequisites →
This unlocks
—The full path from nothing — 45 steps before this one
- Fire
- Cordage and Rope
- Stone Tools
- Finding and Preparing Clay
- Finding and Identifying Ores
- Sulfur
- Hunting and Trapping
- Basic Woodworking
- Charcoal
- Pottery
- The Kiln
- Hides and Leather
- Bricks
- Lime
- Salt
- Mercury
- Lye and Potash
- Fermentation
- The Wheel and Axle
- Firebrick and Refractories
- Glass
- Bellows
- Saltpeter
- Gears
- The Lathe
- Iron (the Bloomery)
- Copper Smelting
- Sulfuric Acid
- Laboratory Glassware
- The Waterwheel
- Pumps
- Blacksmithing
- Zinc and Brass
- Hydrochloric Acid
- Magnets
- The Battery
- The Vacuum Pump
- Copper Wire
- The Light Bulb
- The Generator
- The Vacuum Tube
- The Electric Arc Furnace
- Pure Silicon
- Semiconductors and the Transistor
- Germanium, Gallium and Compound Semiconductors
- Light-Emitting Diodes
Do them roughly in this order. See it on the tech tree →
Why it matters
A filament bulb turns only about 2–5% of its power into light; the rest is heat (The Light Bulb). A kerosene lantern is worse: a hurricane lamp burning a few hundredths of a litre an hour spends about 250–300 watts of fuel heat for less light than a modern 1-watt LED gives (Lanterns, Gas Lamps and Lighters). A good LED turns 30–50% of its power into light. It gives 80–150 lumens per watt in a finished lamp, against about 12 for a filament bulb. It runs from a few volts, starts instantly, survives shaking, and lasts 25,000–50,000 hours: at four hours an evening, fifteen to thirty years.
A single solar panel and a The Rechargeable Battery can light a whole house, and a torch runs for a week of nights on one charge.
Honest scope. Making the chip needs the crystal-growing works of Germanium, Gallium and Compound Semiconductors, and for blue and white, gallium nitride technology that took the world's chip industry thirty years. This chapter covers everything after the chip, all within reach of a good electronics workshop: phosphor, packaging, testing, drivers, heat sinks, lamps, strips and torches. Until chips can be made, salvaged LEDs last so long that they are worth collecting and reusing in these circuits.
How it works
A diode that glows. An LED is a p–n junction (Semiconductors and the Transistor). The n side has spare electrons; the p side has "holes", places where an electron is missing. Push current forward through the junction and electrons cross into the p side and drop into holes. Each drop releases a fixed packet of energy. In silicon and germanium that energy goes into heating the crystal. In compound crystals such as gallium arsenide or gallium nitride it comes out as a photon, a single particle of light.
Colour from the crystal. The size of the energy drop is fixed by the crystal. It is called the band gap and is measured in electron-volts. A bigger drop gives bluer light. A handy rule: wavelength in nanometres ≈ 1,240 ÷ band gap in volts. Since each electron must be lifted across that gap, the LED will not conduct until the voltage across it reaches roughly the band gap. That is why a red LED needs about 2 V and a blue one about 3 V.
| Colour | Wavelength | Crystal | Forward voltage at 20 mA |
|---|---|---|---|
| Infrared | 850–940 nm | Gallium arsenide, aluminium gallium arsenide | 1.2–1.5 V |
| Red | 620–660 nm | Aluminium gallium arsenide; aluminium gallium indium phosphide | 1.8–2.2 V |
| Orange, amber, yellow | 585–610 nm | Aluminium gallium indium phosphide; nitrogen-doped gallium arsenide phosphide | 2.0–2.2 V |
| Yellow-green (dim) | 555–570 nm | Gallium phosphide | 2.1–2.4 V |
| Bright green | 515–530 nm | Indium gallium nitride | 2.8–3.4 V |
| Blue | 450–470 nm | Indium gallium nitride | 2.8–3.4 V |
| Violet, ultraviolet | 365–405 nm | Gallium nitride, aluminium gallium nitride | 3.1–3.8 V |
| White | Blue + yellow phosphor | Indium gallium nitride + cerium garnet | 2.8–3.4 V |
The steep curve. Below its threshold an LED passes almost nothing. Above it, a tenth of a volt more can double the current. Worse, as it warms its threshold falls. More current makes more heat, which lowers the voltage needed, which lets through more current. A bare LED on a battery runs away and burns out in a flash. An LED must always be fed a controlled current, never a voltage. Every circuit below exists to do that.
Heat goes inward. A filament bulb throws most of its heat away as infrared rays. An LED's waste heat stays at the junction and must be conducted out through the back of the chip into metal. Hot LEDs give less light, shift colour, and die young. Cooling is half the design of any LED lamp.
What you need
| Item | Use | From |
|---|---|---|
| LED chips or finished LEDs | The light source | Germanium, Gallium and Compound Semiconductors, or salvage |
| Resistors, transistors, diodes, inductors, capacitors | Drivers | Resistors, Capacitors and Coils, Semiconductors and the Transistor |
| Aluminium sheet 1.5–3 mm, aluminium or brass tube | Heat sinks, housings | Aluminium, Metal Pipes and Tubes |
| Heat-conducting paste | Between LED and heat sink | Zinc oxide or alumina powder in silicone grease (Silicones and Synthetic Rubbers) |
| Clear silicone or epoxy resin | Domes and lenses | Silicones and Synthetic Rubbers, Resins: Phenolic, Polyester and Epoxy |
| Rare-earth oxides, alumina | White phosphor | Rare Earths, Cerium and Phosphors, Alum and Alumina |
| Polished metal or silvered reflector | Torch beam | Mirrors, Vacuum Coating and Thin Films |
| Meter | Measuring volts and current | Measuring Electricity |
| Soldering iron | Assembly | Building Circuits: Boards, Connectors and Cables |
Where to find it
The raw materials behind LEDs are found in the chapters that make them. Gallium is recovered from bauxite liquor and zinc residues (Germanium, Gallium and Compound Semiconductors). Yttrium and cerium for white phosphor come from monazite and xenotime sands, the heavy yellow-brown grains in some beach and river sands (Rare Earths, Cerium and Phosphors, Separating the Rare Earths). Alumina comes from bauxite (Alum and Alumina). Sapphire substrates are synthetic (Synthetic Gems).
Salvage is the practical first source. Old torches, bicycle lamps, indicator panels, remote controls, televisions, screens and LED bulbs are full of LEDs that still work. A failed LED bulb almost always has a dead driver and good LEDs.
White light: the phosphor
A white LED is a blue chip under a layer of yellow phosphor. The phosphor absorbs part of the blue and glows yellow. Blue and yellow together look white.
The phosphor, in outline. It is yttrium aluminium garnet with a few percent of the yttrium replaced by cerium, often called YAG:Ce.
- Mix yttrium oxide, aluminium oxide and cerium oxide, very finely ground, in the proportion of 3 yttrium-plus-cerium atoms to 5 aluminium atoms, with 2–6% of that 3 being cerium. Add a few percent of a flux such as barium fluoride to help crystals grow.
- Fire in an alumina crucible at about 1,500 °C for several hours in a reducing atmosphere: hydrogen mixed with nitrogen, or the crucible buried in charcoal inside a larger one (Very-High-Temperature Furnaces, Firebrick and Refractories). Air would leave the cerium in the wrong form, and the powder would not glow.
- Crush gently, wash and sieve. Good phosphor is a lemon-yellow powder that glows bright yellow under a blue or violet LED or under ultraviolet light.
Coating. Stir the phosphor into clear silicone, roughly 5–20% by weight. Put a measured drop over each blue chip and cure it. More phosphor gives warm, yellowish white; less gives cool, bluish white. Adding a red-glowing phosphor gives warmer light that shows colours more naturally, but red phosphors need advanced chemistry. Remote phosphor is the workshop-friendly alternative: coat the phosphor on the inside of the lamp's diffuser dome instead of on the chip. The phosphor runs cooler and the colour is more even.
Packaging
The Germanium, Gallium and Compound Semiconductors chapter shows the 5 mm LED: chip in a reflector cup on one lead, gold wire to the other, clear epoxy dome. The rules for using it:
- Long leg is positive (anode); the flat on the rim of the dome marks the negative (cathode).
- Run it at up to 20 mA. Most give a useful glow at 2–5 mA.
- It survives only about 5 V backwards. In circuits that could reverse it, put an ordinary diode across it, pointing the other way.
- Beam width depends on the dome: 15–30° for a spot, 60° or more for a wide glow.
Surface-mount LEDs, 2–5 mm flat packages soldered straight onto a board, carry 20–150 mA in strips and bulbs.
Power LEDs carry 350 mA to 1 A (1–3 W). The chip sits on a copper or ceramic slug that carries heat out of its back, under a silicone lens. Solder the slug to a star board, a 20 mm aluminium disc with a thin insulating layer and copper tracks, and fix the star to a heat sink with heat-conducting paste.
Packaging a chip yourself follows Germanium, Gallium and Compound Semiconductors: silver-filled glue cured at about 150 °C, wire bond, dome. Use silicone rather than epoxy for power LEDs, because epoxy yellows in strong blue light.
Sorting. Run every LED of a batch at rated current. Measure its voltage, and compare its brightness with a photocell in a dark box or by eye against a reference. Group LEDs that match into bins. A lamp built from mixed bins looks patchy.
Driving LEDs: the LED driver
The series resistor
For indicators and small lamps on a steady supply:
resistance = (supply volts − LED volts) ÷ current
- One white LED at 20 mA from 5 V: (5 − 3.1) ÷ 0.020 = 95 Ω; use 100 Ω.
- Three white LEDs in series at 20 mA from 12 V: (12 − 3 × 3.1) ÷ 0.020 = 135 Ω; use 150 Ω.
- Check the resistor's power: current × current × resistance. 0.02 × 0.02 × 150 = 0.06 W, so a small resistor is enough.
Never connect LEDs straight in parallel to share one resistor: the one with the lowest voltage takes most of the current and dies, then the next. Give each string its own resistor. A resistor driver is only as steady as its supply. On a battery that runs from 14.4 V charging down to 11.5 V, the current of the string above swings from 34 mA to 15 mA.
Constant current with two transistors
This circuit holds the current fixed over a wide range of supply voltage and costs only two transistors and two resistors.
- A power transistor (Q1) carries the LED current. It sits below the LEDs, and its emitter goes to the supply negative through a small sense resistor Rs.
- A small transistor (Q2) has its base on the top of Rs, its emitter on the supply negative and its collector on Q1's base.
- A resistor of 1–10 kΩ from the supply positive feeds Q1's base and turns it on.
- When the LED current makes about 0.6 V across Rs, Q2 starts to turn on and robs Q1 of base current. The current settles at I = 0.6 ÷ Rs.
- 20 mA: Rs = 30 Ω. 350 mA (a 1 W power LED): Rs = 1.7 Ω. 700 mA: Rs = 0.85 Ω.
- Q1 burns the spare voltage as heat: (supply − LED volts − 0.6) × current. Give it a small heat sink if that is over half a watt (Power Electronics and Motor Drives).
- The current drifts down a little as the circuit warms, which is in the safe direction.
Switching drivers
Resistors and transistors waste the difference between supply and LED voltage as heat. A switching driver wastes almost none and is 85–95% efficient (Power Supplies and Regulators):
- A buck (step-down) driver switches the supply on and off through an inductor many thousands of times a second. It switches off when the LED current, measured on a sense resistor, rises above the set value and on again when it falls below. Use it when the supply is well above the LED string's voltage: a 24 V battery feeding a 3-LED string, for example.
- A boost driver steps a low voltage up. The simplest is the blocking oscillator, nicknamed the "joule thief". It lights a white LED from one 1.2–1.5 V cell, and keeps going until the cell is down to about 0.7 V. Wind two coils of 10–20 turns each side by side on a small ferrite ring about 10 mm across (Transformer Steel, Ferrite and Magnetic Shielding). Join one coil to the transistor's collector and the other through a 1 kΩ resistor to its base, with the far ends of both coils to the cell's positive. Put the transistor's emitter to the cell's negative, and the LED from collector (its positive leg) to negative. The transistor switches on and off tens of thousands of times a second, and each time it switches off, the coil kicks the voltage up and pushes a pulse through the LED. If it does not start, swap the two ends of one coil.
Dimming
Do not dim a power LED by lowering the voltage. Its colour shifts and the driver loses control. Instead switch the current fully on and off several hundred to a few thousand times a second and vary the fraction of time it is on. This is pulse-width modulation, as used in Flat Screens: LCD and LED Displays and Microcontrollers. Below about 200 times a second, moving objects show a stroboscopic flicker.
From the mains, in outline
Cheap mains LED bulbs rectify the mains and feed a long string of LEDs in series, whose total voltage is close to the mains peak, with a capacitor or a simple chip to limit the current. These have no isolation from the mains: every part, including the LEDs, is live. A safer design for a household system is low-voltage DC lighting: a The Transformer and rectifier, or a battery charged by a solar panel, feeding 12 V lamps with constant-current drivers. Isolated mains drivers (flyback converters, Power Supplies and Regulators) are the industrial answer.
Heat sinks
Keep the star board or LED base below about 60–70 °C for full life. The junction will then be at 80–100 °C, well below its limit.
- A plate of aluminium 1.5–3 mm thick with about 30–50 cm² of surface per watt of LED, standing in free air, does this in a room. For a 3 W lamp that is a 10 × 10 cm plate.
- Fins, a black or anodised surface (Anodising Aluminium and Titanium) and an upright position cool better.
- Spread a thin film of heat-conducting paste between star and sink and screw them flat together. A thick layer of paste insulates.
- Finger test: after an hour lit, you should be able to keep a finger on the sink for 5 seconds. If you can't, it is above about 60 °C: add metal or lower the current.
Things made with LEDs
LED lamp
A 12 V room lamp for a solar or battery house:
- LEDs: three 1 W white power LEDs on stars, in series (about 9.6 V at 350 mA).
- Heat sink: screw the stars with paste to an aluminium plate 10 × 15 cm, 2 mm thick, bent into a shallow tray. The bend makes it stiff and gives a rim for a diffuser.
- Driver: the two-transistor circuit set to 300 mA (Rs = 2 Ω), with Q1 bolted to the same plate. Add a fuse and a diode in series with the supply so that connecting the battery backwards does nothing.
- Diffuser: frosted or opal glass (Glass), or a sheet of white plastic, 1–2 cm in front of the LEDs. This spreads the light and removes the glare of the tiny bright points.
- Output: about 300 lumens, like a 25–30 W filament bulb, for about 4 W from the battery.
LED bulbs for ordinary lamp sockets put the same parts into a small housing: a ring of LEDs on an aluminium disc, a driver in the neck, and a diffusing dome. LED tubes replace fluorescent tubes with a strip of LEDs along an aluminium channel. In every case keep the driver away from the hot LEDs, because its electrolytic capacitors are usually the first part to fail.
Good versus bad: a good lamp is even and steady, cool to touch on the sink, and white without a blue or green tint. Wave a pencil quickly in front of it: a smooth blur means no flicker, while a row of separate pencil images means it flickers. Colours of food and skin look natural. A bad lamp is patchy, hot, glaring or blue, flickers, or dims within months.
LED strip
An LED strip is a flexible or narrow rigid board carrying small LEDs in groups of three in series, each group with its own resistor, all groups in parallel along two supply lines. For 12 V each group has a resistor of about 150 Ω at 20 mA. Strips can be cut between any two groups, usually every 5 cm, at marked pads. Stick the strip to an aluminium channel for cooling. It lights shelves, workbenches (Cupboards, Drawers, Shelves and Desks), stairs and vehicle interiors.
LED torch
- Body: aluminium or brass tube, 25–30 mm across and long enough for the cells (Metal Pipes and Tubes). Thread both ends (Screws, Nuts and Bolts). The metal body is part of the circuit: it carries the negative return from the tail to the head.
- Head: a solid aluminium or brass plug 15–20 mm thick that is a press fit in the tube. The LED star is pasted and screwed onto its face, and the driver board sits in a recess behind it. The head is the heat sink. A 1 W torch can run for hours; a 3 W one needs a thicker head or fins.
- Reflector: a parabolic cup 20–30 mm across, spun or pressed from aluminium sheet and polished bright (Metal Spinning and Raising), or a silvered glass or plastic cup (Mirrors). A deep cup throws a narrow spot; a shallow one gives a wide flood.
- Lens: a flat disc of clear glass 2–3 mm thick behind a screw bezel, sealed with a rubber ring (Packing, Gaskets and Seals).
- Driver: for three dry cells in series (4.5 V fresh), a resistor of about 3.9 Ω gives roughly 350 mA at first, dimming as the cells run down (Dry Cells and Electric Torches). The two-transistor circuit holds full brightness until the cells are nearly flat. For one cell, use the joule-thief boost circuit.
- Tail: a brass cap with a spring pressing on the last cell, and a push or slide switch (Insulators, Cables and Electrical Fittings).
Lithium cells. One rechargeable lithium cell (3.7 V, 4.2 V full) suits a white LED well with a constant-current driver. It must have a protection circuit and a proper charger (Lithium Batteries). Run time is roughly cell capacity ÷ current: a 2.5 ampere-hour cell at 350 mA lasts about 7 hours at full brightness.
Good versus bad: a good torch gives a round, even beam with no dark hole in the middle (a hole means the LED is off the reflector's focus; shim it). It keeps steady brightness for most of the run, its head stays holdable, and it survives a drop and a minute under water.
How to tell it worked
- Polarity check: across a 9 V battery through a 470 Ω resistor, an LED lights one way round and not the other. Never test one straight on a battery.
- Forward voltage: within the range in the table for its colour, at its rated current.
- Current: measured with a meter in series (Measuring Electricity), within a few percent of the design figure, and the same on a full and a half-flat battery when a constant-current driver is used.
- Temperature: the finger test on the heat sink after an hour.
- Lifetime: lamps in service still give most of their first brightness after a year of evenings. A rated lifetime is usually given as the hours until light falls to 70%.
Note Troubleshooting LED does not light → in backwards; open joint; or dead (test it alone with a 9 V battery and 470 Ω). LED flashed brightly and died → no resistor, too little resistance, or a voltage spike; always connect the driver first and the LED last. One LED in a string dark, rest lit → that LED is shorted inside; replace it, then check why (often heat). Whole string dark → one LED or joint open; bridge each LED in turn with a resistor to find it. Light dims over weeks → running too hot or above rated current; enlarge the heat sink or lower the current. Blue or green tint → too little phosphor, or LEDs from different bins. Joule thief does not start → one coil reversed; swap its two ends. Flicker → driver without enough smoothing, or mains ripple; add a capacitor across the driver input.
Dangers
Danger Mains LED bulbs and capacitor-fed drivers are live throughout. The LEDs, their board and the heat sink can all be at full mains voltage. Never open or repair one while it is plugged in, and never touch any part of a home-made mains LED lamp. Build household lighting as low-voltage DC wherever you can (Wiring and Electrical Safety).
- Eyes. Power LEDs, and especially blue, violet and ultraviolet ones, are intensely bright from a tiny spot. Do not stare into one, and never shine a torch into anyone's eyes, least of all a child's. Infrared LEDs are invisible, but their light still enters and heats the eye; do not look into them from close up.
- Heat. A power LED without a heat sink reaches over 100 °C in seconds and can burn fingers and scorch wood.
- Lithium cells can burst into flame if shorted, crushed or overcharged (Lithium Batteries).
- Making chips involves arsenic, toxic gases and hydrofluoric acid. Those dangers are in Germanium, Gallium and Compound Semiconductors and Making Microchips.
- Light at night: very blue-white light late in the evening disturbs sleep. Use warm-white lamps in houses.
What this unlocks
Cheap, long-lasting light for every house from small solar and battery systems (Storing Energy). Torches and bicycle lamps (The Bicycle) that run for weeks. Indicator lamps for every instrument and machine (Electronic Test Equipment, Robots and Automation). Signals, traffic lights and lighthouses (Railway Signalling and Safety, Harbours and Lighthouses), screens and signs (Flat Screens: LCD and LED Displays), infrared remote controls and light-beam alarms (Photocells and Sensors), optical links (Fibre Optics), and growing plants under light in Cold Frames, Cloches and Greenhouses and Hydroponics and Nutrient Solutions. Laser diodes (Lasers) are the next step.
How it was first done
In 1907 H. J. Round, working for Marconi in England, saw a carborundum crystal glow yellow when current passed through it. Oleg Losev in Russia studied the same glow in the 1920s and showed that it was not the glow of a hot body. In 1955 Rubin Braunstein at RCA saw infrared light from gallium arsenide. James Biard and Gary Pittman at Texas Instruments applied for a patent on the infrared LED in 1961. In 1962 Nick Holonyak at General Electric made the first visible, red LED, from gallium arsenide phosphide. Red indicator LEDs and calculator displays followed from the late 1960s. George Craford made the first yellow LED in 1972.
Blue was the hard colour. Isamu Akasaki and Hiroshi Amano made good p-type gallium nitride at Nagoya in 1989, and Shuji Nakamura at the Nichia company in Japan made bright blue LEDs in 1993. Nichia put a yellow cerium-garnet phosphor over the blue chip and sold the first white LEDs in 1996. The three shared the 2014 Nobel Prize in Physics for "efficient blue light-emitting diodes which have enabled bright and energy-saving white light sources". Within twenty years, LEDs had become the ordinary lamp of the world.
Source: content/entries/electronics/leds.md