3 ms·
Switching power supplies are a simple idea complicated to do well. The concept is an inductor and a switch across the input. Close the switch, and the inductor'
by Animats 7y ago
Switching power supplies are a simple idea complicated to do well. The concept is an inductor and a switch across the input. Close the switch, and the inductor's magnetic field builds up. Open the switch, and the inductor tries to maintain constant current by producing a high voltage. If the input side inductor is part of a transformer, you can get a higher or lower voltage out as the magnetic field collapses. That's an auto ignition from the mid 20th century.
That approach suffers from arcing at the switch points, blithers all over the RF spectrum, and wastes energy by keeping the input on too long. Progress since then focuses on solving all those problems, plus some others.
Power MOSFETs provided an electronic switch with a really low ON resistance, in the millohm range, an OFF resistance in the kiloohm or even megohm range, and a switching time fast enough that you don't spend much time between ON and OFF. At very low resistance, almost no energy is dissipated in the switch, and at very high resistance, almost no energy is dissipated in the switch. Between those points, the switch loses energy through resistive heating. This is why switching power supplies get warm. The less time spent transitioning between OFF and ON, the less heating.
A switching power supply is almost a dead short across its input if the switch stays turned on after the inductor reaches magnetic saturation. This is why switching power supplies can burn up or catch fire. Failure of the power MOSFET (and they usually fail ON) or the control circuitry is big trouble. Which is why they need protection circuitry. This is what UL approval is for. Along with insisting that the input and output windings of the power transformer have enough insulation between them, so you don't get power line voltage at the USB jack.
In most other areas of electronics, you avoid generating spikes. Switching power supplies generate big spikes on purpose. Getting the energy of those spikes into the output capacitor is what it's all about. The energy can leak out as spikes on the input side, spikes on the output side, loud RF noise, or heat. Getting all those under control requires some extra parts. Surface mount ferrite beads and chip capacitors, mostly. Things you usually don't have to think about, such as the inductance of capacitors, are big issues. This is what FCC approval is for.
I designed and built a special purpose switching power supply a few years ago, and it's on Github. [1] There's a detailed explanation of how it works, including what all those minor parts do. The traditional linear solution to that problem is about 5% efficient, runs hot, and much larger.
[1] https://github.com/John-Nagle/ttyloopdriver https://github.com/John-Nagle/ttyloopdriver