With the rapid development of science and technology,people’s living standard has improved greatly.Therefore,the humans consumption concept has changed accordingly.People begin to pursue a higher standard of life and smart life is no longer a dream.In this context,smart home technology is improving with the rise of the Internet.The smart home system is a technical product which combines various technologies and finally realizes a smart life.With the rise of Internet of Things technology,the design of smart home system has reached a new level.The mutual communication between the modules of smart home system is realized in a wired or wireless manner,thereby achieving the aim of controlling the various modules in the system,and finally making the smart residential life more comfortable and secure.With the development of Internet technology and the popularization of smart mobile devices,the remote control of smart home through smart mobile devices has become a main control method.There is a kind of "cloud + end"smart home design mode with the emergence of cloud service.The cloud service,as a medium for data storage,realizes the transmission of remote data.In this paper,the author designs a smart home control system based on Android and realizes the remote monitoring and control of the mobile phone to home devices by using the cloud server and the WiFi wireless data transmission technology.Firstly,taking the STM32 single-chip microcomputer as the core,the system realizes real-time collection of indoor temperature and humidity by the DHT11 temperature and humidity sensor module,the monitoring of the concentration of gases,including liquefied gas,butane,propane,methane,alcohol,hydrogen and smoke,etc,by the MQ-2 sensor,the monitoring of the fire by the flame sensor module,the monitoring of the invasion by the human infrared sensor module,the alarm by the buzzer,the monitoring of the rain by the rain sensor module,and the switch of the window by a micro and speed-adjustable DC Motor.Secondly,the system uses the cloud server and the WiFi module to realize the remote transmission of the data.Finally,the design of the Android mobile phone is carried out.Various monitoring and control interfaces are developed and data interaction between the mobile phone and the home hardware devices is completed through the cloud server,realizing the function of remote monitoring and control of the smart home devices.The system has the function of the real-time monitoring of indoor temperature,humidity and air quality and fire and the function of giving an alarm once there is human intrusion.The system also has the function of remote control of indoor light and window switch,which provides a safe and comfortable living environment for the user. |