📜 ⬆️ ⬇️

Smart home start

The idea of ​​creating a smart home (UD) originated in the head long before the appearance of your own house (apartment). From time to time I studied articles about the smart home, looked for various solutions online and tried them on my own vision of the smart home. Gradually, a picture of the future project emerged in my head. And when the long-awaited moment came, the apartment was acquired, I began to put my ideas into practice. I am a practitioner by nature, it’s easier for me to start immediately doing something in the gland without writing, unnecessary words, plans and calculations on paper, so the whole project was in my head and constantly adjusted.

The choice was made at 99% in the direction of wired devices, plus all devices should be as low as possible. Initially I planned to do everything on microcontrollers, but after learning about the existence of the Arduino, the choice fell on her, because simplified manufacture of end devices, it was not necessary to make the board yourself.

During the repair phase, a twisted pair cable was laid in all possible directions - lighting, windows, doors, radiators, water meters, heat meters, an electric meter, intercom, TV, computer, projector, air conditioning, access shield, motion sensors, balcony, all switches and sockets ...
')
Power wiring was redone. I refused the switchgear, and all the wiring from each chandelier, switch, sockets are tightened instead of installing an electrical panel. Additionally, the power wiring is stretched to each window, to power the controllers and power supply for roller blinds. In total, the two-room apartment took about 1 kilometer of various wires.

Electrical board


The heart of the system is the server based on the Asus EeeBox nettop, on which iobroker runs . All controllers communicate with the server using the MQTT protocol.

In each window there is a room controller built on the Arduino UNO + Ethernet Shield W5100, each of which collects the following information:

Controller in the window frame





The lighting is controlled by a separate controller built on the Arduino Mega + Ethernet Shield W5100.

Lighting Controller Assembly


The switches are the usual Schneider Electric reversible switches from the Unica series with a redesigned backlight for 5V. The backlight is powered by a field effect transistor from the PWM lighting controller (CO).

Switch


Alteration of the backlight switch under 5V


Switches commute 12V which through the divider arrive at the input of the CO. The KO program inverts the output state when the switch is switched, i.e. if the light is on, switching the switch will turn off the light and vice versa. The disadvantage of this decision is that the switches do not have the on / off position, and one of the advantages is the easy organization of the emergency mode, in which the switches switch the lighting relay (Finder) directly bypassing the CO.

Emergency mode fee


Lighting Control Relay


In the bathroom, in addition to the usual switch, there is a visitor counter on the IR sensors. If visitors are greater than 0, the light is on.

Visitor counter to the bathroom


Additionally, management and control of individual devices is organized:


The management of the DD is organized through the web from both a computer and a phone or tablet. Plus, the management of voice commands via the phone using the Tasker application is organized.

Automation Cabinet
Work chaos.



Some more photos




PS This is the first iteration of my DD and not all is completed yet. If some moments will be interesting to readers, then I will reveal in more detail in the following articles.

Part Two - Bathroom Visitor Counter

Source: https://habr.com/ru/post/371685/


All Articles