摘 要
随着控制理论和电子技术的发展,工业控制器的适应能力增强和高度智能化正逐步成为现实。其中以单片机为核心实现的数字控制器因其体积小、成本低、功能强、简便易行而得到广泛应用。自整定PID温度控制器作为一种重要的控制设备,在化工、食品等诸多工业生产过程中得到了广泛的应用。本文主要讨论在过程控制中得到广泛应用的数字自整定PID控制在单片机温度控制系统中的应用。
本文详细阐述了基于自整定PID控制的温度控制系统的硬件组成、软件设计及相关的接口电路设计。并且充分考虑了系统的可靠性,采取了相应的措施予以保证。针对控制对象的特点,在系统辨识的基础上对系统的控制算法进行了仿真研究,并在单片机系统中实现了控制算法。最后针对温控系统进行了实验,通过对实验数据的分析表明本文所述的基于自整定PID控制的温度控制系统的设计的合理性和有效性。
关键词:单片机,温度控制,自整定PID控制
Abstract
With the improvement of control theory and electric technology, the intelligent control for industry has been accomplishing. The digital controller based on Microcontroller has been applied widely, as its cabinet cubage, low-cost, abundant function, simple and convenient. PID temperature controller, as an important control device, has been widely used in producing chemical products, foods and many other fields. The paper mainly introduces the application of the digital PID control algorithm, which, at present, is popularly used in digital control system, in Microcontroller temperature control system.
The hardware and software of the temperature control system and the design of relevant interface circuit are described in this paper. The reliability of the system is specially considered, and a series of measures are realized. According to the difficulty to control of the system, methods of system control are analyzed based on the system identification, and realized the control algorithm in the Microcontroller system. The experiment data shows that the design of temperature control system based on Microcontroller is availability and rationality.
Key words: Microcontroller, Temperature Control System, digital PID control
目 录
摘 要 I
Abstract II
第1章 绪论 1
1.1 概述 1
1.2 温度测控技术的发展与现状 1
1.2.1 定值开关控温法 2
1.2.2 自整定PID线性控温法 3
1.2.3智能温度控制法 3
1.3 系统总体设计方案 4
1.3.1 系统性能要求及特点 4
1.3.2 系统硬件方案分析 5
1.3.3 系统软件方案分析 6
1.4 本文工作及结构安排 7
1.4.1 本文主要工作 7
1.4.2 本文结构安排 7
第2章 系统硬件设计 8
2.1 系统硬件总体结构 8
2.2 主控模块器件选型及设计 8
2.2.1 单片机的选用 8
2.2.2 单片机介绍 9
2.2.3 主控模块设计 10
2.3 输入通道设计 11
2.3.1 Pt100温度传感器 11
2.3.2 A/D转换 14
2.4 输出通道设计 16
2.4.1 温控箱的功率调节方式 16
2.4.2 可控硅输出电路 18
2.5 键盘电路设计 20
2.6 显示电路设计 21
2.7 保护电路设计 22
2.8 硬件抗干扰措施 23
第3章 系统软件设计 24
3.1 软件设计思想 24
3.2 软件组成 25
3.3主程序模块 25
3.4 数据采集模块 27
3.5数据处理模块 27
3.5.1数字滤波 27
3.5.2 显示处理 29
3.6软件抗干扰措施 30
第4章 系统控制方案 31
4.1 自整定PID控制 31
4.1.1 自整定PID控制的发展 31
4.1.2 自整定PID控制理论 31
4.1.3 自整定PID控制算法 33
4.2 温控箱数学模型的确定 34
4.2.1 温控箱特性分析 36
4.2.2 温控箱数学模型的辨识 36
4.3 自整定PID控制参数整定 38
4.4 MATLAB仿真 39
第5章 结论 40
5.1 总结 40
5.2 展望 40
参考文献 42
致 谢 44
附录 A 45
附录 B 49
附录 C 51
附录D 53