With the improvement of people’s living standards and the development of science and technology,smart home products have been gradually entered the people’s daily life from the laboratory.At present,home lighting system with systematic work has appeared on the market,and the trend of replacing the traditional home with smart home is becoming more and more obvious.,the trend of smart homes replacing traditional homes has become more and more obvious.However,due to the smart home market is not mature enough and lacks a unified protocol,the products of different companies are similar but not fully compatible,resulting in repeated reuse of the same sensor in the same space,cause functional redundancy,increased energy consumption and cost,has caused a certain negative effect to the further popularization of smart home.Besides,because of the increasingly complex interior decoration materials and ’building environment,there is an urgent need in the market for a more compatible indoor environmental monitoring system with multiple sensors.In response to the above situation,this paper proposes a solution for real-time monitoring of indoor environment through wireless network technology,sensor technology and computer technology.The system designed by this scheme is mainly divided into two parts:the host system and the slave system.The host system includes a host device,which is mainly responsible for receiving data uploaded by the slave system,and provide display and control interface.The main control chip of the host device adopts S TM32F103 RCT 6 single-chip microcomputer produced by STMicroelectronics,which mainly includes display circuit,WiFi communication circuit and GSM circuit;The slave system consists of several slave devices with the same structure,and is mainly responsible for environmental detection and real-time uploading of environmental data.The main environmental parameters affecting user safety and comfort in the current smart home products on the market include temperature,humidity,smoke,light and sound.Therefore,this paper use temperature and humidity sensors,smoke detection sensors,illumination sensors and sound detection sensors to detect indoor environmental parameters in real time.The slave device adopts the STC12C5A60S2 Single-Chip microcomputer produced by STCmicro,which is rich in interface,as the main control chip.The slave equipment provides multiple 5V and 12V peripheral interfaces,which can be connected with external humidifiers,emergency lights and other peripherals according to the needs to achieve environmental improvement or provide emergency lighting.Wireless communication is established between the host system and the slave system through the WiFi chip ESP8266 to form a wireless network.The system designed in this paper can run steadily for a long time and providing stable and reliable data through many tests.Their simple and clear operation interface,rich types of sensors,strong compatibility of wireless networks and low development cost makes them good use as an environmental monitoring system alone,as well as in collaboration with other smart homes.It has strong practical value. |