A DC permanent magnet synchronous motor, including: a motor body including a rotating shaft, a permanent rotor assembly, a stator assembly, and a housing assembly; a motor controller including a first microprocessor for drive control, an inverter circuit, and a detection circuit for detecting operating parameters of the motor; and an external control card including a second microprocessor for application control. The operating parameters of the motor are input into the first microprocessor by the detection circuit. The first microprocessor outputs a PWM signal to control the inverter circuit. An output end of the inverter circuit is connected to a coil winding. The external control card is disposed outside the motor body and is connected to the motor body via an electric wire. The second microprocessor and the first microprocessor are interconnected so that they can communicate.