1、i 基于基于 DS18B20 数字温度计设计数字温度计设计 The design of temperature sensor based on DS18B20 digital thermometer ii 摘摘 要要 随着人们生活水平的不断提高,单片机控制无疑是人们追求的目标之一,它 所给人带来的方便也是不可否定的,其中数字温度计就是一个典型的例子,但人 们对它的要求越来越高,要为现代人工作、科研、生活、提供更好的更方便的设 施就需要从数单片机技术入手,一切向着数字化控制,智能化控制方向发展本文 介绍了一种基于 DS18B20 的数字温度计设计方案。 本设计所介绍的数字温度计与 传统的温度计相
2、比,具有读数方便,测温范围广,测温准确,其输出温度采用数 字显示, 主要用于对测温比较准确的场所, 或科研实验室使用方案。 利用 AT89S52 单片机控制 DS18B20 进行数据采集并由 HS1602 液晶显示模块显示结果,另外, 采集结果可由 RS-232-C 接口送入计算机显示并存储。按键控制实现过界报警温 度设定和实时监控,利用 AT24C08 芯片进行存储,实现温度测量存储与再现。 关键字:温度采集 存储再现 过界报警 串行通信 iii Abstract With the continuous improvement of peoples living standard, sing
3、le-chip control is undoubtedly one of the people to pursue the goal, it brings the convenience is undeniable, which is a typical example of the digital thermometer is required of it, but it is increasingly the higher is the modern, scientific research, life and provide better more convenient facilit
4、ies will need to start from several single-chip technology, all toward the digital control, intelligent control of the direction. In this page we introduced a conception of the numerical thermometer based on DS18B20. Digital thermometer as described in this design compared with traditional thermomet
5、er readings, temperature range and accurate temperature measurement, the output temperature with digital display for accurate temperature place, or research laboratories .The conception makes use of AT89S52 control DS18B20 to carry on the data collection and displays the result use the HS1602 liquid
6、 crystal display module. Moreover, the result can be sent into the computer by the interface of RS-232- C to display and store. The key control carries out the temperature setting of over the boundary to alarm and real-time monitoring, and makes use of the chip of AT24C08 carries on the storage, and carrying out the temperature measurement storage and reappearing. Keywords: Temperature collection Storing to reappear Over the boundary to alarm Serial communication. 目 录 摘摘 要要.ii AbstractAbstra