Automated Window Opening/closing

1.1K13

Intro: Automated Window Opening/closing

Background

After installing plastic windows, it became stuffy, the micro-ventilation mode did not save, through a more open window it became noisier (someone shouted loudly in the morning, or talked easily in the evening), and in winter it was also noticeably cool.

Idea

Affordable automation of the closing element control process, in other words, opening and closing the window according to the conditions of interest to us - noise, heat, time of day, illumination, air freshness (ventilation).

Retreat

The response to light is not implemented. The type of sensors used in my implementation is not fundamental - it just happened :)

STEP 1: Logic

(A/M)(O/C)W - auto/manual open/close window

(N/V)(O/C)(A/M)W - noise/vent open/close auto/manual window

Here is a starting state diagram. During the experiments, a controlled time lock was added for the transition from one state to another. Additional transitions. Correction of the fact that at the moment it is not possible to accurately restore the state of partial opening of the window set manually.

STEP 2: Scheme

The assembly scheme is quite simple. The shields are neatly connected to each other. We connect the connectors for the power supply and the actuator. We connect our (just) two sensors. Attention, the voltage should be connected to the motor shield.

STEP 3: Build

It's quite simple. The actuator automatically stops in the extreme positions. Based on this, it is necessary to select its size and place of fixation.

Fastening to the window can be carried out through a double-sided sticky foam tape, it is quite reliable and can be subsequently peeled off.

The distance of the sensor from the window can be adjusted the speed of reaction to temperature changes associated with its condition.

STEP 4: Usage


The program works in automatic mode. Various time and temperature constants are specified in the code. In manual mode, you can control the opening, switch to automatic mode, choose to ignore the temperature sensor and/or noise. Switch the screen backlight.

Software

Arduino IDE : 1.8.15 for Windows

Library: Adafruit_Motor_Shield_V2, Arduino-Temperature-Control-Library

Sources: Climat.zip

STEP 5: Conclusion

The project turned out to be very interesting both from a technical point of view and from a logical one. There were a lot of interesting details, solutions and situations-for an average book :) And it still has a lot to expand.

If you have any suggestions for mutually beneficial cooperation , I will be glad.

If you just have questions about the material, ask, I will answer.

2 Comments

Thank you, I think this can really be useful.