基于单片机控制的DS18B20数字温度计设计.doc
文本预览下载声明
基于单片机控制的DS18B20数字温度计设计
摘 要
温度是一种最基本的环境参数,人们生活与环境温度息息相关,在工业生产过程中需要实时测量温度,在工业生产中也离不开温度的测量,因此研究温度的测量方法和控制具有重要的意义。
一种以单片机为主要控制器件,以DS18B20为温度传感器的新型数字温度计。主要包括硬件电路的设计和系统程序的设计。硬件电路主要包括主控制器,测温控制电路和显示电路等,主控制器采用单片机AT89S52,温度传感器采用美国DALLAS半导体公司生产的DS18B20,显示电路采用8位共阴极LED数码管。测温控制电路由温度传感器和预置温度值比较报警电路组成,当实际测量温度值大于预置温度值时,发出报警信号,即发光二级管亮。系统程序主要包括主程序,测温子程序和显示子程序等。DS18B20新型单总线数字温度传感器是DALLAS公司生产的单线数字温度传感器,集温度测量和A/D转换于一体,直接输出数字量,具有接口简单、精度高、抗干扰能力强、工作稳定可靠等特点。
由于采用了改进型智能温度传感器DS18B20作为检测元件,与传统的温度计相比,本数字温度计减少了外部的硬件电路,具有低成本和易使用的特点。DS18B20温度计还可以在高温报警、远距离多点测温控制等方面进行应用开发,具有很好的发展前景。
关键词:单片机 数字型温度传感器 多点测控
DS18B20 digital thermometer design based on single chip microcomputer control
AbstractThe temperature is a basic environmental parameters of peoples lives are closely related to the ambient temperature in industrial processes require real-time measurements of temperature, is also inseparable from the temperature measurement in industrial production of temperature measurement and control of important significance.A microcontroller as the main control device, temperature sensor DS18B20 is a new digital thermometer. Including the design of hardware circuit design and system procedures. Hardware circuit includes a main controller, the temperature control circuit and display circuit, the main controller using microcontroller AT89S52 is, the temperature sensor DS18B20 DALLAS Semiconductor production, the display circuit 8 common cathode LED digital tube. The temperature control circuit temperature sensor and a preset temperature alarm circuit composed of an alarm signal when the actual measured temperature value is greater than the preset temperature value, ie, light emitting diode lights. The system program including the main program, the temperature subroutine and display routines. The DS18B20 new single-bus digital temperature sensor DALLAS production of single-wire digital temperature sensor, and set temperature measurement and
显示全部