A DC motor is a rotating device that converts DC power into mechanical energy. The stator of the motor provides a magnetic field, the DC power supply provides current for the rotor windings, and the commutator makes the rotor current and the torque generated by the magnetic field consistent. The commutator can be divided into two types: brush DC motor and brushless DC motor according to whether the DC motor is equipped with ordinary brushes.