您好,欢迎来到佳博论文网!

上下限温度报警器的设计

论文编号:JD992 论文字数:24867,页数:44

摘要

在科技越来越发达的今天,可以通过各种各样的有效途径达到对不同的场合需要进行温度测量和温度控制。本文将介绍一种由单片机﹑传感器等组成的温度检测报警器。控制芯片采用AT89S51系列单片机,传感器采用一线数字温度传感器DS18B20,键盘采用扫描式非编码键盘,显示部分采用两位LED动态显示方式,用蜂鸣器作为发声报警器件。此电路设计的功能为测量两节点温度值,并可对任一节点的高和低温限进行设定;还可对两点之间的温度进行比较,得到温差;当某节点温度超过高或低温限时以及两点之间温差超过设定值时蜂鸣器发声报警,并把各节点温度值存入24C02。DS18B20的测温范围为-55°C~+125°C,测量精度为0.5°C。本文的测温范围设定在0°C~99°C,采用的显示精度为1°C。

关键词:单片机;DS18B20;AT24C02;温度;温差。

abstract

Nowadays, science and technology is more and more developed, we can reach and need to carry on temperature survey and temperature control to different occasions through various effective ways. This paper will introduce a kind of temperature measure annunciator that made up of single-chip microcomputer, sensor, etc. . Control-chip adopts the AT89S51 series single-chip microcomputer, the sensor adopts the one-line digital temperature sensor DS18B20, the keyboard adopts the scanning type uncoded keyboard, displayer adopts two dynamic display mode LED, uses buzzer as the sound-warning device. Function that circuit design in this paper is to measure two nodal temperature value, and set the most high and low-temperature limit for any chosen sensor ; Can also compare temperature between two nodes, get the difference in temperature; When some nodal temperature exceeds most high or low-temperature and two nodes’ difference in temperature prescribed in advance, buzzer sounds as warning, and reserves each sensor’s temperature. The temperature measure range of DS18B20 is -55 °c~+125°c, and the precision is 0.5°c. In this paper, we use the range of 0°c~99°c C°

, and the display precision of 1°c.

Keywords: single-chip microcomputort; DS18B20; AT24C02; temperature; difference in temperature.

目录

摘要1

abstract2

引言4

1 电路原理及构成5

1.1 方案一:5

1.2 方案二:5

1.3 两种方案的比较:12

2 方案2中各部分单元器件简介12

2.1 温度采集部分:DS18B20智能温度控制器12

2.2 温度存储部分:I2C总线的应用17

2.3 控制部分:AT89C51单片机20

2.4 显示部分:七段LED显示器24

2.5 键盘部分27

3 电路的调试28

3.1 硬件电路的检测29

3.2 程序编以及调试29

4 结论34

谢 辞36

参考文献37

附 录38

附录1 电路原理图38

附录2 PCB图39

附录3 程序清单40

上下限温度报警器的设计......