Parts We Miss: The Mains Transformer [Hackaday]

View Article on Hackaday

About two decades ago there was a quiet revolution in electronics which went unnoticed by many, but which overturned a hundred years of accepted practice. You’d have noticed it if you had a mobile phone, the charger for your Nokia dumbphone around the year 2000 would have been a weighty device, while the one for your feature phone five years later would have been about the same size but relatively light as a feather. The electronics industry abandoned the mains transformer from their wall wart power supplies and other places in favour of the much lighter and efficient switch mode power supply. Small mains transformers which had been ubiquitous in electronics projects for many years, slowly followed suit.

Coils Of Wire, Doing Magic With Electrons

Inside and outside views of Jenny Lists's home made linear power supply from about 1990
This was a state of the art project for a future Hackaday scribe back in 1990.

A transformer works through transferring alternating electrical current into magnetic flux by means of a coil of wire, and then converting the flux back to electric current in a second coil. The flux is channeled through a ferromagnetic transformer core made of iron in the case of a mains transformer, and the ratio of input voltage to output voltage is the same as the turns ratio between the two. They provide a safe isolation between their two sides, and in the case of a mains transformer they often have a voltage regulating function as their core material is selected to saturate should the input voltage become too high. The efficiency of a transformer depends on a range of factors including its core material and the frequency of operation, with transformer size decreasing with frequency as efficiency increases.

When energy efficiency rules were introduced over recent decades they would signal the demise of the mains transformer, as the greater efficiency of a switch-mode supply became the easiest way to achieve the energy savings. In a sense the mains transformer never went away, as it morphed into the small ferrite-cored part running at a higher frequency in the switch-mode circuitry, but it’s fair to say that the iron-cored transformers of old are now a rare sight. Does this matter? It’s time to unpack some of the issues surrounding a small power supply.

Better DC, Or Just Resistance To Change?

The insides of a Cambridge Audio amplifier
Hi-Fi, the last holdout of the mains transformer. J. C. Barros from Portugal, CC BY 2.0

A traditional linear power supply was a very simple device: besides the transformer, you’d have a rectifier, a capacitor, and a three terminal regulator if it was a particularly fancy circuit. It could get a little warm, but what came out of it was as good a regulated DC as you could ask for. Switching power supplies on the other hand are more complex, particularly the older ones. There’s a rectifier and capacitor on the mains input, some switching transistors, that ferrite transformer followed by another rectifier, and keeping it all running a control IC with an optocoupler for mains isolation.

Switching power supplies can be very noisy, as anyone who’s used a shortwave radio near cheap consumer electronics will attest. This leads to an odd phenomenon among some engineers, the belief that all switching supplies are noisy — rather than just old or very cheaply built ones — which brings us to one of the last holdouts of the iron-cored mains transformer. Your TV, your computer, or your charger will have a switching power supply, but the chances are that if you own a high-end Hi-Fi amplifier it will have a large toroidal mains transformer. They may have gone from everywhere else, but audiophiles still like them. In that application we’re sure a large mains transofrmer will do a fine job, but here in 2024 we’d be inclined to dispute that an appropriately well-designed switcher wouldn’t be just as good, certainly with enough filtering downstream.

So the mains transformer is slowly shuffling off this mortal coil, and thus you are less likely to find one in your junk box than you once might have. Do you miss them? Probably not if all you want is a DC supply, but that’s not to say they don’t have other uses. If you’ve tried making a tube guitar amplifier you’ve probably been shocked at the price of audio transformers and pleased to find that an old wall wart can provide an alternative, for example. Do you still use mains transformers? Tell us below in the comments.