
A bicycle dynamo: a magnet spins near a coil, the magnetic flux constantly changes, and the light bulb glows. In a wall outlet, alternating current comes through a transformer, where one coil changes the field and induces current in another, stepping down or up the voltage.