《计算机控制技术课程设计》题 目:基于 STM32 的直流电机 PID 调速 学院: 计算机与电子信息学院 专业: 电气工程及其自动化 班级: 电气 12—5 学号: 12034320515 姓名:任课老师:完成时间: 2024
18——2024
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 sa