Electromagnetic induction produces induced current from a changing magnetic field. Lenz's law states that induced current always flows in a direction to oppose the change producing it. A dynamo uses this principle to generate direct current (DC) through a split ring commutator or alternating current (AC) through slip rings from the rotation of a coil within a magnetic field.