基于单片机的水温检测与控制系统设计+PID算法+单片机最小系统电路
摘 要:随着电子技术的发展,水温控制系统的应用越来越广泛,对控制精度的要求也越来越高。本系统以AT89S51单片机为水温控制系统的主控芯片,温度传感器采集水温,LCD1602对水温进行实时显示,通过键盘操作实现人机对话实现对温度的设置,当前温度低于或高于设置温度时发生报警,并利用PID算法和C语言程序编程实现对水温的控制,在Proteus应用软件中对系统进行仿真。仿真结果表明系统的设计是合理的,控制的效果有显著提高。
关键词:水温控制;PID;AT89S51
Design of water temperature detection and control system based on single chip
Abstract: With the development of electronic technology, the application of water temperature control system is applied more and more widely, the control accuracy requirements are also getting higher and higher. This system to AT89S51 microcontroller as the main control temperature control system of chip, temperature sensor collect the water temperature signal and LCD1602 display the temperature real-time. The keyboard operation can realize man-machine dialogue to achieve temperature settings. It will alarm when the temperature is lower or higher than the set temperature, besides, PID algorithm and C language programming are used to realize temperature control. The system is simulated in Proteus applications. The simulation results show that the system design is reasonable and the effect of the control has improved significantly.
Key words: Water temperature control; PID; AT89S51
目 录
摘要 1
引言 1
1.水温控制系统概述 2
1.1设计研究的背景 2
1.2水温检测控制系统的研究现状及其存在的问题 2
2.系统设计 3
2.1系统设计方案及其论证 3
2.2控制算法选择 4
3.硬件系统电路连接 5
3.1单片机最小系统电路 6
3.2温度检测电路 6
3.3液晶显示电路 8
3.4报警电路 10
3.5数据存储电路 10
3.6温度控制电路 11
4.软件系统设计 12
4.1主程序设计 12
4.2温度采集子程序设计 13
4.3显示子程序设计 14
4.4键盘扫描处理子程序设计 15
4.5 PID算法的软件实现 16
5.系统仿真与分析 19
6.总结 20
参考文献 21
附录 22
致谢 26,3076