摘要随着现代信息技术的飞速进展和传统工业改造的逐步实现,温度自动检测和显示系统在很多领域得到广泛应用。人们在温度检测的准确度、便捷、快速等方面有着越来越高的要求。而传统的温度传感器已经不能满足人们的需求,其渐渐被新型的温度传感器所代替。 本文设计并制作了一个简易温度计。本设计采纳了单片机 STC89C52 和温度传感器 DS18B20 组成了温度自动测控系统,可根据实际需要任意设定温度值,并 进 行 自 动 控 制 。 在 此 设 计 中 利 用 了 STC89C52 单 片 机 作 为 主 控 制 器 件 ,DS18B20 作为测温传感器通过 LCD 数码管串口传送数据,实现温度显示。通过DS18B20 直接读取被测温度值,进行数据转换,能够设置温度上下限来设置报警温度。并且在到达报警温度后,系统会自动报警。 本文设计是从测温电路、主控电路、报警电路等几个方面来分析说明的。该器件可直接向单片机传输数字信号,便于单片机处理及控制。另外,该温度计还能直接采纳测温器件测量温度。从而简化数据传输与处理过程。此设计的优点主要体现在可操作性强,结构基础简单,拥有很大的扩展空间等。 关键词:单片机;温度传感器;温度计;报警 Abstract With the rapid development of modern information technology and the gradual transformation of traditional industries to achieve, automatic temperature detection and display systems are widely used in many fields. People in the temperature measurement accuracy, convenient, rapid, and has a growing demand. This article was designed and produced a simple thermometer. This design uses a microcontroller STC89C52 and temperature sensor DS18B20 automatic temperature control system formed can be arbitrarily set the temperature according to the actual value and for automatic control. In this design using the STC89C52 microcontroller as the main control device, DS18B20 as an LCD digital temperature sensor tube through the serial transmission of data, to achieve temperature display. DS18B20 measured by direct reading temperature values, data conversion, to set the temperatur...