文档介绍:摘要
本文结合实际使用需求,采用DS18B20数字温度传感器及单片机设计硬件连接电路,并给出了软件流程图及程序。系统由多个外接的温度传感器及显示器、键盘电路、电子看门狗电路、报警电路、单片机、通信接口及上位机组成。传感器将温度转为电信号后,经过通信接口交微处理器处理,最后将温度值显示并存储起来。通过键盘可以控制数据的回放,且可以通过接口与上位机进行通信。系统具有超温报警功能。
由于采用了智能温度传感器DS18B20,它的转换速率极快,进行读、写操作非常简便。它具有数字化输出,可测量远距离点温度。系统具有微型化,微功耗,测量精度高,功能强大等特点,同时可测量多路温度参数,报警的温度值能方便地设置。由于有先进的看门狗电路,加之DS18B20内部的差错检验,所以它的抗干扰能力强,性能可靠,结构简单。
系统由上位机和下位机两大部分组成。下位机实现温度的检测并提供标准的通信接口,上位机部分使用了通用PC。该系统可应用于仓库测温、楼宇空调控制和生产过程监控等领域。
关键字:温度测量;传感器;单片机;集成电路
Abstract
Based on the actual experience and needs ,this thesis mainly designs the
hardware connecting circuit by using DS18B20 and MCU. Meanwhile ,it shows the flowchart of software systems and system consists of several external temperature sensors and displays,keyboard circuit,electronic watchdog circuit,alarm circuit, munications interface and the puter. The temperature sensor turns temperature into signals and then through the disposal of the microprocess or interface, the temperature is showed and storaged finally . The data can be controlled by the keyboard intervals, and municate with the puter through the interface. This system has the over –temperature alarm system function.
Because the DS18B20 intelligent temperature sensor system is used ,it has fast rate of change and it is very convenient to read and write . It has digital output ,and can measure the remote system has the chatacteristics of microminiaturization, low power ,and high accuracy. It can measure the multi-channel temperature parameters at the same time and the alarm temperature can be easily installed. Because of the advanced watchdog circuit and the internal error testing of DS18B20 ,its anti-interference capability es better ,its function more reliable and its stracture simpler.
This system is made up of the upper and lower crew of two ponents. The ponent measures the temperature and provides a munication interface .Parts of the ponents use the general PC .This system can be used for measuring the temp