Electromagnetic induction occurs when a magnet moves in and out of a coil of wire, causing a current to flow in the wire. The size of the induced voltage can be increased by moving the magnet or wire faster, using a stronger magnet, adding more turns to the coil, or using a larger coil area. Generators and dynamos produce electricity by rotating a coil of wire within a magnetic field or rotating a magnet within a coil, while transformers change the voltage of alternating current by using a changing magnetic field in one coil to induce a voltage in another coil.