Understand how transformers transfer electrical energy between circuits through electromagnetic induction and voltage conversion.
The transformer is a component that modifies the value of an alternating voltage, and with it that of the current, without moving parts and with high efficiency. It operates only with alternating current, because its principle is based on the time variation of the magnetic flux. It is found in power supplies and battery chargers, in energy distribution systems, where it adapts voltages from generation to consumption, and in signal circuits, where it galvanically isolates two parts of a circuit [1][2].
Two windings, the primary and the secondary, are wound on the same ferromagnetic core, that is, with high magnetic permeability, which guides the flux. The alternating current in the primary generates a variable magnetic flux in the core. According to the Faraday-Neumann-Lenz law, a variation of flux linked with a winding induces in it a voltage proportional to the rate of change: $v = N\,\dfrac{d\Phi}{dt}$, with $N$ number of turns and $\Phi$ magnetic flux, measured in weber. Since the flux in the core is the same for both windings, the voltage per turn is equal and the voltages are proportional to the number of turns [1][2].
The ideal model assumes windings without resistance, a core without losses and infinite permeability, thus fully linked flux. The relations are
$$\frac{V_1}{V_2} = \frac{N_1}{N_2}, \qquad \frac{I_1}{I_2} = \frac{N_2}{N_1}, \qquad V_1 I_1 = V_2 I_2$$
The ratio $N_1/N_2$ is the transformation ratio. If $N_2 < N_1$ the transformer is a step-down voltage and step-up current; if $N_2 > N_1$ the opposite occurs. In any case, power does not change: the transformer does not create energy, it transfers it with different voltage and current values.
For a sinusoidal voltage with rms value $V$ and frequency $f$, the flux in the core has a maximum amplitude related to the voltage by the relation
$$V = 4{,}44\,f\,N\,B_{max}\,A$$
where $B_{max}$ is the maximum magnetic induction (in tesla) and $A$ the core cross-section. The formula shows that, for the same voltage, a higher frequency allows smaller cores and windings: this is why switching power supplies, which operate at tens of kilohertz, use transformers much smaller than those at $50\ \mathrm{Hz}$. The induction must not exceed the saturation value of the material, otherwise the core no longer guides the flux and the magnetizing current increases greatly.
The real transformer deviates from the ideal for several reasons. The resistance of the windings causes losses due to the Joule effect (copper losses) and voltage drops under load. In the core, magnetic hysteresis and eddy currents generate iron losses, present also at no load; to reduce eddy currents the core is made of laminated sheets insulated from each other. Part of the flux is not linked with both windings (leakage flux) and produces a leakage inductance. The efficiency of small power transformers is usually around $80$-$90\ \%$, and increases with power.
The goal is to obtain $12\ \mathrm{V}$ rms from a $230\ \mathrm{V}$, $50\ \mathrm{Hz}$ mains, with a load of $2\ \mathrm{A}$.
1. Transformation ratio: $N_1/N_2 = 230/12 \approx 19.2$.
2. Power at the secondary: $P_2 = 12\cdot2 = 24\ \mathrm{W}$.
3. Primary current in the ideal case: $I_1 = P_2/V_1 = 24/230 \approx 0.104\ \mathrm{A}$. With an assumed efficiency of $85\ \%$ the absorbed power is $24/0.85 \approx 28.2\ \mathrm{W}$ and the current (considering voltage and current approximately in phase) is about $0.123\ \mathrm{A}$.
4. With a core of cross section $A = 5\ \mathrm{cm^2}$ and $B_{max} = 1.2\ \mathrm{T}$: $N_1 = 230/(4.44\cdot50\cdot1.2\cdot5\cdot10^{-4}) \approx 1727$ turns.
5. Secondary turns: $N_2 = 1727\cdot12/230 \approx 90$ turns.
The secondary wire must withstand $2\ \mathrm{A}$ and the primary about $0.12\ \mathrm{A}$, with different cross sections. Mains voltages are dangerous: a transformer connected to the mains requires certified components and adequate protections.
Transformers are distinguished by core shape (column, shell, toroidal), by function (power, isolation, signal, pulse), by number of windings, and by the presence of a single winding with a tap (autotransformer), which does not isolate but is lighter. Distribution transformers are oil-immersed for cooling and insulation; three-phase transformers have three pairs of windings.
[1] Wikipedia (en): Transformer
[2] Wikipedia (it): Trasformatore
Generating summary…