2 0 1 1 年全国大学生电子设计竞赛 PW M 控制直流电机转速(A 题) 【高职组】 2011 年9 月 6 日 - 1 - 摘 要 本设计主要要实现的功能是,通过直流电机PW M 控制系统,实现对直流电机的加速、减速以及电机的正转、反转和急停,并且可以调整电机的转速,能够很方便的实现电机的智能控制。主要采用直流电机PW M 调速系统以 AT89S52单片机为控制核心,由命令输入模块、LCD 显示模块及电机驱动模块组成。使用带中断的独立式键盘作为命令的输入,单片机在程序控制下,定时不断给 L298直流电机驱动芯片发送 PW M 波形 H 型驱动电路完成电机正、反转和急停控制,同时单片机不停的将 PW M 脉宽调制占空比送到 LCD1602 液晶来完成实时显示。 关键词:直流电机;PW M;控制。 - 2 - abstract This design mainly in order to realize the function is, through the dc motor PWM control system, the implementation of the dc motor speed, motor and reducer, move forward, reverse and stop, and can adjust the speed of the motor, can easily realize the intelligent control of the machine. Mainly adopts dc motor PWM speed regulation system AT89S52 single chip microcomputer as control core, by the command input module, LCD display module and motor drive module. Using independent type keyboard with interruption as command input, single chip microcomputer under program control, timing, constantly send dc motor driver chip L298 PWM waveform H drive circuit to complete the motor positive and reverse and stop control, meanwhile microcontroller of the PWM pulse width modulation duty cycle to the LCD1602 LCD to complete real-time display. Keywords: dc motor; PWM. Control. - 3 - 目 录 一 系统方案设计与分析 ……………………………………………4 1 系统总体框图 ………………………………………………………4 2 方案论证与选择 ……………………………………………………4 2.1 控制模块的论证与选择…………………………………………4 2.2 输入模块的论证与选择……………………………...