文档介绍:计算机控制技术课程设计实验报告
题目: 继电器水温控制系统
院(系): 电子工程与自动化学院
专业: 自动化
学号:
姓名:
指导教师:
实验日期: 2011 年 9 月 16 日
摘要
在工农业生产和日常生活中,对温度的检测和控制有着非常重要的意义和实际应用。而计算机控制系统的应用发展,使得科学研究、工农业生产、工艺时间的效率大大的提高
本设计是一个基于AT89C52单片机的继电器自动水温控制系统,该系统具有实时显示、温度测量、温度设定功能并能根据设定值对环境温度进行调节实现控温的目的,控制算法基于数字PID算法。温度测量范围从0~+100 ℃,温度控制范围为20℃~90℃,测量的精度为1℃,超调量小于5%,实验结果表明,本系统能较好地控制水温,满足我们的要求。
关键词: 继电器;AT89C52; 水温控制系统;PID
Abstract
In the industry and agriculture production or the daily life, the temperature examination and control has a very vital significance and the practical application. And with the develop- ment puter control system, the efficiency of scientific research、the industry and the agriculture production has get a big enhancement.
This design is a relay automatic water temperature control system based on AT89C52. It has the real time display, the temperature survey、hypothesis and can carry on the adjustme- nt according to the setting value. The control algorithm based on the digital PID algorithm. The temperature survey scope from 0~+100 ℃, the temperature control scope for 20℃~90℃, the survey precision for 1℃, is smaller than over 5%. The experimental result indicated that this system can control the water temperature well, satisfies our request.
Key words: relay;AT89C52; emperature control system; PID
目录
引言 1
1 课程设计概述 1
课程设计题目 1
设计要求: 1
主要设备和芯片 1
2 总体设计及方案论证: 1
总体设计框图 1
方案论证 2
2
2
2
3 硬件设计 3
最小系统部分 3
温度采集电路 4
键盘、显示电路 4
继电器执行控制电路 5
串口与PC机通信电路 6
4 软件设计与实现 7
软件流程图 7
控制算法PID 11
5 系统调试 11
最小系统部分调试 11
串口与上位机通信部分调试 11
继电器部分调试 11
测温部分调试 12
6 PID参数整定 12
7 测试数据及结果分析 13
8 结论 13
谢辞 14
参考文献 15
附录 16
引言
随着人们生活水平的提高,对生活环境的要求也越来越高,家用电器越来越趋向于自动控制控制乃至于智能控制,针对目前家庭的实际需要,自动水温控制系统比较方便实用,本文就通过51系列单片机来实现一种自动控制水温控制系统的设计。该系统能实时反映当前温度信息,通过液晶屏直观的显示给用户,用户可通过键盘自行设定温度,系统通过PID调节能使温度保持在预设定值。
1 课程设计概述
课程设计题目
继电器水温控制系统。
设计要求:
①用热敏元件设计测温电路;功率元件继电器进行交流电的功率调整;
②