《计算机控制技术课程设计》题 目: 基于 STM32 直流电机 PID 调速 学院: 计算机和电子信息学院 专业: 电气工程及其自动化 班级: 电气 12-5 学号: 姓名: 任课老师: 完成时间:
30 基于 STM32 直流电机 PID 调速摘要电机转速控制在运动控制系统中占有至关关键地位,本设计将电机转速控制作为讨论对象;以 PID 为基础控制算法,STM32F103 单片机为控制关键,产生受 PID 算法控制 PWM 脉冲实现对直流电机转速控制
同时利用光电传感器将电机速度转换成脉冲频率反馈到单片机中,实现转速闭环控制,达成转速无静差调整目标
在系统中采 320×240TFTLCD 显示器作为显示部件,经过 4 个按键经过界面切换方法设置P、I、D、V 四个参数和正反转控制,开启后能够经过显示部件了解电机目前运行状态和系统 CPU 温度
该系统控制精度高,含有很强抗干扰能力
关键词:PID 直流电机 反馈 调整Based on the STM32 PID speed control of dc motorAbstractMotor speed control occupies a crucial position in the motion control system, the design of the motor speed control for the study; in the basic PID control algorithm, STM32F103 microcontroller core, by the PID control algorithm generates a PWM pulse to achieve DC speed control
At the same time the use of photoelect