基于DS18B20数字温度计的设计

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
Keywords:microcontroller, digital control, thermometer

1.1
温度计是测温仪器的总称。根据所用测温物质的不同和测温范围的不同,有煤油温度计、酒精温度计、水银温度计、气体温度计、电阻温度计、温差电偶温度计、辐射温度计和光测温度计等。
最早的温度计是在1593年由意大利科学家伽利略(1564~1642)发明的。他的第一只温度计是一根一端敞口的玻璃管,另一端带有核桃大的玻璃泡。使用时先给玻璃泡加热,然后把玻璃管插入水中。随着温度的变化,玻璃管中的水面就会上下移动,根据移动的多少就可以判定温度的变化和温度的高低。这种温度计,受外界大气压强等环境因素的影响较大,所以测量误差大。
摘要
随着时代的进步和发展,单片机技术已经普及到我们生活、工作、科研、各个领域,已经成为一种比较成熟的技术。对于温度的测量方法与装置的研究就凸显得非常重要。由单片机与温度传感器构成的测温系统可广泛应用于很多领域。
本文将介绍一种基于单片机控制的数字温度计,从硬件和软件两方面介绍了单片机温度控制系统的设计,对硬件原理图和程序框图作了简洁的描述。本设计所介绍的数字温度计与传统的温度计相比,具有读数方便,测温范围广,测温准确,其输出温度采用数字显示,该设计控制器使用单片机AT89C2051,测温传感器使用DS18B20,用4位共阳极LED数码管以串口传送数据,实现温度显示,能准确达到以上要求。DS18B20数字温度传感器是单总线器件与51单片机组成的测温系统,具有线路简单、体积小等特点,而且在一根通信线上,可以挂接多个DS18B20,因此可以构成多点温度测控系统。
关键词:单片机,数字控制,温度计,温度传感器
Abstract
With the progress and development of era, microcontroller technology has become popular in our life, in the work, the scientific research and various fields, has become a relatively mature technology. The temperature measurement method and device of the highlights is very important. Posed by the single chip temperature sensor and temperature measurement system can be widely applied in many fields.
引言来自百度文库
随着现代信息技术的飞速发展和传统工业改造的逐步实现,能够独立工作的温度检测和显示系统正在逐步应用于诸多领域。传统的温度检测以热电偶和热电阻为温度敏感元件。然热电偶和热电阻的成本低,但他们测出的一般都是电压,再转换成对应的温度,需要比较多的外部硬件支持,而且可靠性相对较差,测温准确度低,检测系统也有一定的误差。与传统的温度计相比,基于DS18B20的数字温度计具有读数方便,测温范围广,测温精确,数字显示,适用范围宽等特点。选用AT89C2051型单片机作为主控制器件,DS18B20作为测温传感器,通过4位共阳极LED数码管串口传送数据,实现温度显示。通过DS18B20直接读取被测温度值,进行数据转换,该器件的物理化学性能稳定,线性度较好,在-10~+85°C范围内,精度为±0.5°C。该器件可直接向单片机传输数字信号,便于单片机处理及控制。另外,该温度计还能直接采用测温器件测量温度,从而简化数据传输与处理过程。
This article introduces a microcomputer-based control of digital thermometers; both hardware and software introduced Temperature Control system design, hardware schematics and made a brief description of the block diagram. The design presented in digital thermometer with a traditional thermometer, compared with reading convenience, a wide range of temperature measurement, temperature measurement accuracy, the output of the temperature digital display, the design of the controller using microcontroller AT89C2051, temperature sensor uses DS18B20, with 4 LED digital tubes anode spaces to serial transmission of data, to achieve temperature display, accurate to the above requirements. DS18B20 single-bus digital temperature sensor is composed of 51 single-chip device with temperature measurement system is simple, small size and other characteristics, but also a communication line, you can mount multiple DS18B20, it can constitute a multi-point temperature control system.
相关文档
最新文档