基于proteus步进电机控制系统的设计 大学论文.doc
文本预览下载声明
xx民族大学
学士学位论文
论文题目: 基于Proteus步进电机控制系统的设计
专 业: 自动化
学 号:
指导教师姓名:
论文提交时间: 2014年5月20日
论文答辩时间: 2014年5月25日
学位授予时间:
xx民族大学教务处制
摘 要
本文提出了一种基于Proteus步进电机单闭环控制的仿真方法。首先,论述了控制步进电机停止、正反转、加减速、显示、键盘输入、L297和L298驱动电路在这些基础上,提出设计思路,AT89C52 单片机为控制核心,利用L297 和L298驱动步进电机,利用光电编码器的原理设计反馈电路,形成闭环。通过比较设定转速与反馈转速得出偏差量,用PID 算法计算出输出控制量,利用LCD 显示给定速度和实时速度,实现速度反馈闭环控制系统的仿真。最后,KeilC51编写系统相关程序,Proteus软件绘制原理图。通过编写的程序AT89C52单片机系统,从单片机I / O口输出控制脉冲,I / O口输出L297 和L298驱动电路处理输出脉冲后控制步进电机单片机I / O口输出。AT89C52单片机 ,L297 ,L298 ,PID ,步进电机
ABSTRACT
In this paper, a simulation method based Proteus stepper motor single closed-loop control. First, discusses the control stepper motor stops rotating, acceleration and deceleration, display, keyboard input, L297 and L298 driver circuit module comprising; Secondly, these modules function on the basis of the design ideas, AT89C52 microcontroller designed for the control of the core, the use of the L297 and L298 stepper motor drive, the use of the principle of the optical encoder feedback circuit to form a closed loop. The amount of deviation derived by comparing the set speed and feedback speed using PID algorithm to calculate the amount of output control, LCD display given speed and real-time speed, speed closed-loop feedback control system simulation. Finally, the system program of the KeilC51 prepared Proteus software to draw schematics and simulation debugging. Simulation generated by a program written in hexadecimal file is loaded into the AT89C52 microcontroller controls the entire system, from MCU I / O port output control pulse, keyboard input to change the I / O port output pulse frequency, L297 and L298 driver circuit after processing the output pulse running, stepper motor control MCU I / O port output to control the LCD display.
KEY WORDS: AT89C52, L297, L298, PID, steppe
显示全部