An electric motor is a type of electrical machine that converts electrical energy into mechanical energy. This motor is powered by DC current and AC current. We have batteries in the form of DC sources while we have inverters, power grids, generators, etc. in the form of AC sources. Most of the motors work on the principle of interaction between electric currents as well as the magnetic field in the wire winding.