Motor overheating can cause the winding insulation, which will burn down the motor as it becomes serious. Dual channel of traditional PID control algorithm can reduce the motor temperature control accuracy and lead to motor overheating. In the simulation experiment, when the change of voltage and current remains under 30%, the improved algorithm can better realize accurate and stable temperature control than the traditional algorithm. The stability and accuracy increases by 36.5%, which suits for popularization and application.