Motors are electrical devices that convert electrical energy into mechanical energy. They operate through the interaction between the motor’s magnetic field and electric current in a wire winding to generate force in the form of torque applied on the motor’s shaft. Motors can be powered by direct current (DC) from a battery or by alternating current (AC) from an electrical power grid or electrical generator.