摘要
在室内家居环境中进行空气质量监测时,往往有多个居室需要同时采集空气质量数据。利用消息队列遥测传输协议设计了一款分布式多节点室内空气质量监测系统。监测节点由DS18B20温度传感器、MQ-7 CO传感器与GP2Y1014AU微颗粒物传感器构成,且移植了RT-Thread实时操作系统。多节点监测数据通过nRF24L01数传模块汇聚至网关节点,再由WiFi数传模块ESP8266遵循MQTT协议上传至OneNET物联网云平台。云平台端可以实时查看各个监测节点上传的空气质量数据,亦可在云平台上控制与网关节点相连的4路继电器,以实现对家用电器的远程操作,并可将空气质量报警信息发送到用户手机。实验结果表明该室内空气质量监测系统运行可靠。
When air quality monitoring is performed in an indoor home environment,there are often multiple rooms that need to collect air quality data at the same time. Therefore,design a distributed multi-node indoor air quality monitoring system(AQMS)which uses the Message Queuing Telemetry Transport(MQTT)protocol. Transplanted with RT-Thread real-time operating system,the monitoring node is composed of DS18 B20 temperature sensor,MQ-7 CO sensor and GP2 Y1014 AU microparticulate sensor. Multi-node monitoring data is gathered to the gateway node through the nRF24 L01 data transmission module. The data then is uploaded to the OneNET IoT cloud platform by the WiFi data transmission module ESP8266 using the MQTT protocol. The cloud platform can view the air quality data uploaded by each monitoring node in real time,and can also control the 4 relays connected to the gateway node on the cloud platform to realize remote operation of household appliances and air quality alarm information can be sent to the user′s mobile phone. The experimental results show that the indoor AQMS designed operates reliably.
作者
曾恺昀
孙玉国
陈明玺
ZENG Kai-yun;SUN Yu-guo;CHEN Ming-xi(School of Optical-Electrical and Computer Engineering,University of Shanghai for Science and Technology,Shanghai 200093,China)
出处
《软件导刊》
2022年第2期138-143,共6页
Software Guide
基金
上海市大学生创新试验计划项目(SH2013042)。