An electric motor is a device that converts electrical energy into mechanical energy. The principle of an electric motor is based on the interaction between the motors magnetic field and electric current. When an electric current is passed through a conductor placed normally in a magnetic field, a force acts on the conductor, and the conductor begins to move, resulting in mechanical energy. The magnetic field can be produced by a magnet or windings around a magnetic core. The electric motor has two mechanical parts: the rotor, which moves, and the stator, which does not. It also includes two electrical parts, magnets and an armature, one of which is attached to the rotor and the other to the stator. Together they form a magnetic circuit. The magnets create a magnetic field that passes through the armature. The direction of the magnetic field produced by a current-carrying conductor can be found by Amperes right-hand rule. The basic parts of a DC motor include the stator, rotor, commutator, and power source.