1、 I 摘 要 随着国民经济的发展,人们需要对各中加热炉、热处理炉、反应炉和锅炉 中温度进行监测和控制。采用单片机来对他们控制不仅具有控制方便,简单和 灵活性大等优点,而且可以大幅度提高被控温度的技术指标,从而能够大大的 提高产品的质量和数量。 在日常生活及工业生产过程中,经常要用到温度的检测及控制,温度是生 产过程和科学实验中普遍而且重要的物理参数之一。在生产过程中,为了高效 地进行生产,必须对它的主要参数,如温度、压力、流量等进行有效的控制。 温度控制在生产过程中占有相当大的比例。温度测量是温度控制的基础,技术 已经比较成熟。传统的测温元件有热电偶和二电阻。而热电偶和热电阻测出的 一般都是电
2、压,再转换成对应的温度,这些方法相对比较复杂,需要比较多的 外部硬件支持。我们用一种相对比较简单的方式来测量。 我们采用美国 DALLAS 半导体公司继 DS18B20 之后推出的一种改进型智能温 度传感器 DS18B20 作为检测元件,温度范围为-55125 C,最高分辨率可达 0.0625 C。 DS18B20 可以直接读出被侧温度值, 而且采用三线制与单片机相连, 减少了外部的硬件电路,具有低成本和易使用的特点。 本文介绍一种基于 STC89C52 单片机的一种温度测量及报警电路,该电路采 用 DS18B20 作为温度监测元件,测量范围 0-+100,使用 LCD 模块显示, 能通过程序
3、设置温度报警上下限。正文着重给出了软硬件系统的各部分电路, 介绍了集成温度传感器 DS18B20 的原理,STC89C52 单片机功能和应用。该电路 设计新颖、功能强大、结构简单。 关键词:STC89C52,温度传感器 18B20,液晶 LCD1602,红外遥控系统,继电器 II AbstractAbstract Along with the development of national economy, people need to different heating furnace, heat treatment furnace, reactors and boiler temperat
4、ure monitoring and control. By single chip microcomputer to control not only has to their control convenient, simple and flexible and other advantages, and can greatly increase the temperature of the accused technical indexes, which can greatly improve the quality and quantity of products. In the da
5、ily life and the industrial production process, often should use the inspection and control of temperature, the temperature is the production process and scientific experiments common but also one of the important physical parameter. In the production process, in order to highly efficient production
6、, it needs to the main parameters, such as temperature, pressure, and flow rate of effective control. Temperature control in production process occupies a large proportion. Temperature measurement is the basis for the control of temperature, technology has more mature. The traditional measuring temperature elements have thermocouple and two resistance. And thermocouple and heat resistance of the measure is commonly voltage, again converted into the corresponding temperature, the method