项目编号:mcuclub-dz-301
设计简介:
项目名:居住环境监测(实物))
项目编号:mcuclub-dz-301
单片机类型:STM32F103C8T6
具体功能:
1、通过MQ-2检测烟雾浓度,如果烟雾值大于设置的最大值,进行声光报警
2、通过MQ-5检测可燃气体浓度,如果气体浓度大于设置最大值,进行声光报警
3、通过触发型雨水监测模块检测室内是否有积水,如果出现积水,进行声光报警
4、通过人体热释电模块监测监控区域是否有人,当有人,并且布防时,进行声光警报
5、通过按键可以设置各阈值、布防、撤防
6、通过OLED显示屏显示数据
7、当烟雾值大于设置的最大值时,通过蓝牙发送“烟雾浓度过高”提示信息;当可燃气体值大于设置的最大值时,通过蓝牙发送“可燃气体浓度过高”提示信息;当出现积水时,通过蓝牙发送“出现积水”提示信息;当布防时,检测到有人,通过蓝牙发送“有人闯入”短信
总字数:12845
基于STM32的老人居家监护报警系统研发与设计
摘 要:由于目前生活压力和成本不断加大,越来越多年轻人选择异地工作,无法照顾在家的老人,我国老年人群体庞大,为使老人得到全面性和可靠性的监护,本文设计一款基于STM32单片机的老人居家监护报警系统。对老人居住环境的烟雾浓度、可燃气体浓度、家内是否漏水和门窗当前的开关状态进行实时监测,防止老人家中发生火灾、水灾和不分分子入室盗窃等意外情况,通过对老人居家环境的实时监测,帮助实时了解老人居住环境当前的情况,监测异常时进行声光报警提醒老人和周围的邻居,当监测老人居住环境异常时,发送短信到老人监护人员的手机上,此外家人还可以通过手机连接蓝牙查看当前老人居家的环境。本设计还在实物测试环境下对系统的数据采集功能、模块控制功能和报警功能等进行了测试。测试结果表明,该装置能满足市场对老人居家监护报警系统的需求。
关键词:STM32单片机;烟雾浓度;老人居家监护;报警
Design of intelligent home system based on STM32
Abstract: Because of the increasing pressure and costs of life, more and more young people choose different places to work, and can not take care of the elderly at home. The elderly community in our country is large. For the elderly to obtain comprehensive and reliable monitoring, this paper designs a home monitoring alarm system for the elderly based on the STM32 SCM. Real-time monitoring of smoke concentration, combustible gas concentration, water leakage and the current state of doors and Windows in the home, to prevent fire, flood and indiscriminate burglary and other accidents in the home of the elderly, through real-time monitoring of the elderly home environment, to help real-time understanding of the current situation of the elderly living environment, In case of abnormal monitoring, sound and light alarm will be made to remind the elderly and their neighbors. In case of abnormal monitoring of the elderly’s living environment, SMS messages will be sent to the mobile phone of the elderly guardian. In addition, the family members can also check the current home environment of the elderly through Bluetooth connection of the mobile phone. The design also tests the data acquisition function, module control function and alarm function of the system under the physical test environment. The test results show that the device can meet the market demand for home monitoring and alarm system for the elderly.
Key words: STM32 MCU; Smoke concentration; Home care for the elderly; Alarm
目 录
1 绪 论
1.1 研究背景及其研究意义
1.2 国内外研究现状
1.2.1 国内研究现状
1.2.2 国外研究现状
1.3 本文研究目标和组织结构
2 方案设计……………………………………………………………………………………….5
2.1 整体方案设计
2.2 主要器件选型选择
2.2.1 主控芯片方案选择
2.2.2 烟雾检测模块方案选择
2.2.3 MQ-5天然气传感器的方案选型
3 硬件电路设计
3.1 主控模块电路
3.2 MQ-2烟雾检测模块电路设计
3.3 MQ-5天然气模块电路
3.4 水位监测模块电流
3.5 人体热释电红外感应模块
3.6 显示模块电路
3.7 声光报警模块
3.8 按键电路
3.9 蓝牙模块电路
4 系统程序设计
4.1 编程软件介绍
4.2 系统主流程设计
4.3 独立按键
4.4 OLED显示流程设计
4.5 蓝牙模块子流程
5 实物调试
5.1 整体实物测试图
5.2 参数设置实物测试
5.3人体热释模块检测实物测试
5.3烟雾浓度检测实物测试
5.3天然气浓度检测实物测试
5.3漏水检测实物测试
总结
致谢
参考文献
附录
原理图
PCB板
软件代码