直流伺服电机调速系统(三闭环)..doc
文本预览下载声明
摘 要
本设计以微型计算机8097为主控器,采用PID算法设计三环全数字式控制器。在本次设计中选择霍尔元件做为电流检测传感器,将检测到的弱电信号通过运算放大器LF356组成的两级放大电路放大滤波后,输入8097内部的A/D转换电路转换进而得到电流反馈量;光电脉冲发生器作为速度检测传感器以及位置传感器,通过光电隔离器PC900和GAL16V8的分频鉴相得到速反馈量,同时与8097内部的计数器和计数器8254结合以可逆计数方式得到位置反馈量;通过软件设置电流环、速度环和位置环的工作方式。此外,采用串口通信使伺服系统与上位微型计算机实现通信联系以发送各种运行指令,最终实现微型计算机对电流环、速度环和位置环的控制。
关键词:微型计算机, 8097, HIS, 8254, PID
ABSTRACT
This design adopts the micro-computer 8097 as the main component, and chooses the PID algorithm to design. Hall element as a current detection sensor will get weak signals in the design. Then the weak signals will be amplified and filtered through the amplifier circuit which constructed by LF356 , and imports 8097-internal A/D converter circuit to switch so that get the feedback signal of current .As speed detection sensors and position sensors, the optical pulse generator through the optical isolator PC900 and GAL16V8 to division frequency and phase in order to get the feedback signal of speed .Combined with the 8097 internal counter and the counter 8254 we can get feedback signal of position relying on reversible counting. In this design, we adopt software to set the operation mode of current loop, velocity loop and position loop work. In addition, we used the serial communication to set up the communications between system and upper monitor in order to send a variety of operating instructions, and ultimately system achieved control of the current loop, velocity loop and position loop.
KEY WORDS:Microcomputer, 8097, HIS, 8254, PID
目录
摘 要 I
ABSTRACT I
第1章 绪论 1
第2章 系统方案设计 1
2.1 设计要求 1
2.2 方案论证 1
2.3 方案选择 3
第3章 系统硬件电路设计 3
3.1 微型计算机8097 3
3.1.1 8097的概述 3
3.1.2 变T法速度检测 4
3.2 输入输出通道设计 6
3.2.1 电流反馈通道 6
3.2.2 转速反馈通道 7
3.2.3 位置反馈通道 7
3.2.4 伺服系统给定输入通道 8
3.3 电源电路设计 9
第4章控制算法PID的设计 9
4.1 电流环控制器设计 9
4.2 速度环控制器设计 10
4.3 位置环控制器设计 11
4.4 采样周期选择 12
4.5 控制算式和运算流程图 12
第5章 系统软件设计 13
第6章 总结 15
参考文献 16
附录1:器件元件明细表 17
附录2:电路原理图 17
第1章 绪论
直流伺服电动机是近几十年来随着电力电子技术的迅速发展而发展起来的一种新型电动机。近些年来,直
显示全部