1、 单片机原理与应用课题设计单片机原理与应用课题设计 P W M 直 流 电 动 机 调 速 控 制 系 统 专业:铁道机车车辆 班级: 函机车 2011-1 班 学号: 姓名: 2 摘摘 要要 直流电机具有良好的启动性能和调速特性,它的特点是启动转矩大,能在宽 广的范围内平滑、经济地调速,转速控制容易,调速后效率很高。 本文设计的直流电机调速系统,主要由 51 单片机、电源、H 桥驱动电路、 LED 液晶显示器、霍尔测速电路以及独立按键组成的电子产品。电源采用 78 系 列芯片实现+5V、+15V 对电机的调速采用 PWM 波方式,PWM 是脉冲宽度调制,通 过 51 单片机改变占空比实现。通
2、过独立按键实现对电机的启停、调速、转向的 人工控制,LED 实现对测量数据(速度)的显示。电机转速利用霍尔传感器检测 输出方波,通过 51 单片机对 1 秒内的方波脉冲个数进行计数,计算出电机的速 度,实现了直流电机的反馈控制。 关键词关键词:直流电机调速;H 桥驱动电路;LED 显示器;51 单片机 ABSTRACT DC motor has a good startup performance and speed characteristics, it is characterized by starting torque, maximum torque, in a wide range
3、of smooth, economical speed, speed, easy control, speed control after the high efficiency. This design of DC motor speed control system, mainly by the microcontroller 51, power supply, H-bridge driver circuits, LED liquid crystal display, the Hall velocity and independent key component circuits of e
4、lectronic products. Power supply with 78 series chip +5 V, +15 V for motor speed control using PWM wave mode, PWM is a pulse width modulation, duty cycle by changing the MCU 51. Achieved through independent buttons start and stop the motor, speed control, turning the manual control, LED realize the measurement data (speed) of the display. Motor speed using Hall sensor output square wave, by 51 seconds to 1 microcontroller square wave pulses are counted to calculate the speed of the mo