1、 基于基于 LM75A 和和 HS1101 的智能温度湿度检测系统的智能温度湿度检测系统 设计与实现设计与实现 文 作 者 姓 名 :文 作 者 姓 名 : 申 请 学 位 专 业 :申 请 学 位 专 业 : 电子信息工程电子信息工程 申 请 学 位 类 别 :申 请 学 位 类 别 : 工学学士工学学士 指导教师姓名 (职称) :指导教师姓名 (职称) : 论 文 提 交 日 期 :论 文 提 交 日 期 : 基于基于 LM75A 和和 HS1101 的智能温度湿度检测系统的智能温度湿度检测系统 设计与实现设计与实现 摘摘 要要 随着计算机技术的发展,智能温度和湿度的检测系统在农业、工业、
2、国防、 仓储等领域有着极为广泛的应用。本文设计了一种基于 51 单片机的智能温度和 湿度检测系统,通过 STC89C52RC 单片机的控制与处理,采用测量范围在 0% 99%之间的湿度传感器元件 HS1101 和测量范围在-55+125之间的温度检 测器元件 LM75A,从而测量出当前空气相对湿度和温度,显示在 4 位数码管。 并且设置了湿度和温度的上限制,一旦检测的湿度或温度超过了设定值,就会启 动报警装置。该产品具有体积小巧、成本低、可靠性高,测量精度高等优点。 关键词关键词: : 单片机;湿度;温度;检测 Design and Implementation of an Intellige
3、nt 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 meas
4、urement 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,
5、 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 目目 录录
6、 1 引言. 1 1.1 课题背景 1 1.2 本课题研究的意义 1 1.3 本课题的研究方法 1 2 湿度和温度测量. 2 2.1 空气湿度的表示方法 2 2.2 湿度传感器的发展史 2 2.3 空气温度的表示方法 3 2.4 温度传感器的发展史 4 3 硬件电路设计. 5 3.1 电源电路和单片机电路模块 6 3.2 湿度检测模块 7 3.3 温度检测模块 9 3.4 数码管显示和键盘控制模块 11 3.5 报警电路模块 12 4 软件设计. 12 4.1 主程序的设计 12 4.2 中断函数设计 14 5 调试与测试. 15 5.1 软件调试 15 5.2 电源及硬件电路调试 16 5.3 湿度电路调试 17 5.4 温度电路调试 17 5.5 报警电路调试 18 5.6 按键测试 18 6 结论与展望. 18 6.1 全文总结 18 6.2 前景展望 19 参考文献 20 致 谢 21 附 录 22 1 1 引言 1.1 课题背景 在日常生活中,空气湿度和温度直接影响人们的生活与生产。如在电子设备 机房,为了保持设备运行良好,延