摘要
物联网技术的发展,深刻影响着人们的日常生活。为了提高居家的安全性、便利性,对物联网通信和智能家居进行了研究,设计了一套基于消息队列遥测传输协议(Message Queuing Telemetry Transport,MQTT)的智能家居控制系统。设计思路是以STM32微控制器为核心,控制多种传感器获取环境中的温湿度、烟雾等环境信息数据;以ESP8266为网关,通过MQTT协议将相关数据发送到云平台;借助微信小程序实时显示室内环境信息,并控制室内灯及窗户等家具设备。测试结果表明,该设计可以预防危险情况的发生,满足智能家居控制的基本需求。
The development of Internet of Things technology has profoundly affected people’s daily life.In order to improve the safety and convenience of home,the Internet of Things communication and smart home were studied,and a smart home control system based on Message Queuing Telemetry Transport(MQTT)was designed.The design idea is to use the STM32 microcontroller as the core to control a variety of sensors to obtain environmental information data such as temperature,humidity,and smoke in the environment.The ESP8266 is used as the gateway to send relevant data to the cloud platform through the MQTT protocol.With the help of WeChat applets,real-time indoor environment information is displayed,and indoor lights and windows and other furniture and equipment are controlled.The test results show that the design can prevent the occurrence of dangerous situations and meet the basic needs of smart home control.
作者
李杭青
LI Hangqing(College of Electronic Information and Automation,Civil Aviation University of China,Tianjin 300300,China)
出处
《通信电源技术》
2024年第5期4-6,共3页
Telecom Power Technology