A DC generator converts mechanical energy into electrical energy through electromagnetic induction according to Faraday's Laws. It has two main parts: a magnetic field and conductors. When the conductors move within the magnetic field, a voltage is induced across the conductors and electrical energy is generated.