Abstract:After the analysis of pulse-width modulating DC motor, a locomotive wiper controller based on the pulse-width modulating to regulate voltage of permanent magnet DC motor is designed. The micro controller with PWM module drives DC motor by power MOSFET. The experimental result shows that the system realizes the function of three gears, which has features of reliable performance, simple structure, etc.