基于物联网的家庭燃气监控系统.docx
文本预览下载声明
摘 要
为了解决家庭内燃气泄漏等事故的发生,本文设计了一套可用于对家庭燃气和环境温湿度进行测量的方案。本套设计方案采用STM32单片机作为系统的主控芯片,搭配气体检测传感器、温湿度检测传感器、ZigBee通信模块以及其它外围I/O设备,通过方案论证,最终确定了本文方案。
在对设计出的硬件系统进行测试时,通过模拟不同情况下状态对系统各个模块和整个系统的联调测试,当下位机检测到煤气浓度超过阈值时启动蜂鸣器报警,同时上位机可能实时观看数据并提醒超过阈值的情况,从测试结果来看,本文所设计的家庭燃气监控系统符合设计要求。
关键词:燃气泄漏;监控;报警;上位机;STM32
Abstract
In order to solve the occurrence of accidents such as gas leakage in the home, this paper designs a set of schemes that can be used to measure household gas and ambient temperature and humidity. This design scheme uses STM32 single-chip microcomputer as the main control chip of the system, with gas detection sensor, temperature and humidity detection sensor, ZigBee communication module and other peripheral I/O devices. Through the demonstration of the scheme, the scheme of this paper is finally determined.
When testing the designed hardware system, by simulating the state under different conditions, the system modules and the entire system are tested for joint debugging. When the lower computer detects that the gas concentration exceeds the threshold, the buzzer will be activated and the upper computer may be in real time. Watch the data and remind the situation that exceeds the threshold. From the test results, the household gas monitoring system designed in this article meets the design requirements.
Keywords: gas leakage; monitoring; alarm; host computer; STM32
目 录
TOC \o 1-3 \h \z \u 1 绪论 5
1.1 论文研究的背景及意义 5
1.2 国内外研究现状 5
1.3 本文主要研究内容及论文结构安排 6
2 系统方案论证 7
2.1 系统设计方案 7
2.2 主控模块选型 7
2.3 气体检测传感器模块选型 8
2.4 温湿度检测传感器选型 9
2.5 通信模块选择 10
2.6 设计语言的选择 11
3 硬件电路的设计 13
3.1 单片机 13
3.1.1 单片机的应用 13
3.1.2 单片机最小系统 14
3.1.3 系统时钟电路 14
3.1.4 系统复位电路 15
3.1.5 中断系统 16
3.2 气体检测模块电路 16
3.3 温湿度检测模块电路 16
3.4 通信模块电路 17
3.5 电源供电电路 17
3.6 报警模块电路 17
4 系统软件设计 18
4.1 系统设计软件 18
4.1.1 Altium Designer 18
4.1.2 Keil C51 18
4.2 软件设计流程图 18
4.2.1 主函数流程图 18
4.2.2 传感器模块流程图 18
4.2.3 ZigBee通信模块流程图 19
5 系统测试 20
总结 22
显示全部