全球旧事资料 分类
xx民族大学学士学位论文
论文题目基于Proteus步进电机控制系统的设计
院部名称学生姓名专学业号
电气信息工程学院
自动化
指导教师姓名论文提交时间论文答辩时间学位授予时间2014年5月20日2014年5月25日
xx民族大学教务处制
f摘要
本文提出了一种基于Proteus步进电机单闭环控制的仿真方法。首先,论述了控制步进电机停止、正反转、加减速、显示、键盘输入、L297和L298的驱动电路等各个模块的组成;其次,在这些模块的功能基础上,提出了设计思路,采用AT89C52单片机为控制核心,利用L297和L298驱动步进电机,利用光电编码器的原理设计反馈电路,形成闭环。通过比较设定转速与反馈转速得出偏差量,用PID算法计算出输出控制量,利用LCD显示给定速度和实时速度,实现速度反馈闭环控制系统的仿真。最后,用KeilC51编写系统的相关程序,Proteus软件绘制原理图和仿真调试。仿真通过把编写的程序生成十六进制文件加载到AT89C52单片机中控制整个系统,实现了从单片机IO口输出控制脉冲,键盘输入改变IO口输出脉冲的频率,L297和L298驱动电路处理输出脉冲后控制步进电机的运行状态,单片机IO口输出控制LCD的显示。
关键词:AT89C52单片机,L297,L298,PID,步进电机
fABSTRACT
I
thispaperasimulatio
methodbasedProteussteppermotorsi
gleclosedloopco
trolFirstdiscussestheco
trolsteppermotorstopsrotati
gacceleratio
a
ddeceleratio
displaykeyboardi
putL297a
dL298drivercircuitmodulecomprisi
gSeco
dlythesemodulesfu
ctio
o
thebasisofthedesig
ideasAT89C52microco
trollerdesig
edfortheco
trolofthecoretheuseoftheL297a
dL298steppermotordrivetheuseofthepri
cipleoftheopticale
coderfeedbackcircuittoformaclosedloopTheamou
tofdeviatio
derivedbycompari
gthesetspeeda
dfeedbackspeedusi
gPIDalgorithmtocalculatetheamou
tofoutputco
trolLCDdisplaygive
speeda
drealtimespeedspeedclosedloopfeedbackco
trolsystemsimulatio
Fi
allythesystemprogramoftheKeilC51preparedProteussoftwaretodrawschematicsa
dsimulatio
debuggi
gSimulatio
ge
eratedbyaprogramwritte
i
hexadecimalfileisloadedi
totheAT89C52microco
trollerco
trolsthee
tiresystemfromMCUIOportoutputco
trolpulsekeyboardi
puttocha
getheIOportoutputpulsefreque
cyL297a
dL298drivercircuitafterprocessi
gtheoutputpulseru
i
gsteppermotorco
trolMCUIOportoutputtoco
troltheLCDdisplayKEYWORDSAT89C52L297L298PIDsteppermotor
ff目录
第一章前言1
第二章控制系统的概述r
好听全球资料 返回顶部