How does a transformer work?
A transformer works on the principle of electromagnetic induction and is used to change the voltage level of alternating current (AC). It consists of two coils: the primary and secondary, which are not electrically connected but linked by a magnetic field. When AC flows through the primary coil, it creates a varying magnetic field, inducing a voltage in the secondary coil. The voltage change between the primary and secondary coils depends on the ratio of the number of turns in each coil.