1、摘摘 要要 本论文主要阐述了在现代化的工业生产中,电流、电压、温度、压力、流量、 流速和开关量都是常用的主要被控参数。例如:在冶金工业、化工生产、电力工 程、造纸行业、机械制造和食品加工等诸多领域中,人们都需要对各类加热炉、 热处理炉、反应炉和锅炉中的温度进行检测和控制。采用 MCS-51 单片机来对温 度进行控制,不仅具有控制方便、组态简单和灵活性大等优点,而且可以大幅度 提高被控温度的技术指标,从而能够大大提高产品的质量和数量。因此,单片机 对温度的控制问题是一个工业生产中经常会遇到的问题。 希望能收到举一反三和 触类旁通的效果 温度的测量和控制在激光器、 光纤光栅的使用及其他的工农业生产
2、和科学研 究中应用广泛。温度检测的传统方法是使用诸如热电偶、热电阻、半导体 PN 结 之类的模拟温度传感器。 信号经取样、 放大后通过模数转换, 再交自单片机处理。 被测温度信号从温敏元件到单片机,经过众多器件,易受干扰、不易控制且精度 不高。因此,本文介绍一种新型的可编程温度传感器 DS18B20,他能代替模拟温 度传感器和信号处理电路,直接与单片机沟通,完成温度采集和数据处理。 DS18B20 与 AT89S51 结合实现最简温度检测系统,该系统结构简单,抗干扰能力 强,适合于恶劣环境下进行现场温度测量,有广泛的应用前景。 本文介绍了以 AT89S51 单片机为核心的温度控制系统的工作原理
3、和设计方 法。温度信号由温度芯片 DS18B20 采集,并以数字信号的方式传送给单片机。文 中介绍了该控制系统的硬件部分,包括:温度检测电路、温度控制电路、PC 机 与单片机串口通讯电路和一些接口电路 。单片机通过对信号进行相应处理,从 而实现温度控制的目的。 在这里采用模块化结构, 主要模块有: 数码管显示程序、 键盘扫描及按键处理程序、温度信号处理程序、继电器控制程序、单片机与 PC 机串口通讯程序。 关键词:单片机 DS18B20 温度芯片 温度控制 串口通讯 Abstract: The caption In the modernization of industrial product
4、ion,current, voltage, temperature, pressure, flow, flow rate and switches are commonly used in the main accused of parameters. For example: in the metallurgical industry, chemical industry, power engineering, paper industry, machinery manufacturing and food processing, and many other areas, people n
5、eed for various types of furnace, heat treatment furnace and boiler in the reactor and the temperature detection and control. MCS-51 microcontroller used to control thetemperature,notonly has control of convenient,simple and flexible configuration big advantages, but can substantially improve the te
6、mperature was charged with the technical indicators, which can greatly enhance the quality and quantity. Therefore,the MCU to temperature control is a problem in industrial production often encounter problems. Wish to receive the effect of giving top priority to industrial and Chuleipangtong Temperature measurement and control in laser, fiber grating and the use of other industrial and agricultural production and the application of extensive scientific research. The temperature detection is