A DC generator converts mechanical energy to electrical energy by working on the principle of Faraday’s Law of Electromagnetic Induction.