摘 要
DS18B20是一种可组网的高精度数字式温度传感器,由于其具有单总线的独特优点,可以使用户轻松地组建起传感器网络,并可使多点温度测量电路变得简单、可靠。本文介绍了单线数字温度传感器DS18B20的特点和工作原理以及DS18B20数字温度传感器在单片机下的硬件连接及软件编程。多个温度传感器DS18B20通过单总线结构连接到单片机的一个双向口,单片机和微机通过串口连接。
该系统由测温模块和显示模块两大部分组成。本文主要设计了测温模块部分。测温模块部分实现温度的检测并提供标准RS232通信接口。显示模块部分使用了通用PC。芯片使用了ATMEL公司的ATMEGA32单片机和DALLAS公司的DS18B20数字温度传感器。
该系统可应用于仓库测温、楼宇空调控制和生产过程监控等领域。
关键字:温度测量;单总线;数字温度传感器;单片机
ABSTRACT
As a kind of high-accuracy digital net temperature sensor DS18B20 can be used building a sensor net easily. It can also make the net simple and reliable with it's special 1-wire interface .This paper introduces the characteristics and working principle of a 1-wire interface digital sensor DS18B20 and the application of DS18B20 with single chip processor. A number of sensors are connected to a port of the single chip processor. The single chip processor is connected to a PC through the serial interface. The system is constituted by two parts the temperature measured part and displayed part. This paper main design the temperature measured part .The temperature measured part has a RS232 interface. The displayed part uses PC. It used ATmega32 of ATMEL company and DS18B20 of DALLAS company .This system is applied in such domains as warehouse detecting temperature air-conditioner controlling system in building and supervisory productive process etc. Keywords:temperature measure; single bus; digital thermometer ; single chip processor