






摘" 要:針對人們對家居環境的智能化需求,實現對家居實時監測,設計基于ESP32與微信小程序的智能家居控制系統。該系統采用 DHT11、MQ2、MQ5和MQ7傳感器分別對溫濕度、CO、液化氣和煙霧的濃度進行監測。以ESP32作為主控芯片和Wi-Fi通信模塊進行數據傳輸,傳輸到OneNet云平臺及微信小程序進行監測和控制。經測驗,該系統具備成本低廉、功能穩定等優點,滿足實際應用需求。
關鍵詞:物聯網;OneNet;ESP32;微信小程序;智能家居
中圖分類號:TU855" " " 文獻標志碼:A" " " " " 文章編號:2095-2945(2024)25-0041-04
Abstract: In order to meet the intelligent demand of home environment, the real-time monitoring of home is realized, and the smart home control system based on ESP32 and WeChat Mini Program is designed. The system uses DHT11, MQ2, MQ5 and MQ7 sensors to monitor the concentration of temperature and humidity, CO, LPG and smoke. ESP32 is used as the main control chip and Wi-Fi communication module for data transmission, which is transmitted to OneNet cloud platform and WeChat Mini Program for monitoring and control. It has been tested that the system has the advantages of low cost and stable function, and meets the needs of practical application.
Keywords: Internet of Things; OneNet; ESP32; WeChat Mini Program; smart home
在人們的生活質量不斷提高的今天,家居環境監測也日益受到關注。與此同時,隨著社會群體居住方式、居住理念的改變,人們對家居環境的智能化需求越來越高,基于物聯網體系的智能家居系統就應運而生。基于物聯網體系的智能家居系統利用互聯網、物聯網、大數據等新一代信息技術,將家居生活中與照明、安防、環境控制和家電控制等相關的所有設備、場景、傳感器互聯互通,實現智能化管理和控制。
本文提出了一種新穎的智能家居控制系統,它以ESP32單片機和微信小程序作為系統組成框架,ESP32單片機通過安裝在家居的一些智能傳感器實時采集溫(濕)度、有害氣體(一氧化碳、液化氣)的濃度和家用電氣動作狀態等信息,支持微信小程序任意時間任意地址顯示這些信息,同時支持用戶根據自己自身的環境體驗合理配置環境參數的監測閥值,實現符合自己家庭的環境參數監測方案,在手動模式下,用戶還可以通過向云平臺發送控制指令,遠程操控家里的電器設備,干預家居環境參數。……