Generally a small dynamo require a permanent magnet. Using the Faraday's law of induction, rotating a coil of wire and magnetic fields to convert mechanical rotation into a direct electric current. Thus, a dynamo converts mechanical energy to electrical energy.