文档详情

20090243_段兆杭_基于Proteus步进电机控制系统的设计精讲.doc

发布:2017-03-15约1.6万字共42页下载文档
文本预览下载声明
北方民族大学 学士学位论文 论文题目: 基于Proteus步进电机控制系统的设计 摘 要 本文提出了一种基于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, stepper motor 目 录 第一章 前 言 1 第二章 控制系统的概述 2 2.1 步进电机的概要 2 2.2单片机的概要 5 2.3控制方案 5 第三章 系统硬件的设计 7 3.1模块总体的设计 7 3.2各个模块的设计 8 第四章 系统软件的设计 15 4.1主程序的设计 15 4.2子程序的设计 15 第五章 系统仿真调试 20 5.1硬件仿真调试 20 5.2系统软件调试 21 5.3系统控制仿真调试 23 第六章 总 结 30 致 谢 31 参考文献 32 附 录 33 附录1:总电路图 33 附录2:采样电
显示全部
相似文档