Question: how a ignition switch works?
Answer: With the ignition switch turned on, primary (battery) current flows from the battery through the ignition switch to the coil primary windings. ... When the current is off, however, the magnetic field built up in the coil is allowed to collapse, which causes a high voltage in the secondary windings of the coil.