当前位置>主页 > 期刊在线 > 电子工程 >

电子工程2019年14期

基于微信小程序的远程空调遥控系统
沈沛雨,索朝举,徐宁,周珩
(南京工程学院 信息与通信工程学院,江苏 南京 211167)

摘  要:本文设计了一种基于微信小程序控制的智能空调遥控系统,实现了通过微信小程序对多种型号的空调的开关、模式、温度等的控制,并可以通过学习模式录入库以外型号的空调。该系统由微信小程序、ATK-ESP8266 Wi-Fi 模块、红外遥控模块、云服务器以及MCU 模块组成。微信小程序通过MQTT 协议将命令发布到云服务器端,同样ATK-ESP8266 Wi-Fi 模块也由MQTT 协议接收命令,经由串口发送给MCU,MCU 将命令进行处理后再控制红外控制模块遥控空调。此系统最大的特点就在于仅需使用日常所用的微信就能遥控空调,简单快捷,成本较低。


关键词:微信小程序;MQTT;ESP8266



中图分类号:TP23         文献标识码:A         文章编号:2096-4706(2019)14-0031-03


Remote Air Conditioning Remote Control System Based on WeChat Applet

SHEN Peiyu,SUO Chaoju,XU Ning,ZHOU Heng

(School of Information and Communication Engineering,Nanjing Institute of Technology,Nanjing 211167,China)

Abstract:In this paper,a smart air conditioner remote control system based on WeChat applet control is designed,which realizes the control of switch,mode and temperature of various air conditioners through WeChat applet,and can enter the air conditioner of the model other than the library through the learning mode. The system consists of a WeChat applet,an ATK-ESP8266 Wi-Fi module,an infrared remote control module,a cloud server and an MCU module. The WeChat applet sends the command to the cloud server through the MQTT protocol. Similarly,the ATK-ESP8266 Wi-Fi module receives the command from the MQTT protocol and sends it to the MCU through the serial port. The MCU will process the command and then control the infrared control module to remotely control the air conditioner. The biggest feature of this system is that it can be used to remotely control the air conditioner only by using the WeChat used daily,which is simple,fast and low in cost.

Keywords:WeChat applet;MQTT;ESP8266


参考文献:

[1] 裘凝远. 景区区域人流量实时显示的微信小程序设计 [J].现代商贸工业,2019,40(10):187-189.

[2] 郭书军.ARMCortex-M3 系统设计与实现——STM32 基础篇 [M]. 第2 版. 北京:电子工业出版社,2018.

[3] 张洋,刘军,严汉宇,等. 原子教你玩STM32(库函数版) [M]. 第2 版. 北京:北京航空航天大学出版社,2015.

[4] 沈华刚,吕刚磊. 基于ESP8266 串口Wi-Fi 智能插座设计 [J]. 电子世界,2019(7):202.

[5] 张加书,韩跃平,张瑞珍. 基于物联网云平台的空调源码库 [J]. 测试技术学报,2019,33(3):249-254.


作者简介:沈沛雨(1997-),男,回族,河南洛阳人,本科,研究方向:电子技术应用。