基于单片机的温湿度检测与控制

上传人:飞*** 文档编号:42289595 上传时间:2018-06-01 格式:DOC 页数:34 大小:819.50KB
返回 下载 相关 举报
基于单片机的温湿度检测与控制_第1页
第1页 / 共34页
基于单片机的温湿度检测与控制_第2页
第2页 / 共34页
基于单片机的温湿度检测与控制_第3页
第3页 / 共34页
基于单片机的温湿度检测与控制_第4页
第4页 / 共34页
基于单片机的温湿度检测与控制_第5页
第5页 / 共34页
点击查看更多>>
资源描述

《基于单片机的温湿度检测与控制》由会员分享,可在线阅读,更多相关《基于单片机的温湿度检测与控制(34页珍藏版)》请在金锄头文库上搜索。

1、华东交通大学1基于单片机的温湿度检测与控制基于单片机的温湿度检测与控制专 业:通信工程 学 号:20100610080203学生姓名: 张艳 指导老师: 黄德昌摘要摘要温湿度等环境参数是气象环保、煤矿工业、精准农业等领域的主要因素,对其实时、准确的监测显得非常关键。设计智能的环境参数无线监测系统来解决上述难题显得尤为必要。本次设计是采用 MSC-51 系列单片机中的 AT89S51 和 DHT11 的低成本的温湿度的检测系统。本设计主要包括硬件电路的设计和系统软件的设计。硬件电路主要包括单片机、温湿度传感器、显示模块、报警器以及键盘等 5 部分,由DHT11 温湿度传感器及 12864 字符型

2、液晶模块构成系统显示模块,该系统电路简单、工作稳定、集成度高,调试方便,测试精度高,具有一定的实用价值。其中测温湿度控制电路由温湿度传感器和预设温度值比较报警电路组成,用户根据需要预先输入预设值,当实际测量的温湿度大于预设的温湿度数值时,发出报警信号(蜂鸣器蜂鸣) 。软件部分包括了主程序、显示子程序、测温湿度子程序。经过设计制作和调试,系统可以在大区域内和复杂环境下实现稳定、准确监测环境中的温湿度,并可将结果实时显示在液晶屏上,达到了预期目标。本系统可广泛应用于气象环保、煤矿工业、精准农业等监测领域,具有一定的实用价值和良好的市场前景。关键词关键词: : 温度测量 湿度测量 AT89S51 D

3、HT11华东交通大学2ABSTRACTEnvironmental parameters, such as temperature and humidity, sunshine is the main factors to meteorological environmental protection, coal mine industry, precision agriculture, so actually and accurate monitoring is very critical. So, designing a intelligent environmental parameter

4、s monitoring system to solve the problem is necessary. This design is the use of MSC-51 Series MCU AT89S51 and DHT11 in the low-cost temperature and humidity detection system. This design includes the design of hardware and system software design. Hardware circuit includes a microcontroller, tempera

5、ture and humidity sensors, display module, the alarm and the keyboard 5, the DHT11 temperature and humidity sensor and 1602 constitute a system of character LCD module display module, the system circuit is simple, stable, high integration, commissioning Convenient, high precision, has some practical

6、 value. Temperature and humidity control circuit in which the temperature and humidity sensors and compare the value of the preset temperature alarm circuit, the user input required pre-default value, when the actual temperature and humidity measurements of temperature and humidity is greater than t

7、he preset value, an alarm signal (bee Buzzer beep). Software part includes the main program, display routines, subroutines side temperature and humidity.Through the design, manufacturing and testing , the system can realize stable and accurate monitoring the environment temperature and humidity in t

8、he large area and complex environment, and can send the results to the screen , and achieve the desired goals. This system can be widely used in meteorological environmental protection, coal mining industry, precision agriculture and other monitoring fields, it has a certain practical values and goo

9、d market prospect.Key words: Temperature measurement Humidity measurement AT89S51华东交通大学3目录目录第一章 绪论.4 1.1 选题背景 .4 1.2 环境参数监测系统的研究现状 .4 1.3 环境参数监测系统的基本架构 .5 1.4 论文内容和结构安排 .5第二章 方案设计.6 2.1 方案的选择 .6 2.1.1 微控器(MCU)的选择.6 2.1.2 环境参数传感器的选择.7 2.1.3 数据显示的选择.7 2.2 系统整体方案 .8 2.3 小结 .8第三章 系统硬件设计.9 3.1 MCU 主控单元硬件

10、.9 3.1.1 单片机总体分析.9 3.1.2 AT89S51 模块分析 .9 3.1.3 AT89S51 电路设计 .11 3.2 传感器信号采集单元硬件.11 3.2.1 传感器分析.11 3.2.2 传感器电路设计 .16 3.3 LCD 显示单元硬件.16 3.3.1 LCD 液晶分析 .16 3.3.2 LCD 电路设计 .19 3.4 系统的蜂鸣器电路.20 3.5 小结.21第四章 系统软件设计.22 4.1 系统硬件驱动程序设计.23 4.1.1 SHT11 采集温湿度软件设计 .23 4.1.2 LCD1206 液晶显示软件设计 .23 4.3 小结 .23第五章 谢辞.2

11、4参考文献.25 附录 I:系统电路原理图.26 附录 II:系统 PCB 图.27 附录 III:系统驱动程序代码.28 附录 IV:液晶显示源代码.32华东交通大学4第一章第一章 绪论绪论1.11.1 选题背景选题背景目前随着生活质量的不断提高,人们的生活水平越来越高,所以对环境的要求也越来越高,环境控制的也成了人们安居乐业的基础,成了共建和谐环境的重要环节。尤其是目前生活节奏的加快,许多白领都出现了亚健康的状态,因此家庭温湿度的检测对于现代家庭来说也变得刻不容缓了。因此为了满足最适宜人们生活的最佳温度和湿度,我们需要研究一种家庭式的,便于提醒和控制温湿度的装置,人们可以根据不同季节以及个人的需要进行不同的调整,以便达到最佳的居住环境,这不仅仅是对于环境要求的进步,同时也体现了现代文明的发达与先进。为了更加有效的保证人们生活环境的安逸和舒适,同时也为了人们生活的更加健康,人们已不满于目前的居住环境,对家庭提出了更高的要求,智能

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 行业资料 > 其它行业文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号