Based on the phenomenon of electromagnetic induction, electric generator are prepared. In an electric generator, Mechanical energy is used to rotate a conductor in a magnetic field to produce electricity. This is the principle of an electric generator.