§ How it works
Faraday's law ties the winding voltage to the rate of change of core flux, . For a sinusoid with peak flux density this gives the classic transformer EMF equation:
(.) For a bipolar square wave the flux ramps linearly and the constant becomes 4. Choosing below saturation, and low enough to keep core loss acceptable, fixes the minimum primary turns. The secondary follows from the ideal ratio:
Turns are rounded up (more turns → lower flux). In practice add 5–10 % to to compensate for winding resistance drop under load. Flux lags the voltage by 90°, as the plot shows.