摘要
针对现有室内环境监测系统存在数据检测精度不高、响应不迅速、数据传输不稳定等一系列问题,本文设计了一种基于MQTT通信协议的无线室内环境实时监测系统。该系统以STM32单片机为控制核心,通过多种类型传感器采集室内的温湿度、光照强度、一氧化碳气体浓度及烟雾浓度数据,并利用MQTT通信协议实现无线传输,用户通过登陆微信小程序可以远程实时查看室内的环境状况。测试结果表明,该监测系统具有环境数据检测精度高、传输稳定等特点。
To solve the problems of existing indoor environment monitoring systems such as low data detection accuracy,slow response and unstable data transmission,we design a wireless indoor environment real-time monitoring system based on MQTT communication protocol.The system takes STM32 microcontroller as the control core,collects indoor temperature,humidity,light intensity,carbon monoxide gas concentration and smoke concentration data through various types of sensors,and realizes wireless transmission by using MQTT communication protocol.Users can view the indoor environment remotely and in real time by logging in WeChat applet.The test results show that the monitoring system has the characteristics such as high data detection accuracy and stable transmission.
作者
孙玉霞
王军敏
Sun Yuxia;Wang Junmin(School of Information Engineering,Pingdingshan University,Pingdingshan Henan,467000)
出处
《电子测试》
2022年第19期24-26,共3页
Electronic Test
关键词
室内环境
实时监测
MQTT通信协议
Indoor environment
real-time monitoring
MQTT communication protocol