- 1、本文档共29页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
课程设计-基于单片机的一级倒立摆控制器设计
湖南文理学院
课程设计报告
课程名称: 专业课程设计
专业班级: 自动化11101班 学号39
学生姓名:
指导教师:
完成时间: 2014年6月12日
报告成绩:
摘 要
直线一级倒立摆,是由沿直线导轨运动的小车以及一端固定于小车的匀质长杆组成的非线性的、不稳定的系统。系统以C8051F020单片机为主控芯片,包括电源模块、高精度电位器检测模块、L298N电机驱动模块、直流减速电机以及倒立摆本体构成。由高精度电位器检测模块测得小车的位置和摆杆相对垂直方向的角度,作为系统的两个输出量被反馈至单片机。单片机根据PID控制算法,计算出控制量,并转化为相应的电压信号提供给驱动电路,以驱动直流减速电机的运动,从而通过牵引机构带动小车的移动来控制摆杆和保持平衡。借助倒立摆的数学模型加入PID调节来控制它,从而使其成为稳定的系统,通过Matlab对仿真效果的分析,基本上达到了预期的效果。
关键词 一级倒立摆;微处理器;增量式PID;伺服电机;Matlab
Abstract
Linear inverted pendulum system, is the movement of the carriage along the linear guide rail is fixed on the trolley and the uniformity of long rod composed of nonlinear, unstable.The system is mainly controlled by the microcontroller C8051F020, which comprises a power supply module, high precision potentio meter detection module, L298N motor drive module, DC motor and theinverted pendulum. A high precision potentiometer detection module measuredtrolley position and pendulum relative vertical angles, as the two output system isfeedback to the microcontroller. SCM based on PID control algorithm, calculates the volume control, and to provide a corresponding voltage signal to the drive circuit to drive DC motor, motor, and through the traction mechanism to drive thecar to control the movement and balance. With the help of a mathematical model of inverted pendulum with PID regulation to control it, so that it becomes a stable system, through the analysis of the simulation results of the Matlab, basically achieved the expected results.
Keywords: an inverted pendulum; microprocessor; incremental PID; servo motor; Matlab
目 录
摘 要 I
Abstract II
第一章 绪论 1
1.1 设计要求 1
1.2方案设计 1
1.2.1 光电编码检测 2
1.2.2 高精度电位器检测 2
1.2.3方案论证 2
第二章 一阶倒立摆的数学建模 4
2.1 倒立摆模型抽象 4
2.1.1 倒立摆微分方程模型 4
2.1.2 倒立摆的传递函数模型 5
2.2一阶倒立摆的状态空间模型 6
第三章 基于Matlab的倒立摆PID分析及仿真 8
3.1一级倒立摆模型 8
3.1.1 一级倒立摆实际参数 8
3.1.2系统阶跃响应分析 9
3.2一阶倒立摆PID控制器设计 10
3.2.1 PID概述 10
3.2.2 PID参数设定 11
3.3 MATL
文档评论(0)