A DC motor is an electric machine that helps to convert electrical energy to mechanical energy. The motors operate on the principle; if you place a current-carrying conductor in a magnetic field, it will experience a mechanical force. Unlike the AC motors
that are powered directly from the mains, DC motors rely on batteries or rectifiers (a device that converts AC to DC). The design of a DC motor mainly consists of two parts. (1) Stator (stationary part): This part consists of field coils or permanent magnet
that generates the magnetic field. (2) Rotor: This is the rotating part and is connected to the output shaft. The rotation effect is generated from the opposition between the rotor's magnetic field and slators magnetic field. Therefore, the speed of DC motors is directly proportional to the applied voltage. Because torque in DC motors does not rely on speed, they have the advantage of retaining power even at low speeds.