| With the development of science and technology,the application range of electronic information and Internet of Things technology is becoming increasingly extensive.With the real needs of residents for high-quality life such as safety,comfort,and convenience,many smart home-related equipment and products have emerged in the market.The research and analysis of the market status quo and development prospects of the entire industry can be seen that the domestic market has not yet unified the standards for smart homes,and its products and equipment also have the disadvantages of high prices,expensive installation and use,inconvenient maintenance,and high maintenance costs.This also makes consumers choose to use smart homes there are certain obstacles.The system is based on the STM32 microcontroller,through the data acquisition of multiple functional modules to achieve environmental monitoring,the microcontroller obtains information from the sensor and transmits it to the cloud platform through remote communication.The temperature and humidity in the room is monitored by the data collected by the temperature and humidity sensor DHT11,and the measured data is displayed on the OLED screen;the natural gas content in the indoor air is detected by the MQ2 gas sensor;the presence of the flame is sensed and reacted by the flame/fire sensor LM393 module.The wireless transmission module used in this design is the ESP8266 module.ESP8266 EX provides a complete and self-contained Wi-Fi networking solution that can be used to host applications or offload Wi-Fi network functionality from another application processor.Relays are used to protect the electrical system and reduce damage to connected devices within the system due to overcurrent/voltage or other anomalies that occur within the system.After connecting to the network through the cloud platform tool,the upload data is judged by the master control,and the alarm signal and various data are uploaded to the cloud platform,the user can view the information through the web page or mobile phone,and issue instructions to the master to complete the adjustment of various functions.The system has been evaluated in practice and has stable and reliable performance.While bringing convenience to users,it also realizes the intelligent and automated management of the system. |