采用了单片机完成了一个比较常见的应用电路楼宇环境监测系统,让门铃具有了新型的功能,可对楼宇环境中的温度、湿度、烟雾和其他状况进行实时监测,方便用户对楼宇环境信息进行了解
摘要:本论文中设计并实现了基于无线技术的楼宇环境监测系统,主要由温湿度检测、WIFI模块、烟雾检测模块、显示模块等部分组成。随着当前社会不断的发展与前进,人们生活水平不断的进步,对居室环境和生命财产安全的要求也越来越高,楼宇对于人们而言是工作和生活的主要场所,也是生活的重要物质保障之一。当时当前市面上大多数环境监测系统仅针对酒店、公寓以及人流密集的大型场所,鲜有针对小型防火楼房如居民社区、学校教学楼等楼宇设计的环境监测系统。本篇文章选用STC89C52单片机作为控制模块,并以此为基础控制元件并添加了其他模块,并最终完成了居室安全报警器的设计。在本次设计的报警器电路结构较为简单、控制模块可靠、性价比较好且能够完成预期功能,具有较好的应用前景且对于单片机的应用和开发具有理论参考价值和现实指导意义。
关键词: WIFI模块; STC89C52单片机; 烟雾监测模块;楼宇环境监测系统;
Design of building environment monitoring system based on wireless technology
Abstract: This paper designs and implements a building environment monitoring system based on wireless technology. It is mainly composed of temperature and humidity detection, WIFI module, smoke detection module and display module. With the continuous development and advancement of the current society, people’s living standards are continuously improving. The requirements for the living environment and the safety of life and property are also increasing. Buildings are the main places for people to work and live, and they are also important materials for life. One of the guarantees. At the time most of the environmental monitoring systems on the market were only for hotels, apartments and large crowded places. There were few environmental monitoring systems designed for small-scale fire-fighting buildings such as residential communities and school buildings. This article selected STC89C52 microcontroller as the control module, and used this as the basic control element and added other modules, and finally completed the design of the room security alarm. In this design, the alarm circuit has simpler structure, reliable control module, better performance/price ratio and ability to complete expected functions. It has good application prospects and has theoretical reference value and practical guidance significance for the application and development of SCM.
Keywords: WIFI module; STC89C52 microcontroller; smoke monitoring module; building environment monitoring system;
目 录
1 绪论 1
1.1 课题背景 1
1.2 概述及功能介绍 1
1.2.1 功能概述 1
1.2.2 主要功能介绍 1
1.3 本课题的研究思路 2
1.3.1 研究意义 2
1.3.2 研究思路 2
1.3.3 研究难点 3
1.4 主要工作 3
2 系统方案设计 4
2.1 系统构成 4
2.2 方案设计 4
2.2.1单片机方案设计 4
2.2.2 传感器方案设计 5
2.2.3 显示器模块方案设计 6
2.2.4 WIFI模块方案设计 6
3 系统硬件设计 8
3.1 主控电路 8
3.2 温湿度检测电路 10
3.3 烟雾检测电路 11
3.4 气压检测模块 13
3.5 WIFI模块 14
3.6 LCD1602液晶显示电路 15
4 系统软件设计 18
4.1 软件介绍 18
4.2 系统总程序流程图 18
4.3 各子程序流程图 20
4.3.1温湿度检测流程图 20
4.3.2 烟雾检测模块流程图 21
4.3.3 气压检测模块流程图 22
4.3.4 WIFI模块流程图 23
5测试结果及结论 25
5.1 调试 25
5.2 结论 26
致谢 28
参考文献 29
1 绪论
1.1 课题背景
随着当前社会不断的发展与前进,人们生活水平不断的进步,私有财产不断增加,家居.办公等室内用电器种类随之增加,使用天然气,液化气等燃气已是普遍现象,对人民的工作,生活提供了方便,同时也增加了潜在的不安全因素。住宅环境质量与人的身体健康有着必不可分的关系,温湿度在不同的季节有着不同变化,随着温湿度的变化对人们身体也有着不同的影响。据生活常识表明过低的温度会使人们很容易患上感冒、发烧等疾病,严重者可导致肺炎,温度过高则会让人们感觉身体非常不适,而过低的湿度则会严重影响人们的睡眠质量,早晨起床喉咙干燥、灼痛都是室内湿度过低的原因,长期生活在这样的环境中机体水分蒸发过快会导致呼吸道干燥,咽痛,口渴,对患有呼吸道疾病的人十分不利,湿度过高则有利于细菌的繁殖,同时人体水分蒸发慢,会让人十分不适。这样我们就可以知道:室内的温湿度过高或者过低都不利于人们的生产、生活。住宅是一个半封闭的空间,通过窗户和门与外界环境直接相连,外界环境的严重污染势必导致人们室内的环境质量不会变的很好。住宅作为人们生产生活的一个不可缺少的场所,那么作为人们栖息的场所,室内环境质量质量的检测就变的十分有必要了。