Here's how it works:
* Electrical input: The motor receives electrical energy in the form of current flowing through its windings.
* Magnetic field: The current flowing through the windings creates a magnetic field.
* Interaction with another magnetic field: This magnetic field interacts with a permanent magnet or another magnetic field generated by a stator (the stationary part of the motor), creating a force that causes a shaft or rotor (the rotating part) to turn.
* Mechanical output: The rotation of the shaft produces mechanical energy, which can be used to perform work, such as turning a fan, spinning a pump, or powering a machine.
In summary, a motor acts as a "transformer" of energy, converting electrical energy into mechanical energy to power movement.