The generator principle is based on Faraday's law of electromagnetic induction, which states that a voltage will be induced in a conductor that is moving through a magnetic field. Generators use this principle to convert mechanical energy into electrical energy.