Intelligent Home Control System Based on Single Chip Microcomputer

Intelligent home as a way to achieve the realization of the family information has become an important part of the development of social information, Internet of Things because of its huge application prospects, will be smart home industry in the development process of a more realistic breakthrough in the smart home industry development has great significance. This article is based on easy to implement, easy to operate, close to the use of the design concept, the use of STC89C52 microcontroller as the control core for the control terminal, and including infrared remote control, buttons, Web interface, including multiple control sources to control household appliances. The second chapter of this paper describes the design of the hardware and software part of the specific implementation, the fifth chapter is based on the design of a good function to build a specific example of the environment.


Introduction
Smart home is one of the most popular topics in modern society. Its goal is to realize intelligent control of household appliances through information and communication technology such as network, so that it can run according to people's setting work, regardless of distance. Intelligent and remote control is the smart home of the two major characteristics. At present, more and more institutions and individuals have begun to study the smart home. With the development of network technology, especially the development of wireless networks, networked intelligent home system can provide remote control, home appliances (air conditioning, water heaters, etc.) control, lighting control, indoor and outdoor remote control, curtain control, burglar alarm, telephone remote control Programming timing control and computer control and other functions and means to make life more comfortable, convenient and safe.

The concept of smart home
Smart Home (Smart Home) is a home as a platform, both building, automation, intelligent in one of the efficient, comfortable, safe and convenient home environment. Home intelligent technology originated in the United States, the most representative of the X-10 technology, through the X-10 communication protocol, the network system can achieve the sharing of resources in various devices. Because of its simple wiring, flexible, easy to expand and widely accepted and applied. So far, X-10 technology products have sold more than 200 million, only in a country in the United States, there are more than 6 million families in use. Automated smart home is no longer a passive building, on the contrary, has become the best use of time to help the owner of the tools to make the family more comfortable, safe, efficient and energy saving.

Intelligent home control system functions
The main functions of the intelligent home control system include two aspects: automatic control of home equipment and home security. The automatic monitoring of home equipment, including electrical equipment, centralized, remote control, remote off-site (by telephone or Internet) monitoring, control and data collection.
(1) Monitoring and control of household appliances, in accordance with the requirements of the pre-set procedures for water heaters, microwave ovens, video and other household appliances to monitor and control.
(2) Data collection, measurement and transmission of heat meters, gas meters, water meters and watt-hour meters According to the requirements of residential property management, the data acquisition procedures are set up. The amount of heat meters, gas meters, water meters and watt-Automatic data collection, measurement, and remote acquisition results will be sent to the residential property management system.
(3) The air conditioner monitoring, regulation and control, in accordance with the pre-set procedures, according to time, temperature, humidity and other parameters of the air conditioner to monitor, adjust and control.
(4) Lighting equipment monitoring, adjustment and control in accordance with the pre-set time program, respectively, the room lighting equipment on and off control, and can automatically adjust the illumination of each room.
(5) Control of the curtain, in accordance with the pre-set time program, the curtain of the opening / closing control.

Overall introduction
This design to STC89C52 chip as the control core, temperature, humidity and other sensors for environmental information collection source to Web control as a supplement to produce a network of air conditioning monitoring system. In the original mechanical key switch on the basis of the use of wireless remote control and Web pages remote control, to control the air conditioning units (such as fans, humidifiers, air valves, etc.), to achieve a long-range, multi-angle real-time control of air conditioning units The In addition, in this design, the use of a variety of sensors want to combine intelligent according to the sensor to collect the value of automatic control, such as automatic switching fan, intelligent adjustment of chilled water, automatic adjustment valve opening degree. And can achieve fault diagnosis, provide alarm, data real-time data and historical data query and Excel table output.

System design
According to the design requirements, the system provides a core control module, Web server, Web HTML module, data acquisition module, relay module, key module, alarm module, and so on.

Functional design
3.3.1. Multi-source control. In order to meet people's high quality and convenient life needs, the system uses multi-source control, namely, key control, Web page remote control, automatic control system, these three kinds of control combination. Which Web page remote control, is to leave the server after the Internet through the Internet running on a specific server site, and then to view and manage the current air conditioning operation, just a few pages on the corresponding button, you can easily open, Close, control the home of the air conditioning unit, has reached the remote control function. System automatic control is the core part of the system can be based on the external sensor to collect environmental information (such as temperature, humidity, etc.) and the user can make people can be more comfortable for comparison, and then according to the results of the corresponding equipment Adjust the control to maintain a comfortable value, to provide users with a good temperature and humidity environment.

Temperature control.
Through the temperature sensor ( Figure 1) to collect the current temperature information, sent to the acquisition module for conversion, analysis by the MCGS configuration software, by comparing with the default value of the chiller to determine the water valve opening, so that room temperature In a constant range. At the same time for the convenience of control, MCGS configuration software will be collected to send the temperature value to the LCD1602 LCD screen displayed.

Humidity control.
Through the temperature sensor to collect the current temperature information, sent to the acquisition module for conversion, by the MCGS configuration software analysis, by comparing with the default value, determine the humidifier water valve opening, so that indoor humidity maintained at a constant range. At the same time for the convenience of control, MCGS configuration software will be collected to send the temperature value to the LCD1602 LCD screen displayed.

Air valve opening control.
Whether the valve is a valve or switch valve, depends on the project needs, the vast majority of projects are using adjustable air valve, but the wind pump is very power consumption, most of the frequency should be more energy conversion. The design of only one fan, both fresh and return air, then through the air valve to adjust the new -return air ratio is desirable. According to the temperature in the fresh air channel, the humidity sensor and the temperature in the return airway, the humidity and humidity of the humidity sensor, and the return air temperature and humidity, adjust the opening of the new wind electric damper and return air electric damper, The wind ratio is controlled at a predetermined value. Under different weather conditions, should choose a different proportion of fresh air return to achieve energy efficiency, reduce system energy consumption.

Mode control.
Mode control, that is, the concentration of electrical appliances together to control, such as setting the temperature, chilled water or hot water, which is if you manually switch to one by one is more complicated, if the summer mode, chillers and chilled water set to A model that, when there is such a need to start this model, so that the cumbersome control will become a step in place, and this control mode with the city to achieve it is also easier. But the mode is not so much, so as not to make the operation of the system becomes more complex in the specific design only need to use several cases (scenes) can be set to a fixed mode to control, in this design hand Mode, summer mode, winter mode, where the hand auto is the MCGS configuration software according to the preset and the sensor automatically controls the air conditioning unit. Summer, winter mode is based on different weather conditions set indoor temperature and humidity, chillers are through chilled water or hot water.

Humidity sensor module
Humidity collection selected th100hum humidity sensor, which features are as follows: (1) In connection with the microprocessor only need a mouth line to achieve the microprocessor and th100hum two-way communication.
(3) Support multi-point network function, multiple th100hum can be connected in parallel on the only three lines, up to only 8 in parallel, if the number is too much, will make the power supply voltage is too low, resulting in signal transmission instability, Multi-point temperature measurement.