A is two pieces of metal held very close together, with an insulator between them. Connect it to a battery and electrons pile up on one plate while the same number leave the other. No current ever crosses the gap. But while the plates fill, current flows in the wires on both sides, and when you disconnect the battery the charge stays where it is, ready to flow back out.
The first capacitor was a glass jar. In 1745 and 1746, Ewald von Kleist in Pomerania and Pieter van Musschenbroek in Leiden independently found that a jar of water with a wire in it could store a startling shock. It became known as the Leyden jar. A modern capacitor is the same idea rolled small: foil or thin metal layers, with an insulator thinner than a hair.
How much charge it holds for each volt of push is its capacitance, measured in after Michael Faraday. One farad is enormous, so real capacitors are marked in millionths, thousandths of millionths and so on:
| Written | Said | Means |
|---|---|---|
| 1,000 µF | 1,000 microfarads | 0.001 F, a big electrolytic |
| 100 nF | 100 nanofarads | 0.1 µF, the commonest small ceramic |
| 22 pF | 22 picofarads | a tiny ceramic, used in radio and clock circuits |
Picture the capacitor as a tank, and the battery as a big reservoir full to a fixed level, 4.5 volts. Connect them with a narrow pipe, the resistor, and water flows in. At first the tank is empty, the difference in level is large, and water rushes in. As the tank fills, the difference shrinks, the push gets weaker, and the flow slows down. The tank creeps up towards the reservoir’s level but takes its time over the last bit.
Emptying works the same way in reverse. Open the tank to the drain through the same narrow pipe, and it empties quickly at first, then more and more slowly as the level falls.
A capacitor charging through a resistor does exactly this. The voltage across it rises fast at first, then ever more slowly. The current is largest at the start and fades away as the capacitor fills.
Fill and empty a capacitor
Press Charge and watch the tank and the graph together. Then discharge it, or change the resistor and capacitor and try again. The dots mark each multiple of R × C.
R × C = 1 kΩ × 1000 µF = 1 s. Shown in real time.
A 4.5 V battery charging a capacitor through a resistor, and discharging it through the same resistor. Slow combinations are shown speeded up. Real capacitors are often up to 20 % off their marked value, so times on the bench are approximate.
How fast the tank fills depends on two things: how narrow the pipe is, and how big the tank is. In a circuit that is the resistance and the capacitance, and their product is called the :
Time constant = R × C. Ohms times farads gives seconds.
A 1 kΩ resistor and a 1,000 µF capacitor: 1,000 × 0.001 = 1 second. A 10 kΩ resistor and a 100 µF capacitor: also 1 second. A 4.7 kΩ resistor and a 470 µF capacitor: 2.2 seconds.
The time constant has a neat property. After one time constant, the capacitor has covered about 63 percent of the way to full. In each time constant after that, it covers 63 percent of whatever is left:
| Time | Charged | Left to go |
|---|---|---|
| 1 × RC | 63 % | 37 % |
| 2 × RC | 86 % | 14 % |
| 3 × RC | 95 % | 5 % |
| 4 × RC | 98 % | 2 % |
| 5 × RC | 99.3 % | 0.7 % |
Strictly, it never quite gets there. In practice, after five time constants, everyone calls it full. Discharging follows the same table: after one time constant, 37 percent is left; after five, almost nothing.
This is the whole secret of using capacitors for timing. Want a delay of about a second? Choose R and C to multiply to about a second.
Two kinds of capacitor cover almost everything on a beginner’s bench.
Ceramic capacitors are small blobs or discs, from a few picofarads to a few microfarads. They have no + or −, so they can go either way round. They are usually marked with a three-digit code in picofarads: two digits, then the number of zeros. 104 means 10 followed by four zeros, 100,000 pF, which is 100 nF. 103 is 10 nF; 220 is 22 pF.
are little cans that pack a large capacitance, from about 1 µF to many thousands, into a small space. The trick, patented by Charles Pollak in 1896, is an insulating layer of oxide only millionths of a millimetre thick, grown on aluminium foil. That layer only holds up one way round, so electrolytics have a + and a − leg. The − side has a stripe down the can, often printed with minus signs, and the + leg is longer.
Connected backwards, an electrolytic lets current through, heats up and makes gas. Most cans have a cross scored into the top or bottom as a vent that splits open before the can bursts. It is unpleasant rather than dangerous at 4.5 volts, but it ruins the capacitor, so check the stripe before you connect.
Every capacitor also has a voltage rating, printed on the can. Never exceed it; a rating of at least twice the voltage you will use is a good habit. For this series, 16 volts or more is plenty.
A capacitor keeps its charge after the power is switched off, so make a habit of discharging it before you touch its legs, measure it or put it back in the box. Disconnect the power, then hold a resistor of about 1 kΩ across the capacitor’s legs for five time constants: about five seconds for 1,000 µF. Use a resistor rather than a bare wire, so the charge drains away gently instead of all at once. Then check with the meter on DC volts that it reads close to 0 V.
The capacitors in this series, charged to 4.5 volts, cannot hurt you, but the habit matters. The big capacitors inside mains equipment, such as microwave ovens, old televisions and power supplies, can hold a dangerous charge long after unplugging, which is why repair instructions tell technicians to discharge them first. Never open mains equipment.
Build the LED circuit from part 2 with a 1 kΩ resistor: battery +, resistor, LED, back to −. It is dim but clearly lit. Now add a 1,000 µF electrolytic capacitor straight across the battery’s connections on the breadboard, + leg to the + rail and the striped leg to the − rail.
- Connect the battery. The capacitor fills almost instantly, because nothing slows the current from the battery, and the LED lights.
- Pull the battery’s + wire out of the board. The LED does not go out at once. It fades, over a few seconds, as the capacitor empties through the resistor and the LED.
- Swap the 1 kΩ for 2.2 kΩ or 4.7 kΩ and repeat. The fade gets slower. With 220 Ω it is over in about a second.
An LED that fades slowly
Disconnect the battery and watch the LED fade. Then change the resistor or the capacitor and try again. Each run is added to the table.
Battery connected: the capacitor is full at 4.5 V and the LED draws 2.56 mA. Now disconnect the battery.
A 4.5 V battery, a capacitor across it, and a red LED with its resistor. The LED counts as out below 0.1 mA, when it is no longer visible in a lit room. Times are approximate: real capacitors are often up to 20 % off their marked value, LEDs differ, and in a darker room the LED stays visible for longer.
The fade follows the time constant. R × C for 1 kΩ and 1,000 µF is one second, and the LED takes a few seconds to go out, because it starts at a few milliamps and has to fall a long way before it looks dark. Double the capacitor and the fade time doubles. This little circuit has a use: it is how a gadget’s light can stay on for a moment after you unplug it.
Now put the capacitor in the LED’s path instead of across the battery. Build one loop: battery +, the 1 kΩ resistor, the LED, then the 1,000 µF capacitor with its + leg towards the LED, and its striped leg back to the battery’s −. Every bit of charge that flows through the LED has to end up on the capacitor’s plates.
- Start with the capacitor empty: discharge it with a 1 kΩ resistor across its legs, as above.
- Connect the battery. The LED lights at once, then dims, and is out after about four seconds.
- Disconnect the battery and connect it again. Nothing happens. The capacitor is still charged, and no more current can flow into it.
- Disconnect the battery, discharge the capacitor, and connect the battery again. The LED lights once more.
- Try a 2.2 kΩ resistor, or a 100 µF capacitor.
An LED that lights while the capacitor fills
Close the switch and watch the LED and the graph. Then open the switch and close it again, discharge the capacitor, and try other values. Each run from empty is added to the table.
The capacitor is empty. Close the switch and watch the LED.
A 4.5 V battery, a switch, a resistor, a red LED and a capacitor in one loop. The LED counts as out below 0.1 mA, when it is no longer visible in a lit room. Discharge stands for disconnecting the battery and holding a 1 kΩ resistor across the capacitor's legs. Times and voltages are approximate: real capacitors are often up to 20 % off their marked value, LEDs differ, and in a darker room the LED stays visible for longer.
The LED shows you the current that fills the capacitor. At first the capacitor is empty, and the battery’s whole push goes into the resistor and the LED. As charge piles up, the capacitor pushes back harder, and the current dies away. It dies before the capacitor reaches 4.5 volts: a red LED needs nearly 2 volts across it before it lets a visible current through, so the capacitor stops short, at about 2.6 volts. That is as full as this loop can make it.
So a capacitor in the path of a current lets it through only while it is filling. Once it is full, the current stops, even though the battery is still connected. Storing charge for later, and passing a change while blocking a steady current, turn out to be useful in many more ways than lighting LEDs. The next part is about the four jobs capacitors do in almost every circuit you will ever open.
Sources for this part
Capacitors