what is the main difference between motor and generator?
The main difference between the two is that the Motor is an electric device which converts electrical energy into mechanical energy. The generator is vice versa of that motor. It converts mechanical energy into electrical energy.