what is the difference between generator and motor?
A generator converts mechanical energy into electrical energy, while a motor does the opposite - it converts electrical energy into mechanical energy. Both devices work because of electromagnetic induction, which is when a voltage is induced by a changing magnetic field.