Part 14 · Electronics and Computing
Power Supplies and Regulators
Almost every electronic device needs steady direct current at a voltage of its own, and the mains or a battery gives something else. How to design a complete supply (transformer, rectifier and smoothing), how to hold its voltage steady with gas tubes, Zener diodes and transistor regulators, how switch-mode supplies work, and how to build automatic battery chargers and the inverters that turn a battery back into alternating current.
- Difficulty
- ●●●●●
- Time
- An afternoon for a simple supply; a few days for a regulated bench supply or automatic charger; one to two weeks for an inverter
- Steps from zero
- 46 prerequisites →
This unlocks
Power Electronics and Motor DrivesThe full path from nothing — 46 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
- Lime
- Bricks
- Salt
- Mercury
- Fermentation
- Lye and Potash
- The Wheel and Axle
- Glass
- Firebrick and Refractories
- Bellows
- Saltpeter
- Gears
- The Lathe
- Copper Smelting
- Iron (the Bloomery)
- Laboratory Glassware
- Sulfuric Acid
- The Waterwheel
- Pumps
- Blacksmithing
- Hydrochloric Acid
- The Battery
- Magnets
- The Vacuum Pump
- Copper Wire
- The Light Bulb
- The Electromagnet
- The Generator
- The Vacuum Tube
- The Electric Arc Furnace
- The Transformer
- Rectifiers: Turning AC into DC
- Pure Silicon
- Semiconductors and the Transistor
- Power Supplies and Regulators
Do them roughly in this order. See it on the tech tree →
Why it matters
A radio wants 6 V for its filaments and 250 V for its plates; a The Computer wants 5 V held within a few per cent; a The Automatic Telephone Exchange wants 48 V. All want clean, steady direct current that does not sag with the load or hum with the mains. What you have is a generator, grid or battery whose voltage is wrong and wanders.
The power supply is the box in between. With a good one, amplifiers stop humming, oscillators stop drifting and logic stops making random errors; a bad one is behind more faults than any other part.
The other way round matters too. A village with batteries charged by Solar Cells, a Wind Turbines or a small Water Turbines and Hydroelectric Power wants alternating current to run ordinary lamps and motors. The inverter makes it.
The basic chain — transformer, rectifier, capacitor, choke — is in Rectifiers: Turning AC into DC and Amplifiers and Oscillators. This chapter shows how to size it, steady it, and turn it round.
How it works
Smoothing and ripple
After a bridge rectifier, a large reservoir capacitor charges to the peak of the AC wave — 1.41 times the RMS voltage on the transformer label, less about 1.4 V for the two rectifiers that conduct at once. Between peaks the load drains it, and its voltage sags. The sag is the ripple:
ripple (volts, top to bottom) ≈ load current (A) ÷ (2 × mains frequency × capacitance in farads)
On 50 Hz, a 1 A load on 4,700 µF gives 1 ÷ (100 × 0.0047) = 2.1 V of ripple. A good rule for low-voltage supplies: 2,000–5,000 µF per ampere. For tube supplies of a few tens of milliamps at 250 V, 8–32 µF is enough, followed by a choke.
Two ways to filter:
| Capacitor first ("capacitor input") | Choke first ("choke input") | |
|---|---|---|
| Output, light load | About 1.41 × RMS | About 0.9 × RMS |
| As load rises | Falls noticeably | Stays almost steady |
| Stress on rectifier and transformer | Heavy: short peaks of current several times the average | Gentle |
| Use for | Most supplies, especially low voltage | Heavy tube supplies, transmitters |
A choke-input filter needs a minimum load to work properly: a bleeder resistor always drawing about a tenth of the full current (Amplifiers and Oscillators).
Sizing the transformer and rectifiers
- A capacitor-input supply draws current in short, high peaks, which heat the transformer more than steady current would. Rate the transformer at 1.5–1.8 times the DC watts you take from it.
- Each rectifier must stand the reverse voltage. In a bridge, that is the peak voltage (1.41 × RMS); in a centre-tapped circuit, twice that. Allow 50% more for spikes.
- Each rectifier must carry the average load current (half of it in a bridge), plus the charging surge when the supply is first switched on into an empty capacitor. A small resistance (a fraction of an ohm, or the transformer's own winding) limits that surge.
What regulation means
An unregulated supply's output moves for three reasons: the load changes, the mains voltage changes, and ripple rides on it. A regulator compares the output with a steady reference voltage and corrects it, all the time. Every regulator needs:
- A reference that does not change — a gas tube, a Zener diode, a battery cell.
- Some headroom: the raw supply must stay a few volts above the output even at the bottom of the ripple and with the mains low.
- A place to throw away the extra voltage, as heat.
What you need
| Item | Notes |
|---|---|
| Transformer | With the right secondary voltage and current (The Transformer) |
| Rectifiers | Selenium, copper-oxide, tube, or silicon junction diodes (Rectifiers: Turning AC into DC, Semiconductors and the Transistor) |
| Electrolytic capacitors, 100–10,000 µF | Resistors, Capacitors and Coils |
| Iron-cored choke, 5–30 H for tubes | Resistors, Capacitors and Coils |
| Power transistors or tubes | For series regulators and inverters |
| Neon, argon | For gas regulator tubes (Liquid Air, Nitrogen and the Noble Gases) |
| Aluminium or copper sheet | Heat sinks (Aluminium, Sheet Metal and Rolling) |
| Fuses, earth wire, mains switch | Wiring and Electrical Safety |
| Voltmeter, ammeter, oscilloscope | Measuring Electricity, Electronic Test Equipment |
Where to find it
All the parts come from earlier chapters. Mica, split thin from the glittering books in pegmatite veins, insulates power transistors from their heat sinks while letting heat through. Slate and lac-varnished hardwood make terminal boards; beeswax seals paper capacitors.
Regulators
The shunt regulator
The simplest. A resistor drops the raw supply down to a device whose voltage hardly changes with current. The load sits across the device. If the load takes less, the device takes more, and the voltage stays put. Design:
series resistor = (lowest raw voltage − regulated voltage) ÷ (largest load current + smallest device current)
Then check that with no load the device does not take more than its maximum current. A shunt regulator wastes power all the time, so use it for small loads and for references.
The gas regulator tube
A glow discharge between two electrodes in neon or argon has a curious property: once it is lit, the voltage across it stays almost constant while the current through it changes five- or tenfold. The voltage is set mainly by the gas and the cathode metal: neon with an iron cathode burns at about 150 V, neon with nickel near 140 V, argon with aluminium near 100 V. The little neon glow lamp of Arc Lamps, Neon and Fluorescent Lights does the same thing at 60–90 V, but for only a milliampere or two.
Making one:
- A glass bulb about 2.5 cm across, with two seal-through wires (The Vacuum Tube).
- Cathode: a clean cylinder of nickel or soft iron sheet, 1.5 cm across and 3 cm long. Its large area lets it carry up to about 30–40 mA without the glow covering all of it — once the glow covers the whole cathode, the voltage starts to rise and regulation is lost.
- Anode: a 1 mm nickel wire up the centre of the cylinder.
- Pump hard and bake (The Vacuum Pump), then fill with pure neon (or argon) at roughly 10–30 mm of mercury. Seal.
- Burn in at about 20 mA for a day or two. The voltage settles as the cathode cleans itself.
- It needs 10–20% more voltage to strike than to keep burning; make sure the raw supply gives that.
Using it: put it in a shunt regulator with a series resistor. For a 250 V raw supply feeding 10 mA at 150 V, with the tube taking 15 mA: (250 − 150) ÷ 0.025 = 4,000 Ω. A gas tube holds its voltage within about 1–2% from 5 to 30 mA. Stack two in series for 300 V. Gas tubes are the regulators of the tube era: they steady oscillator plates, the reference of feedback regulators, and the screen voltages of measuring amplifiers.
The Zener diode
Turn a silicon junction diode round and it blocks — until, at a certain reverse voltage, it suddenly conducts heavily (Semiconductors and the Transistor). Above that point the voltage hardly rises however much current flows. A diode made to work this way is a Zener diode: the low-voltage cousin of the gas tube.
- The breakdown voltage depends on how heavily the silicon is doped. Heavily doped junctions break down at a few volts, lightly doped ones at tens or hundreds.
- Near 5.6 V, the voltage barely changes with temperature. Use this value for references wherever you can.
- Making them: there is no separate process. Make a batch of silicon junction diodes (Semiconductors and the Transistor), test each one's reverse breakdown with a variable supply, a 1 kΩ resistor and a voltmeter, and sort them by voltage. A diode whose breakdown is sharp (current rising from nothing to 10 mA within 0.1–0.2 V) is a Zener; a soft, sloping one is not. Diodes made with heavier doping give lower voltages.
- Quick substitutes: forward-biased silicon diodes each hold about 0.6–0.7 V; three in series make a rough 2 V reference. A single lead-acid cell holds 2.0 V very steadily when only trickle-charged.
The emitter follower
A Zener can only carry tens of milliamps. To supply amps, let a power transistor carry the current and the Zener only hold its base.
- Connect the transistor's collector to the raw supply, its emitter to the output.
- Hold its base at the Zener voltage, fed through a resistor from the raw supply.
- The emitter sits about 0.6 V below the base, whatever the load. A 13 V Zener gives about 12.4 V out.
- The Zener now only supplies the base current: load current ÷ transistor gain. For 1 A and a gain of 50, that is 20 mA. If the gain is too low, use two transistors, the first driving the second's base (a Darlington pair).
The feedback regulator
The emitter follower is only as steady as the Zener and the transistor's 0.6 V. For a laboratory supply, add an amplifier:
- A divider of two resistors across the output feeds a fraction of it to one input of the amplifier.
- The reference (a 5.6 V Zener, or a gas tube) feeds the other.
- The amplifier drives the base of the series transistor. If the output rises even slightly, the fraction rises above the reference, the amplifier turns the transistor down, and the output falls back.
- Make the divider adjustable with a potentiometer, and you have a variable bench supply that holds any set voltage within a few hundredths of a volt from no load to full load.
In tubes: a power triode as the series element, a pentode as the amplifier and a gas tube as the reference. This was the standard regulated supply for laboratories and radio transmitters from the late 1930s.
Current limiting
A short circuit on a regulated supply makes the series transistor try to pass everything the raw supply can give, and it dies in an instant. Put a small sense resistor in the output lead, and a second small transistor whose base and emitter sit across it. When the drop across the resistor reaches 0.6 V, that transistor turns on and steals the base current from the series transistor. The current limit is:
sense resistor = 0.6 ÷ limit current
For a 1 A limit, 0.6 Ω. A supply with this can be shorted all day without harm.
Heat
The series transistor throws away (raw voltage − output voltage) × current as heat. From an 18 V raw supply giving 12 V at 1 A, that is 6 W. Bolt the transistor to a blackened aluminium or copper plate at least 12 × 12 cm, 3 mm thick, standing upright in free air, with a mica washer and a smear of grease between. If you cannot hold a finger on the plate (over about 60 °C), make it bigger. Germanium transistors die above about 75–90 °C inside; silicon ones stand 150 °C.
A worked example: a 12 V, 1 A bench supply
- Transformer: 230 V to 15 V RMS, rated about 30 VA.
- Bridge: four silicon diodes rated 2 A and 50 V. Peak out: 15 × 1.41 − 1.4 = 19.8 V.
- Reservoir: 4,700 µF rated 35 V. Ripple at 1 A: about 2.1 V, so the raw supply dips to about 17.7 V.
- Regulator: feedback type, set to 12 V; current limit 1.2 A with a 0.5 Ω sense resistor.
- Headroom check: with the mains 10% low, the dip falls to about 15.7 V, still more than 2 V above the output. Good.
- Protection: a 250 mA slow fuse in the mains lead, an earthed metal case, a bleeder of 2.2 kΩ across the reservoir, a pilot lamp.
Switch-mode supplies, in outline
A series regulator burns its spare voltage: from 24 V to 5 V at 2 A it wastes 38 W to deliver 10 W. A switch-mode supply instead chops the input very fast and smooths the pieces.
- Buck (step-down): a transistor switch connects the input to an inductor and capacitor for part of each cycle. A diode carries the inductor's current when the switch is off. The output is the input times the fraction of time the switch is on: on half the time, 24 V becomes 12 V. A control circuit compares the output with a reference and adjusts that fraction.
- Boost (step-up) and flyback circuits rearrange the same parts to raise voltage. The flyback is the circuit that makes the 10,000–25,000 V for a Cathode Rays and Television picture tube.
- Switching 20,000–100,000 times a second lets the cores be tiny. Efficiency is 80–90% whatever the voltage ratio.
They demand fast transistors and diodes, cores of ferrite or fine iron powder bound in lac (Transformer Steel, Ferrite and Magnetic Shielding; laminated iron is useless at these frequencies), and careful screening, because the switching sprays radio interference (Interference, Screening and Earthing). Build them once you have good transistors and Integrated Circuits; with tubes, build linear supplies.
Battery chargers
The simple charger — transformer, rectifier and series resistance — is in Rectifiers: Turning AC into DC. With a regulator you can build a charger that looks after itself.
Lead-acid: constant voltage with a current limit
- Use the 12 V bench supply design, but set the output to 14.4 V (2.4 V per cell) with the current limit at one-tenth of the battery's capacity (5 A for a 50 Ah battery). Scale the transformer, rectifier and heat sink to suit.
- A flat battery takes the full limited current at first. As it charges, its voltage rises to 14.4 V and the current falls away by itself.
- When the current has fallen to about one-fiftieth of capacity (1 A for 50 Ah), switch the set point down to 13.5–13.8 V (2.25–2.3 V per cell). This float voltage keeps the battery full for months without boiling the acid. Do it by hand, or with a relay worked by a small transistor that watches the drop across the current sense resistor.
- Temperature: lower the voltages about 0.02 V per cell for every 5 °C above 25 °C, and raise them as much below. A thermistor in the divider, taped to the battery, does it automatically.
- A blocking diode in the output stops the battery discharging back into the charger when the mains fails.
Other batteries
- Nickel–iron cells (The Rechargeable Battery) like a constant current of a fifth of their capacity for about 7 hours; they stand overcharging well. Each cell rises to about 1.7–1.8 V.
- Lithium cells must stop at exactly 4.2 V per cell (±0.05 V) and must never be overcharged (Lithium Batteries).
Inverters
An inverter turns direct current back into alternating current. Three routes:
- Rotary: a DC motor turning an alternator — the motor-generator of Synchronous Motors and Converters. Heavy, noisy, but gives a true sine wave and survives anything.
- Vibrator: an electromagnetic reed switching the battery back and forth.
- Transistor: power transistors doing the same with no moving parts.
The vibrator power supply
- A reed of spring steel, 3–4 cm long, carries a contact on each side and an iron weight at its tip. An electromagnet, fed through a third contact that the reed opens as it moves (like a buzzer), keeps it swinging at about 100–120 Hz.
- The two side contacts connect the battery's negative to one end or the other of a centre-tapped primary; the centre tap goes to positive. Current flows first one way through the core, then the other.
- The secondary gives a square wave, which a rectifier and filter turn into high-voltage DC; or use it directly as AC.
- Contacts of tungsten (Tungsten and Filament Wire) or silver last longest. Put a buffer capacitor (about 0.01 µF, rated 1,500 V or more) across the secondary to soak up the voltage spike at each switch-over; without it the contacts burn out in hours.
The transistor inverter
- Two power transistors, each switching one half of a centre-tapped primary, as the vibrator's contacts did.
- Self-oscillating: a small feedback winding on the same transformer drives the bases, so each transistor turns the other off when the core saturates. Simple, robust, runs at a few hundred to a few thousand cycles a second. Good for fluorescent lamps and for making high voltage.
- Mains frequency: for 50 Hz output, drive the bases from a separate multivibrator (Electronic Counters) set to 50 Hz, through a driver stage. The transformer must then be a full-size mains transformer.
- Sizing: 300 W from a 12 V battery takes about 30 A at 85% efficiency. Use primary wire of at least 10 mm² of copper, short thick battery leads, and a fuse at the battery.
- Wave shape: a plain square wave of the right RMS voltage runs lamps, heaters and universal motors well, but has too low a peak for equipment that rectifies the mains, and overheats some induction motors. Better: switch each transistor on for only the middle half of its half-cycle, with both off in between, and wind the transformer for peaks of 1.41 times the RMS voltage you want. This stepped wave has the right peak and the right RMS together, and runs nearly everything.
- Low-battery cut-off: a relay or transistor that shuts the inverter down below about 11.5 V, to save the battery (The Rechargeable Battery).
How to tell it worked
- No-load to full-load: a regulated supply's output changes by less than 1%; an unregulated one by 10–20%.
- Ripple: on the oscilloscope, set to its most sensitive range, a regulated output shows a nearly flat line; a few millivolts of 100 Hz ripple is good. Headphones through a capacitor across the output hear only a faint hum or none.
- Short circuit: a current-limited supply survives a dead short for a minute, cool, and recovers instantly when the short is removed.
- Charger: a full battery left on float for a week loses no water and its hydrometer reading stays at "full".
- Inverter: runs a lamp at full brightness; its output measured on a moving-iron meter is within 5% of the design; the transistors run warm, not hot.
Note Troubleshooting. Output hums → reservoir capacitor too small or dried out; earth wiring that forms a loop; regulator dropping out at the bottom of the ripple (raise the raw voltage). Output falls as load rises, even with a regulator → not enough headroom; or a resistance in the output wiring after the sense point. Regulator oscillates (output hissing or high on the oscilloscope) → add a small capacitor across the output and a 100 pF capacitor from base to collector of the amplifier transistor. Gas tube flickers or will not strike → raw voltage too low; tube needs burning in; gas contaminated. Vibrator contacts burn → buffer capacitor missing or wrong value. Inverter transistors die at once → no protection from the spike as the current switches; add diodes across each transistor, collector to emitter, pointing back to the supply.
Dangers
Danger Charged capacitors kill after switch-off. A reservoir capacitor in a tube supply holds 300–500 V for minutes or hours if its bleeder has failed. Before touching anything inside, switch off, wait, and short each capacitor with an insulated screwdriver or a resistor on a stick, then check with a voltmeter.
Danger An inverter's output is as deadly as the mains. Earth its case and output as for mains wiring (Wiring and Electrical Safety). Never connect an inverter or generator to a building's wiring while it is also connected to the grid: power flowing back up the line through the transformer can kill a lineworker who believes it dead. Use a changeover switch that connects the building to one source or the other, never both.
- Electrolytic capacitors connected backwards, or run above their voltage, swell, boil and burst, spraying hot caustic paste. Mark polarity on every one.
- Battery short circuits at the hundreds of amps a lead-acid battery can give melt tools and spray metal. Fuse every battery lead close to the battery; remove rings and watches.
- Hydrogen from batteries on charge explodes with a spark. Ventilate, and switch the charger off before connecting or disconnecting (The Rechargeable Battery).
What this unlocks
Steady supplies make possible accurate Electronic Test Equipment, stable Quartz Crystals and Frequency Control and Radio transmitters, reliable The Computer logic and Integrated Circuits. Chargers and inverters turn Solar Cells, Wind Turbiness and Storing Energy into a household supply, and the same circuits, scaled up, drive Electric Vehicles and the variable-speed motor drives of Robots and Automation.
How it was first done
Mains supplies with rectifier tubes and capacitor–choke filters replaced radio batteries in the later 1920s, and gas regulator tubes followed in the 1930s. Clarence Zener explained electrical breakdown in insulators in 1934, and silicon reference diodes named after him were made from the mid-1950s at Bell Laboratories and elsewhere. Vibrator supplies powered car and farm radios from about 1930 for twenty-five years. Transistor regulators and inverters followed the junction transistor in the 1950s; George Royer described the self-oscillating saturating-core inverter in 1955. Switch-mode supplies were developed for spacecraft and computers in the 1960s and became universal from the 1970s, when fast silicon power transistors and control chips made them cheap.
Source: content/entries/electronics/power-supplies.md