Dynamo is a device for converting mechanical energy into electrical energy, especially one that produces direct current. It uses electromagnetic principles to convert mechanical rotation into a pulsing direct electric current through the use of a commutator.