Easy DIY a home smart door and window control system

I. Project Overview

1.1 Introduction

With the advent of the information age in the 21st century, social informationization and home intelligence have also shown a booming trend. More and more families are pursuing high-quality, high-tech comfortable and safe home life, fully enjoying the information age. Bring the convenience of life. As a sub-system intelligent door and window of the smart home system, based on the traditional house, the sensor technology, computer technology, modern communication technology and automatic control technology are comprehensively utilized to realize the collection, transmission, processing and control of various information of doors and windows. Safe and comfortable home environment is the basis and premise for realizing home intelligence, and doors and windows serve as a gateway for family and the outside world. It plays a key role. Realizing the intelligence of doors and windows is the first step and a very important step for smart home. .

1.2 Project feasibility analysis

In order to make the home life more comfortable and safe, the AVR32 is used as the main control chip, and the multi-channel sensor is integrated to break through the traditional anti-theft door and window mode. Considering the safety factors of indoor and outdoor environment, a smart door and window based on single-chip system is designed. The main signal acquisition unit with CO, illumination, formaldehyde and temperature sensor is used to illuminate electric lights, air conditioners, ventilation windows and electric drives. The window is designed for the joint commissioning experiment of the actuator.

1). This project plans to use the EVK1100 development board based on Atmel AVR32 microcontroller as the hardware platform. The platform has the following advantages: First, the GPIO pin can be easily extended for each execution module driver. Secondly, there are up to two serial ports on the development board, which makes it easy for us to debug each specific module. Once again, the modules on the development board already have some of the modules (light sensors, temperature sensors, LCD liquid crystal displays, buttons) required in the design of the system, which can reduce the content of hardware design and speed up the progress of design.

2). Other parts that need to be used in the intelligent door and window system, such as: lighting circuit (can be realized by building a simple model), ventilation window and controllable doors and windows (can be driven by DC motor), environmental monitoring sensor (current process comparison) Mature, can be easily applied).

Second, the demand analysis

2.1 Functional requirements

(1) Real-time display of indoor living environment by detecting indoor CO concentration, formaldehyde concentration, humidity and light intensity.

(2) The range of safety parameters preset by the button.

(3) When the concentration of co exceeds the threshold parameter, the switch of the ventilation window is intelligently controlled.

(4) When the light intensity is too weak, detect the light intensity outside the window, intelligently choose to open the curtain or drive the lighting circuit in the room through the single-chip microcomputer. Similarly, when the light intensity is too strong, the smart choice is to close the curtain or turn off the lighting circuit.

(5) When the temperature is too high or too low, the air conditioning control circuit is activated to drive the operation of the air conditioner.

(6) Real-time monitoring of indoor living environment. Real-time adjustment of equipment operation.

Figure 1 System Architecture

2.2 Performance requirements

Accuracy of the light sensor: ±5% Range: 10-2000Lux

CO resolution: 0.05 ppm

Formaldehyde resolution: 0.05 ppm

Temperature sensor accuracy: ±0.5% FS

Third, the program design

3.1 System function realization principle

Figure 2 block diagram of hardware structure

3.2 Hardware platform selection and resource configuration

Hardware platform: AVR EVK1100, resource configuration: light intensity sensor, co sensor, formaldehyde sensor, DC motor, lighting drive circuit, etc.

3.3 system software process

Figure 3 program running flow chart

3.4 System Expected Results

It can realize the monitoring of the current environment, and can intelligently adjust and converge to the preset parameters of each execution module according to the preset parameters.

590W Medical Power Supply

590W Medical Power Supply,590W Medical Device Power Supply,590W Medical Power Adapter,590W Rade Power Supplies

Shenzhen Longxc Power Supply Co., Ltd , https://www.longxcpower.com