当前位置:文档之家› 基于单片机的炉温温度控制系统设计

基于单片机的炉温温度控制系统设计

摘要在工业生产过程中,往往需要对各类加热炉、热处理炉、反应炉的温度进行检测和调节,因此需要一种合适的系统对其温度进行精确控制。

由于单片机具有低功耗、高性能、可靠性好、易于产品化等特点,因此采用单片机对温度进行控制不仅节约成本,控制方法灵活多样,并且可以达到较高的控制精度,从而能够大大提高产品的质量,因此单片机被广泛应用在中小型控制系统中。

自动控制技术尤其是温度控制技术在国内外得到广泛的应用和发展。

时滞效应始终困扰着其实际应用,为此人们发明了多种控制方法来解决时滞问题,例如比例控制方式、DDC控制方式。

本文将针对一种温度控制方式进行学习,并设计一个以AT89S52单片机为核心、利用新型集成化智能1-Wire总线数字温度传感器DS18B20实现的温度采集控制系统,同时还阐述了直接数字控制(DDC)控制算法。

本系统按照模块化程序设计思想,完成了对系统软件部分的设计,给出了各个功能模块的设计思想和流程图。

温度采集控制系统不但能够准确地进行温度数据的采样转换,稳定进行升温、恒温的控制过程,而且可以记录温度—时间对应关系,并以现今广泛使用的液晶显示器作为输出设备,使数据读取更加直观。

现场仿真表明,该系统在测试过程中工作稳定,满足设计要求。

本设计采用以8位AT89S52单片机作为系统的CPU。

使用电加热器升温,配合键盘输入,液晶显示器显示。

具有硬件结构简单、人机界面友善、管理功能健全、系统可靠性高、记录数据准确、使用维护方便等优点。

关键字:温度采集系统;单片机;DS18B20;温度控制The Design of Furnace Temperature Control System Based onSingle Chip MicrocomputerAbstractIn the industrial production process, often require various types of furnace, heat treatment furnace, reactor temperature detection and regulation, so it needs a proper system of precise control of its temperature. as low power consumption single chip, high performance, reliability, easy-to-market commodity and so on, so to control the temperature using SCM not only save on cost, control method of flexible and diverse, and can achieve higher precision, which can greatly enhance the quality of the product, so SCM is widely used in the Small control system.The automatic control technique is a temperature particularly controls technique at domestic and international get the extensive application with develop. Time postpone effect perplex always in fact on the occasion of applied, for this person invents various controls method to resolve the problem of Time postpone. This paper introduces a design of temperature data acquisition system based on single-chip AT89S52. The system collects temperature data through 1-Wire Digital Thermometer DS18B20, and the control algorithm of DDC parameters is presented.This system according to mold a design for turning procedure design toughing, completing to system software part of designs, giving each function mold piece thought with flow chart. A function temperature control system can proceed accurately the data adopts the kind converts, stabilizing the proceeding heat, the control process of the constant temperature, and can satisfy completely to the request of the system accuracy. and can show them to the operators by the way of the Liquid Crystal Display. This system used the present the usage the LCD and actions output equipments, make data kept the view more. The results of the simulation show that the system works stably and meets the expected design requirements.The temperature data acquisition and control system adoption with 8 bit AT89S52 single a machine for system CPU. The usage electricity heating apparatus heats, matching with the keyboard importation, displays with the LCD. It has simple structure, high system reliability, and the data recorded are reliable and the operation and maintenance are convenient.Key words: temperature data acquisition system; single-chip; DS18B20; temperature control目录1 绪论 (1)1.1 课题背景 (1)1.2 选题的目的和意义 (2)1.3 炉温控制的国内外研究现状及发展趋势 (2)1.4 本系统的任务和本文的主要内容 (4)2 系统总体分析与设计 (5)2.1 系统方案选择 (5)2.1.1 主控芯片单片机的选型 (5)2.1.2 温度传感器的选择 (5)2.2 系统的组成和工作原理 (6)2.3 系统主要元件介绍 (7)2.3.1 AT89S52单片机简介 (7)2.3.2 1602液晶显示器 (10)2.3.3 DS18B20数字温度传感器 (14)2.3.4 固态继电器 (18)2.4 本章小结 (19)3 硬件系统设计 (20)3.1 单片机的最小应用系统 (20)3.2 温度采集转换系统 (21)3.3 升温驱动控制系统 (22)3.4 键盘显示系统 (23)3.5 报警系统 (25)3.6 系统电源模块 (26)3.7 本章小结 (27)4 软件系统设计 (28)4.1 软件总体设计 (28)4.2 系统初始化函数 (29)4.3 控制函数 (30)4.4 读温度子程序 (31)4.5 键盘显示函数 (32)4.6 时间函数 (33)4.7 本章小结 (34)5 系统的调试与仿真 (35)5.1 软件调试 (35)5.2 硬件调试 (36)5.3 本章小结 (37)6 结论 (38)致谢 (39)参考文献 (40)附录1 (1)附录2 (18)1 绪论1.1 课题背景及时准确地得到温度信息并对其进行适时的控制,在许多工业场合中都是重要的环节。

温度的变化影响各种系统的自动运作,例如冶金、机械、食品、化工各类工业中,广泛使用的各种加热炉、热处理炉、反应炉等,对工件的处理温度要求严格控制[1]。

对于不同控制系统,其适宜的温度总是在一个范围。

超过这个范围,系统或许会停止运行或遭受破坏,所以我们必须能实时获取温度变化。

对于,超过适宜范围的温度能够报警。

同时,我们也希望在适宜温度范围内可以由检测人员根据实际情况加以改变。

单片机对温度的控制是工业生产中经常使用的控制方法。

从1976年Intel公司推出第一批单片机以来,80年代单片机技术进入快速发展时期,近年来,随着大规模集成电路的发展,单片机继续朝快速、高性能方向发展。

单片机主要用于控制,它的应用领域遍及各行各业,大到航天飞机,小至日常生活中的冰箱、彩电,单片机都可以大显其能。

单片机将微处理器、存储器、定时/计数器、I/O接口电路等集成在一个芯片上的大规模集成电路,本身即是一个小型化的微机系统[2]。

单片机技术与传感与测量技术、信号与系统分析技术、电路设计技术、可编程逻辑应用技术、微机接口技术、数据库技术以及数据结构、计算机操作系统、汇编语言程序设计、高级语言程序设计、软件工程、数据网络通信、数字信号处理、自动控制、误差分析、仪器仪表结构设计和制造工艺等的结合,使得单片机的应用非常广泛。

同时,单片机具有较强的管理功能。

采用单片机对整个测量电路进行管理和控制,使得整个系统智能化、功耗低、使用电子元件较少、内部配线少、成本低、制造、安装、调试及维修方便[3]。

随着电视监视器材、计算机技术的日益发展,图形监视系统在电视系统或监控场所得到了广泛地应用。

用图形来实时显示被控对象(摄像机、终端设备等)在操作过程中的状态,具有清晰明了、形象直观且可以及时处理反馈信息。

相关主题