项目编号:mcuclub-dz-310
设计简介:
项目名:环境检测(实物)
项目编号:mcuclub-dz-310
单片机类型:STM32F103C8T6
具体功能:
1、通过MS1100检测甲醛值,如果甲醛值超过设置最大值,则声光报警,并自动开启风扇进行通风
2、通过火焰检测模块检测是否发生火灾,如果发生,则声光报警,并自动开启水泵进行灭火
3、通过MQ-2检测烟雾,如果烟雾超过设置最大值,则声光报警,并自动开启风扇及水泵
4、通过DHT11检测环境温湿度,如果温湿度超过设置的上下限值,进行声光报警
5、通过按键可设置各阈值
6、通过OLED显示数据
7、通过WIFI模块,手机端可远程查看各数据,手机端可远程设置各阈值,控制继电器开关
总字数:20373
摘 要
随着人口老龄化的加剧,老年人口比例上升,由于子女工作繁忙,不能时时刻刻陪在老人身边。因此老年人的生活面临着更多的威胁,比如室内环境温湿度、甲醛浓度、烟雾浓度等参数异常,导致中暑、火灾等意外情况发送,都需要更智能的方式进行解决,所以,设计一款智能家居环境监测系统极为必要。
本文以家居环境参数作为研究对象,采用软件设计和硬件设计的方式进行设计。在硬件设计过程中:采用STM32单片机作为主控芯片,首先通过4种不同的传感器对家居环境的甲醛浓度、烟雾浓度、温湿度和是否有火焰等参数进行监测,然后将监测到的数据传输到单片机进行分析和处理,从而控制继电器的开启和断开,从而维持家居环境处于适宜的状态,并将监测到的实时数据传输到显示屏和手机端进行显示。在系统的软件设计过程中:采用Keil5作为此次设计程序编程软件,采用AD作为此次设计的原理图和PCB的绘制软件,采用stc-isp作为此次设计程序的烧录软件,采用Visio作为此次设计的流程图绘制软件;通过软硬件共同配合,实现对家居相关环境参数进行实时监测和调控,有效保障人们生活环境的宜居性。
关键词:家居环境监测;传感器;Keil5;单片机;测控
Abstract
As the aging of the population intensifies, the proportion of the elderly population increases, because their children are busy with work, they can not accompany the elderly at all times. Therefore, the life of the elderly is facing more threats, such as indoor ambient temperature and humidity, formaldehyde concentration, smoke concentration and other parameters abnormal, resulting in heat stroke, fire and other unexpected situations, need a more intelligent way to solve, so the design of a smart home environment monitoring system is extremely necessary.
In this paper, the home environment parameters as the research object, using software design and hardware design way to design. During the hardware design process: STM32 single chip microcomputer is adopted as the main control chip. Firstly, four different sensors are used to monitor the parameters of formaldehyde concentration, smoke concentration, temperature and humidity and whether there is flame in the home environment. Then the monitored data is transmitted to the single chip microcomputer for analysis and processing, so as to control the opening and disconnecting of the relay, so as to maintain the home environment in a suitable state. And the real-time data is transmitted to the display screen and the mobile phone for display. In the process of software design of the system, Keil5 is used as the programming software of this design program, AD is used as the drawing software of this design schematic and PCB, stc-isp is used as the burning software of this design program, and Visio is used as the flowchart drawing software of this design. Through the cooperation of hardware and software, the real-time monitoring and regulation of household related environmental parameters can be realized, and the livability of people’s living environment can be effectively guaranteed.
Key words: home environment monitoring; Sensor; Keil5; Single-chip computer; Measure and control.
目 录
摘 要
Abstract
第1章 绪论
第2章 系统设计方案
第3章 硬件设计
第4章 系统程序设计
第5章 实物测试
结论
参 考 文 献
致谢
附录