1、 I DS18B20 数字体温计的设计 摘 要 体温是一种最基本的人体参数,在研究人的各种生理状况和健康过程中 需要实时测量体温,因此研究体温的测量方法和控制具有重要的意义。 本论文介绍了一种以单片机为主要控制器件, 以 DS18B20 为体温传感器 的新型数字体温计。主要包括硬件电路的设计和系统程序的设计。硬件电路 主要包括主控制器,测温控制电路和显示电路等,主控制器采用单片机 AT8 9C52,体温传感器采用美国 DALLAS 半导体公司生产的 DS18B20,显示电 路采用 8 位共阴极 LED 数码管,ULN2803A 为驱动的动态扫描直读显示。测 温控制电路由体温传感器和预置体温值比
2、较报警电路组成,当实际测量体温 值大于预置体温值时,发出报警信号,即发光二极管亮。系统程序主要包括 主程序,测温子程序和显示子程序等。DS18B20 新型单总线数字体温传感器 是 DALLAS 公司生产的单线数字体温传感器, 集体温测量和 A /D 转换于 一体 ,直接输出数字量,具有接口简单、精度高、抗干扰能力强、工作稳定可 靠等特点。 由于采用了改进型智能体温传感器 DS18B20 作为检测元件, 与传统的体 温计相比,本数字体温计减少了外部的硬件电路,具有低成本和易使用的特 点。DS18B20 体温计还可以在高温报警、远距离多点测温控制等方面进行应 用开发,具有很好的发展前景。此外,还介
3、绍了系统的调试和性能分析。 关键词:显示电路,单片机,AT89C52,体温传感器,DS18B20 ,单总线 II The Design of DS18B20 Digit Thermometer ABSTRACT Temperature is a basic parameters of the environment, peoples lives and the environment are closely related to temperature. in the course of industrial production immediate need for temperature
4、measurement in industrial production has to do with temperature measurement, The study of the temperature measurement and control is of great significance. The paper introduced one kind new digital thermometer that take the Micro Controller Unit as the primary control component and take DS18B20 as t
5、he temperature sensor. Mainly included the design of the hardware electric circuit and the design of the system program .The hardware electric circuit mainly included the master controller, the temperature measured electric circuit and the display circuit and so on, the master controller used Micro
6、Controller Unit AT89C52, the temperature sensor used DS18B20 which the American DALLAS semiconductor company produces, the display circuit used 8 altogether anodes LED numerical code tube by the dynamic scanning method straight to read the demonstration.ULN2803A-driven dynamic scan showed straight time. Temperature control circuit from temperature sensors and preset temperature value compared alarm circuit components, When measured temperature greater than preset temperature value, issued warn