资源预览内容
第1页 / 共26页
第2页 / 共26页
第3页 / 共26页
第4页 / 共26页
第5页 / 共26页
第6页 / 共26页
第7页 / 共26页
第8页 / 共26页
第9页 / 共26页
第10页 / 共26页
亲,该文档总共26页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述
基于 STM32 的直流电机 PID 调速系统设计计算机控制技术课程设计题 目: 基于 STM32 的直流电机 PID 调速 学院: 计算机与电子信息学院 专业: 电气工程及其自动化 班级: 电气 12-5 学号: 12034320515 姓名: 任课教师: 完成时间: 2015.11.182015.12.30 基于 STM32 的直流电机 PID 调速系统设计基于 STM32 的直流电机 PID 调速摘要电机转速控制在运动控制系统中占有至关重要的地位,本设计将电机转速控制作为研究对象;以 PID 为基本控制算法,STM32F103 单片机为控制核心,产生受 PID算法控制的 PWM 脉冲实现对直流电机转速的控制。同时利用光电传感器将电机速度转换成脉冲频率反馈到单片机中,实现转速闭环控制,达到转速无静差调节的目的。在系统中采 320240TFTLCD 显示器作为显示部件,通过 4 个按键通过界面切换方式设置 P、I、D、V 四个参数和正反转控制,启动后可以通过显示部件了解电机当前的运行状态和系统的 CPU 温度。该系统控制精度高,具有很强的抗干扰能力。关键词:PID 直流电机 反馈 调节基于 STM32 的直流电机 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 photoelectric sensors to convert the motor speed to pulse frequency feedback to the microcontroller to achieve closed-loop speed control, to speed static error adjustment purposes. Mining 320 240TFTLCD monitor as a display unit in the system, through four key settings P, I, D, V four parameters and reversing control through the interface switching mode, start to understand the current state of the motor and the system through the display unit CPU temperature. The system control and high precision, has a strong anti-jamming capability.Keywords: PID DC motor feedback regulation基于 STM32 的直流电机 PID 调速系统设计目录1. 绪论 .11.1 研究背景与意义 .11.2 本文主要研究方法 .12. 设计方案与论证 .22.1 系统设计方案 .22.2 控制器模块设计方案 .23. 系统硬件电路设计 .33.1 整体电路设计 .33.1.1 整体理论 .33.1.2 整体简单结构图和资源分配图 .33.2 最小单片机系统设计 .43.2.1 STM32F103 复位电路 .63.2.2 电源电路 .63.3 电机驱动电路设计 .73.4 光电码盘编码器电路设计 .73.5 显示电路设计 .83.6 按键电路设计 .104. 系统软件设计 .104.1 PID 算法 .104.2 PID 参数整定方法 .114.3 电机速度采集算法 .124.4 程序流程图 .12基于 STM32 的直流电机 PID 调速系统设计5. 系统调试 .135.1 软件调试 .135.2 系统测试与分析 .
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号