摘要
长期以来,火灾对人民的生命财产安全造成了极大威胁。设计一种基于STM32单片机的低成本、可靠性高、稳定性强的火灾报警系统,该系统主要由STM32主控芯片、DHT11温湿度传感器、MQ-2烟雾传感器、LED、蜂鸣器、按键模块、ESP8266模块等组成。通过烟雾传感器采集到烟雾浓度的数据以及通过DHT11采集到温湿度的数据,然后设定烟雾浓度以及温湿度的阈值,一旦检测到的数据高于所设定的阈值,则触发声光报警,同时还可将数据通过Wi-Fi模块发往阿里云物联网平台进行显示。经测试,该系统可有效地检测周边环境数据并上传到云平台,且在数据异常时发出警报,达到功能设计要求。
For a long time,fire has been a great threat to people’s life and property safety.A low-cost,high reliable and stable fire alarm system based on STM32 single chip microcomputer is designed.The system mainly consists of the STM32 main control chip,a DHT11 temperature and humidity sensor,an MQ-2 smoke sensor,LED,a buzzer,a button module,and an ESP8266 mod-ule.The smoke concentration data is collected through the smoke sensor and the temperature and humidity data is collected through DHT11,and then set the threshold for smoke concentration and temperature/humidity.Once the detected data is higher than the set threshold,the sound and light alarm is triggered,and the data can be sent to Alibaba Cloud Internet of Things plat-form for display through the Wi-Fi module.System tests have shown that the system can effectively detect the surrounding envi-ronment data,upload the data to the cloud platform,and send an alarm when the data is abnormal,which meets the functional design requirements.
作者
王强强
李玉丽
WANG Qiangqiang;LI Yuli(Jilin Jianzhu University,Changchun 130118,China)
出处
《技术与市场》
2024年第9期57-62,共6页
Technology and Market