A dynamo, which is another name for an electrical generator, is a device that converts mechanical energy (energy of motion) into electrical energy using the principle of electromagnetic induction. It works by rotating a coil in a magnetic field or rotating a magnetic field around a coil, inducing an electric current.