基于LM75A和HS1101的智能温度湿度检测系统毕业论文 - 图文 - 下载本文

基于LM75A和HS1101的智能温度湿度检测系统

设计与实现

文作者姓名: 申请学位专业: 申请学位类别: 指导教师姓名(职称): 论文提交日期:

电子信息工程 工学学士

基于LM75A和HS1101的智能温度湿度检测系统

设计与实现

摘 要

随着计算机技术的发展,智能温度和湿度的检测系统在农业、工业、国防、仓储等领域有着极为广泛的应用。本文设计了一种基于51单片机的智能温度和湿度检测系统,通过STC89C52RC单片机的控制与处理,采用测量范围在0%~99%之间的湿度传感器元件HS1101和测量范围在-55℃~+125℃之间的温度检测器元件LM75A,从而测量出当前空气相对湿度和温度,显示在4位数码管。并且设置了湿度和温度的上限制,一旦检测的湿度或温度超过了设定值,就会启动报警装置。该产品具有体积小巧、成本低、可靠性高,测量精度高等优点。

关键词: 单片机;湿度;温度;检测

Design and Implementation of an Intelligent Temperature and Humidity Detection System Based on LM75A and

HS1101

Abstract

With computer technology development, automatic measurement and control of temperature and humidity are widely applied to agriculture, industry, national defense, storage and other fields. A temperature and humidity measurement system based on 51 MCU is designed in this paper, by control and treatment of STC89C52RC,use the humidity sensor element HS1101 that the range between 1%~99% and temperature sensor element LM75A that the range between -55℃~+125℃.Accordingly measures the current relative humidity and temperature, and reveals on the LED. And set the humidity and temperature, when the detection of the humidity or temperature exceeding the set value, will start the alarm. This product has a compact size, low cost, high reliability and measurement precision.

keywords: MCU; Humidity; Temperature; Detection

目 录

1

引言 ......................................................................................................................... 1 1.1 1.2 1.3 2

课题背景 ...................................................................................................... 1 本课题研究的意义 ...................................................................................... 1 本课题的研究方法 ...................................................................................... 1

湿度和温度测量 ..................................................................................................... 2 2.1 2.2 2.3 2.4

空气湿度的表示方法 .................................................................................. 2 湿度传感器的发展史 .................................................................................. 2 空气温度的表示方法 .................................................................................. 3 温度传感器的发展史 .................................................................................. 4

3 硬件电路设计 ......................................................................................................... 5 3.1 3.2 3.3 3.4 3.5

电源电路和单片机电路模块 ...................................................................... 6 湿度检测模块 .............................................................................................. 7 温度检测模块 .............................................................................................. 9 数码管显示和键盘控制模块 .................................................................... 11 报警电路模块 ............................................................................................ 12

4 软件设计 ............................................................................................................... 12 4.1 4.2

主程序的设计 ............................................................................................ 12 中断函数设计 ............................................................................................ 14

5 调试与测试 ........................................................................................................... 15 5.1 5.2 5.3 5.4 5.5 5.6

软件调试 .................................................................................................... 15 电源及硬件电路调试 ................................................................................ 16 湿度电路调试 ............................................................................................ 17 温度电路调试 ............................................................................................ 17 报警电路调试 ............................................................................................ 18 按键测试 .................................................................................................... 18

6 结论与展望 ........................................................................................................... 18 6.1

全文总结 .................................................................................................... 18

6.2 前景展望 .................................................................................................... 19

参考文献 ...................................................................................................................... 20 致 谢 ...................................................................................................................... 21 附 录 ...................................................................................................................... 22