Along with the development and application of computer networks, communications technology and sensor technology, our society tends to be more and more useful information and network, which is changing the way we work and live. People are increasingly looking into the comfortable, convenient, safe and smart of home environment, because of the traditional way of live is facing challenges. Therefore smart home is becoming the future direction of home life. On the basis of current market demand, the Smart Home environment control system has been designed based on STM32 micro-controller which is used to detect the temperature and humidity of environment indoor and to achieve the temperature and humidity of the remote control by the Android application. The system is divided into three parts:Android application, data collection terminals of temperature and humidity, and the design of fuzzy controller. In this paper, a program has been designed to eliminate the coupling of temperature and humidity indoor. After a long industrial prototype testing, the system is stable and reliable, which has good prospects. The main contents of this paper are divided into the following sections:First, The design of data collection terminal. The hardware of this system is based on STM32F103 micro-controller which is used to detect the temperature and humidity of environment indoor. Peripheral circuits is made up by the minimum system controller, the power supply circuit, the memory circuit, the peripheral driver circuit, the serial communication circuit, and Wi-Fi communication circuit; the software of the controller is based on MDK development environment which has achieved a real-time display and storage, remote command display, set the automatic monitoring system parameters and other functions; the WF-ESP8266 module is developed with mode AP, which has achieved the Wi-Fi wireless communications between client and the controller.Second, Research on the algorithms and PMV (Predicted Mean Vote) of the home environment. By the analysis of the fuzzy control system, the fuzzy controller and decoupling Controller for the home environment of temperature and humidity are designed,and the table of Fuzzy Control Inquiry based on MATLAB has been set up. Based on the index of PMV, the index of home environment comfort has to be set up, which is used to evaluate and control the environmental quality indoorThird, The platform and exploitative application of Google-Android. According to the practical requirements, interface and application software has been designed, which is based on the program of Eclipse+ ADT. The interface of the client is divided into two parts: landing registration interface and monitoring regulation interface. The communications between the main controller and client is by the way of Socket. |