《单片机原理及接口技术》课程设计报告课 题 名 称直流 PWM 调速系统的 MATLAB 仿真学 院自 动 控 制 与 机 械 工 程 学 院专 业机 械 设 计 制 造 及 自 动 化班 级姓 名( 学 号 )时 间2 0 2 5 - 1 - 9摘 要直流电机具有良好的启动性能和调速特性,它的特点是启动转矩大,能在宽广的范围内平滑、经济地调速,转速控制容易,调速后效率很高。本文设计的直流电机调速系统,主要由 51 单片机、电源、H 桥驱动电路、LED 液晶显示器、霍尔测速电路以及独立按键组成的电子产品。电源采纳 78 系列芯片实现+5V、+15V 对电机的调速采纳 PWM 波方式,PWM 是脉冲宽度调制,通过 51 单片机改变占空比实现。通过独立按键实现对电机的启停、调速、转向的人工控制,LED 实现对测量数据(速度)的显示。电机转速利用霍尔传感器检测输出方波,通过 51 单片机对 1 秒内的方波脉冲个数进行计数,计算出电机的速度,实现了直流电机的反馈控制。 关键词:直流电机调速;H 桥驱动电路;LED 显示器;51 单片机ABSTRACTDC motor has a good startup performance and speed characteristics, it is characterized by starting torque, maximum torque, in a wide range 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 electronic 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 motor to achieve a DC ...