摘 要:针对目前智能家居系统不能直观地展示采集到的家居环境数据,人们难以在复杂无序的数据中发现其中潜藏的信息的现状,文章基于 STM32 单片机和 Node-RED 设计了一款智能家居监测系统。该系统包括数据采集端、云服务器端和数据可视化网页端。数据采集端以 STM32 单片机为核心,搭配环境数据传感器构成,通过 Wi-Fi 模块与云服务器通信。可视化网页基于 Node-RED 开发,以 MQTT 为通信协议与云服务器端通信。经测试,系统运行稳定,具有一定的应用价值。
关键词:STM32 单片机;Node-RED;智能家居;数据可视化
DOI:10.19850/j.cnki.2096-4706.2021.04.044
中图分类号:TP302.1 文献标识码:A 文章编号:2096-4706(2021)04-0171-05
Design of Smart Home Monitoring System Based on Data Visualization
LUO Hongliang,WU Jing,ZHOU Jinzhi,HU Xulin,Ni Yining
(School of Information Engineering,Southwest University of Science and Technology,Mianyang 621010,China)
Abstract:Aiming at the current situation that smart home systems cannot visually display the collected home environment data, and it is difficult for people to find the hidden information in the complex and disordered data,a smart home monitoring system is designed based on STM32 single-chip microcomputer and Node-RED. The system includes a data collection terminal,a cloud server terminal and a data visualization webpage terminal. The data collection terminal takes the STM32 single-chip microcomputer as the core,also includes environmental data sensor,and it communicates with the cloud server through the Wi-Fi module. The visualization webpage is developed based on Node-RED,and uses MQTT as the communication protocol to communicate with the cloud server terminal. After testing,the system runs stably and has a certain application value.
Keywords:STM32 single-chip microcomputer;Node-RED;smart home;data visualization
参考文献:
[1] 张欣 . 基于树莓派的智能家居控制系统设计研究 [D]. 大 庆:东北石油大学,2018.
[2] 魏晓曦 . 基于树莓派 3B+Movidius NCS 的智能监护安防 系统 [J]. 智能建筑与智慧城市,2020(12):20-22.
[3] 林学伟,严明忠 . 基于 STM32 单片机的智能家居控制系统 设计 [J]. 廊坊师范学院学报(自然科学版),2020,20(4):35-38.
[4] 傅鹏有,周金治,刘艺涵,等 . 无线智能情景 LED 照明 控制系统设计 [J]. 电视技术,2019,43(4):99-102.
[5] 谢作如,林淼焱 . 用 Node-RED 让物联网数据可视化 [J]. 中国信息技术教育,2019(11):78-81.
作者简介:罗洪亮(1999—),男,四川广元人,本科在读, 研究方向:计算机科学与技术。