基于单片机的温度测量系统
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
基于单片机的温度测量系统
摘要
随着现代信息技术的飞速发展和传统工业改造的逐步实现,温度自动检测和显示系统在很多领域得到广泛应用。人们在温度检测的准确度、便捷、快速等方面有着越来越高的要求。而传统的温度传感器已经不能满足人们的需求,其渐渐被新型的温度传感器所代替。
本文设计并制作了一个简易温度计。本设计采用了单片机AT89S52和温度传感器DS18B20组成了温度自动测控系统,可根据实际需要任意设定温度值,并进行自动控制。在此设计中利用了AT89S52单片机作为主控制器件,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 AT89S52 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 AT89S52 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 temperature to set the alarm on the lower temperature. And the temperature reaching the alarm, the system will automatically alarm.
This design is from the temperature measurement circuit, main control circuit, alarm circuit, and several other aspects of the note. The device can transmit digital signals directly to the microcontroller, easy to handle and control MCU. In addition, the thermometer temperature measurement device can be used directly to measure temperature. The major advantages of this design is reflected in operable structural basis is simple, lots of expansion space.
Keywords:AT89S52;DS18B20;thermometer;alarm
目录
摘要........................................................................................................................... I Abstract ....................................................................................................................... II 目录........................................................................................................................ III 1 引言 (1)
1.1 选题的背景 (1)
1.2 选题的目的及意义 (1)
1.3 论文结构 (2)
2 设计的整体方案 (2)
2.1 设计的主要内容 (2)
2.2 设计性能要求 (3)
3 器件的选择 (4)
3.1 单片机的选择 (4)
3.1.1 AT89S52的特点及选择原因 (4)
3.1.2 AT89S52的工作模式及注意事项 (5)
3.2 温度传感器的选择 (7)
3.2.1 DS18B20的特点及选择原因 (7)
3.2.2DS18B20的测温原理 (9)
3.3 显示器的选择 (10)
4 电路原理 (11)
4.1 晶振电路与复位电路 (11)
4.2 温度采集电路 (13)
4.3 显示电路 (14)
4.4 报警系统 (15)