Bathroom renovation portal. Useful Tips

From home automation and smart homes in general to a specific example. Smart House

The main reason that home automation systems have not yet become so popular is the emphasis on lighting, which is usually done when they are promoted. After all, flashing light (like LEDs on Arduin) without getting up from the couch is self-indulgence, which has no practical value and pushes people away from serious thoughts about the implementation and use of home automation systems in their homes and apartments. No one needs to blink light (which is usually 90% of the functionality), but for example, it is convenient to control the heating individually in each room and saves energy = money. The sky-high prices for the (penny at cost) components of ready-to-sell home automation systems, together with the prices for their integration, only add fuel to the fire. I hasten to assure you that the most expensive component will be the $ 20 Arduino Mega. If we consider the issue as a whole, then I see only the following list of tasks that makes practical sense to centrally automate:
> climate control of temperature (heating / air conditioning) and humidity (humidifier / dehumidifier),
> control of natural light (blinds, shutters, awnings)
> and management of watering of lawns, flower beds and lawns around the house (if there are any and they still need to be watered).
From decentralized systems, it is convenient to have a local (without central control 1-2 sensors that control directly the backlighting), triggered by motion (presence) sensors, low-power LED illumination of stairs (sometimes the floor) and parts of tables in the kitchen, which are shaded from conventional ceiling lighting by hanging cabinets and shelves. The same illumination, in combination with the above, is indispensable at night when necessary, without waking up anyone and, first of all, yourself, get into the kitchen (and cut off something there from something and eat it with no one sharing) or into another institution without stumbling about prudently scattered children's toys. It also makes sense to turn on the main lighting ONLY in technical rooms: wardrobes, closets, garage, laundries, etc. Motion detectors and centralized systems are not practical to use for primary lighting in residential areas. External and decorative festive lighting at home is most conveniently turned on from cheap ready-made blocks with light sensors and / or timers. Real security systems connected to response services (not just sensors and web cameras scattered around the house) usually does not make sense to mix with smart home systems for many reasons.

Thus, let's start with the most relevant. An ideal object is heating that can be controlled for example: electric (batteries on wheels in the socket and wall batteries) and centralized or not very heating of a private house. In my example, we will consider working with a Thermo Pomp system (Heat Pump in North America) with oil heating by means of direct connection to the existing Control Unit (thermostat) and additional devices. In the first version of the system, I used the device and sockets of the X10 protocol. But unfortunately, they did not perform well, due to the slow interface and very loud bouncers when switching, which woke up everyone at home. Later I switched the system to radio sockets, which turned out to be much simpler and quieter than x10. These plugs are available in a huge assortment of radio frequencies and voltages. All this is applicable to a huge variety of other systems. It all started with the fact that my friend, along with a neighbor, unobtrusively dripped on my head about the huge role of a wonderful miracle - Arduino in modern society and that I, as a person who knows how and who loves to hold a soldering iron, is simply obliged to get infected with this Arduino mania as soon as possible. I waved it off in every possible way and said that the field of practical (not robot toys) use of her at home is very doubtful and based on a powerful microcontroller to make consistently lit LED rulers to illuminate the steps of the stairs (instead of one shift register and generator) it's just a sparrow gun, and the rest is pampering ... But still, they managed to plant the grain of Arduino in my head, and like all the seeds with the arrival of spring and on the approaches of summer, the sprout began to break through. I don't like hobby projects for the sake of the projects themselves. Some practical side must be present, and even more so resource ($ and time) capacious projects for a family person must still have a high WAF (Wife acceptance factor) or, as my Dad says, it is easy to legalize it.

And as always, laziness was the engine of progress. We sat a little later than noon on the veranda, the sun was pleasantly hot, and at the same time, my son was sleeping in the bedroom on the upper floor, and judging by the Chinese thermometer for $ 2 (which we had to reach and look at without waking up his son) the temperature was over 26. So now we need to go into the living room and turn on the central air conditioner, and then we also need to turn it off so that it does not turn on every time the temperature rises a little. It is especially unpleasant to do this in the summer at night, having frozen under a light blanket, you have to jump up and again, without waking up all household members, run into the living room to the console and cut down this achievement of the last century. Then I realized that it was time to stop such an outrage and call a friend with the words "Where is your vaunted Ardunya, Give her here right now, we'll see what she is capable of!" I must say right away that I did not choose it at all and did not think that it would turn out to be so worthless (for example, in working with strings), and even out of anger and powerlessness to fight it, I almost moved in the middle of the project to STM32. In the end, he still stayed with her, but first things first.

To make it easier to understand why everything was done this way and how you can spread my experience and best practices on your bread, let's start with a description of what I have / had at hand:
1) Private house in Canada (I would like to say that it is mine, but of course it belongs to the bank and no matter how absurd it sounds, it is not even profitable to have it fully paid at current rates) Built in 1959, as they are called here Split Level those house two-storey, but half of it is shifted vertically relative to the other half by the floor of the floor.
2) Arduino Uno (later, due to the small number of I / O for X10 and radio, Mega was required)
3) expensive and native Ethernet Shild. I could not start something and find an adequate library for ENC28J60
4) Desire, time and some money.
As is customary here, the bedrooms are on the top floor and for me it turns out to be on the floor above the living room where there is an ominous control panel for the heating and cooling system bolted to the wall. Here such systems are called HVAC (heating, ventilation, and air conditioning), in fact, this is an ordinary huge (tens of thousands of BTUs or they measure them here in tons of something) split air conditioner, an external heat exchanger and compressor of which are on the street and inside the heat exchanger is built into central ventilation system, which takes air from the living room floor level with a one and a half kilowatt fan, drives it through two heat exchangers (one to the air conditioner, the other from a fuel oil or gas burner) and drives it through a system of ducts to each room. Convenience and the very name of the heat pump is due to the fact that this device can drive freon in both directions and, accordingly, not only cool but also heat the air in the house. It should be noted that he can heat it more or less effectively only if it is warm enough outside 0 or -5 (depending on the model and design). If it is cold, then the heat pump will not work, and for this, you just need a tank with fuel oil or gas.

I started my project and ambitions small, so let's and we will analyze how this HVAC is made and how to operate it. In fact, it turns out that the devil is not so terrible. One of the conveniences is the liquid standardization of everything domestic and not very much in America, this allows you to breed hedgehogs with snakes according to an open, simple (sometimes too much) and well-known (usually ancient, condo) protocol / standard. In our case, the system itself (the burner fan, heat exchangers, you can buy one manufacturer, the air conditioner of the second, the humidifier from the third, and the Control Unit for all of this from the fourth. Honestly, I don’t know if similar devices are also called / controlled in Europe, but I think that everything is either licked or very similar As far as I understand, such systems are already in Russia and they are transported from anywhere / cheaper, so you have a great chance of encountering such a system.Let's take a look at the diagram of a typical system connection before we start crashing into the system.

As we can see, almost everything is clear at a glance. The only thing that needs to be explained is that the control unit is powered and the heat pump itself is controlled by variable 24 volts. which are supplied from the input transformer R and C. Line C is common and always connected. Accordingly, when R is applied (closure) to Y, O, W or G, it turns on, respectively. block. We will build on this. So if they include, then why are we worse? We will make it so that our new system will complement the existing one. Those control can be carried out from the old remote control and controller as before, but only when necessary, the Arduino can disconnect the old system from control and take the furrows in its own hands and then give them back.


And we put them so that without power and generally disconnected, they retain the same design. R-0 disables the standard control module and transfers control to our Arduin. R-1-4 applies the correct voltage to the corresponding line. This control voltage R is applied to each relay. green wire... Of course, it's good to manage, but the system is serious and if we accidentally or not really turn on something wrong or in the wrong combination. For example, the heat exchanger will warm up and the fan will not drive air and remove heat from it, it can overheat and lead to a fire, but we do not need it at all. To avoid situations like this, let's do a triple defense. And so the first bastion will be the voltage sensors on each line S1-4 (there should be 4 of them).


They are a diode, two resistors (divider) and a small electrolyte. It can be a hinged assembly as shown in the photo. As a result, we can in Arduin know whether there is actually voltage on each of the control lines or not. Correspondingly, if the current state of the control lines (Y, O, W, G) does not correspond to what it should be, we display an error code and turn off the system. The next bastion is our additional temperature sensor in the heat exchanger chamber (plenum sensor). If it is too hot or cold there (close to 0C), then we again display the code and turn off the system. Obviously, it is impossible to power the relay directly from the outputs of the arduina, therefore, you must either pile up a transistor for each relay or buy a ready-made module with several relays and transistors on one board. I buy 99% of the components on Ibei. For example, the ibey is full of such 8 channel modules (8 Channel Electronic Relay Module) for about $ 9. or you can buy 4 + 2 (since in fact we only need 5 and one spare)

I used Chinese digital DHT22 as temperature and humidity sensors. which have proven themselves well. They only need three wires +5, GNd and Data. The wires can be long enough without loss of accuracy or signal. One sensor is thrown out into the street in the shade and under a canopy from direct moisture. One sensor in the house.
In a house already built many years ago, usually the biggest problem is getting new wires, so I tried to make the most of the current wiring. There are several libraries for DHT22. I had problems with everyone except this one. I put the internal DHT22 next to the wall-mounted controller. If in your house, as in mine, there was once an HVAC control system, then you should have as much as a 6-core cable going from the control unit to the place where the remote control itself with the indicator and buttons hangs. Modern remotes (like mine) require only 2 wires. Thus, we have at our disposal 4 already laid wires. In them, we run + 5V, GND, Data for the internal DHT22 and on the last Serial (UART) Tx from Arduina to display information on the display.

As a display, I used a small (2.5 cm) OLED screen with a serial interface.
YES it is a little expensive, but there are several unique differences from similar available ones: The presence of a Serial (UART) interface, which allows you to use only one wire to connect it, the presence of five digital pins on the screen controller (where we will connect an RGB LED for additional display of the system status) and finally, compactness combined with contrast and excellent readability both in bright light and at night, and it does not illuminate the entire corridor at night like any LCD with a constant backlight on.

Further, the problem arose of how to place temperature sensors in each room, without additional wires, power and radio modules. As a sensor, I chose a digital DS18B20, (having good accuracy + - 0.5C) which needs only two wires (ground and signal). They can be hung on these 2 wires a lot in parallel (each has its own unique MAC address). But even stretching two wires in all rooms is a hell of a job. It dawned on me here. After all, a telephone cable is laid in all rooms and it is 4-core and in best case 2 wires are used for the telephone (usually red and green) and the rest (yellow and black) go through all the places I need and remain free. Thus, without cutting the wires, but only exposing the required two, I soldered DS18B20 to them in each room.
The total length of the wires turned out to be quite large, and if the signal wire is supported (by + 5V) with the recommended 4.7 kΩ, then in my case the sensors were practically not readable and I reduced the supporting resistance by half to 2.3 kΩ and everything worked fine.

Then I got confused with the pressure sensor and settled on an expensive BMP085 but it has an I2C interface, which again saves legs and the number of wires. Since he can still read the temperature, I put him in the basement, where it was closest and easiest to pull new wires (already 4). I tried to use standard telephone cables and connectors (RJ11) as much as possible so that the structure was disassembled and repairable.
When connecting this barometer on the same I2C bus as the RTC (non-volatile clock module), not very clear problems arose. They interfered with each other and until I put a short delay before reading the barometer, everything was not stable. Since a short-term power outage is not so uncommon, and the RTC module worth a dime I added it for non-volatile time. mostly needed when using x10. Using it, there was a desire to automatically synchronize it with NTP over the Internet (since we already have it), but something didn't work out for me to cross the webduino server and NTP. As a result, the NTP time (Unix epoch) is sent to the Arduino (and updated by the RTC) every time any settings or modes are changed in the web interface. Which has its drawbacks as it is taken by JavaScript from the time on the current computer or mobile device and is not always accurate and in the correct time zone.

I send commands to my radio sockets from Arduins using a penny ($ 2) transmitter module. There is a dime a dozen of them on Ibei (search for "RF transmitter 315 Mhz ..") and in any store. The only thing is to choose the right radio frequency corresponding to your sockets. Unfortunately my sockets were not supported correctly by the RCswitch standard library. in the description of the library there is a list of supported chips, but do not be upset if yours is not on the list, it worked for me after analyzing the ether manually and without a library. Much has been written about the similarity of the socket, working with the library. In particular, here: http://habrahabr.ru/post/213425 http://habrahabr.ru/post/212215 I used 110V sockets
... Despite the fact that radio control requires a non-standard solution, it is the simplest and most cost-effective solution to the task at hand. Namely, turn on and off electric batteries or any other device (not necessarily resistive) in time or manually, and sometimes turn on / off the outdoor light. Insteon, Zwave and others have many sometimes unnecessary additional functions but are much more expensive and have problems with the openness of the interface so that Arduino can send simple commands to devices. The only problem with x10 outlets, Insteon and others is that they click very loudly when switching. This is especially annoying on a quiet night. One more nuance: x10 was sharpened and popular in north america and, accordingly, under 110 volts. Here everyone chooses for himself. Or pay a lot for:
Z-Wave - there are no ready-made sockets, there are strangely shaped relay modules that also click more quietly and they must be hidden somewhere, somehow in the walls, then walled up, it is not clear how to maintain them - change / repair them. But there were USB modules for sending commands. But for this you still need a microcomputer (perhaps a router will do) with the correct OS drivers, etc.
Insteon - there are sockets, but they also click disgustingly like x10, and as far as I understand there is no open module for sending commands, and the system is again sharpened for 110V;
It's up to you to bother with integration and sending commands to this network or pay 5-10 times less for each radio device and, if necessary, sharpen the code for it. Like any other thing, everything for 110V is cheaper. Of course, there are also extreme ways, such as, for example, the idea described by several authors here, the idea of ​​entangling the entire apartment (house) with a pair (and in fact a bundle) of hammer wires and collecting each control and controlled device from scratch manually using the 1-Wire protocol. Some have gone even further and are developing their own protocols ...

Also, as a kiter, I screwed on an anemometer (wind speed sensor). To measure it, I used a cup sensor available at hand with a reed switch closing 1 kOhm between two contacts when the cups rotate. The program uses an interrupt and measures the number of times + 5V is applied (transition from 0 to 1) to a digital input (coupled with 5 kOhms at the same + 5V). This value multiplied by a factor suitable for your sensor and the number of faults per second gives the wind speed in knots. Also, for each hour, the maximum and minimum value speed (gusts) and the maximum per hour is displayed. The current and maximum are given to the web. Each sensor must be individually calibrated and the correct factor selected. To control the garage door, I used a spare radio remote control from it and with the help of an additional relay (sixth) emulated pressing a button on the remote control (by opening the remote control and soldering the buttons in the contacts).

The communication protocol of the standard control unit of the thermal pump with its remote control (usually 2 wires) is usually closed and our arduina cannot know which mode and settings are set in the standard control unit, but with the help of our sensors we can know in which mode HVAC is now and although they also have there is a temperature sensor in the heat exchanger, additional protection with the help of Arduina will not interfere. I am often asked: Isn't it scary for me to trust Arduina to manage such a responsible system with my home? My code is open and transparent. I understand what is happening and can always catch and correct inaccuracies (if there are any left after six months of using the system). And most importantly, I can add any functions that I need. In the same box, most likely a less powerful controller and of course there is nothing to change and cannot be added. Without arduina, adding again limited functions like access from the Internet to a standard control unit costs a new box of hundreds of dollars. It all started not from the fact that I wanted to save money, but I needed functions that were convenient for me, which could not be bought for any money from equipment manufacturers. But of course, if you take into account the price of man-hours spent by me, and even if you just decide to do something like that on the basis of my and other developments, it is certainly cheaper to buy a ready-made project for this project, but say goodbye to flexibility and the necessary functions. This is about how to install FreeBSD and painstakingly long and for every reason to delve into the flea market of Internet knowledge and manually tweak it from the command line in comparison with Mac OS, a beautiful ready-made but limited based on the same BSD. The main one is the inclusion of heating / cooling to the desired temperature, not forever or on a schedule, but only for an hour-2-4. It sounds simple and convenient, but is not present in any standard control unit.

If you want to control only a thermal pump without RF, RTC, barometer and other problems, the memory and legs will be enough for Uno (I did so in the first phase of my project). In the full version, you can't do without Mega. Let's take a look at the resulting functions and interface.

The interface itself is made within the framework of just one html page using Ajax technology for exchanging data with the Arduino web server (webduino) and is based on the JQuery Mobile libraries. Therefore, to work, you need several image files and the libraries themselves, which can be replaced with links.

In the upper left corner, we see the moon, which means that according to the day and night settings (in the first line of the blue block), the night mode is now. If the daytime mode there will be sunshine. Further we see our house. The house has a lot of temperatures in every room and in the center the temperature is tenth, this is the temperature in the living room at the main level. In green at the bottom of the house, we see the relative humidity inside the house. To the right of it is a snowflake, this is an indicator that the air conditioner is now working. At this place, other operating modes are displayed with different icons (heating with a thermal pump or AUX or x10). If the icon is muted (translucent) then the system is in this mode but not active. Those. for example, in air conditioning mode up to a temperature of 21 degrees, but since now 20 degrees, the air conditioner is not active. If two modes are operating at the same time, for example, heating x10 and heating with a thermal pump, then two icons will flash sequentially. On the left and right of the house, we see rays, when pressed, they become bright and, when pressed again, they are muffled. This is the inclusion of external lighting at home. I have an outside light in the backyard and in front of the house. Control is transferred at x10 and the numbers of the corresponding devices are written in the html (JS) code, Arduina only sends commands to the device numbers transferred to her from HTML. To the right of the house we see an automatic garage door. which opens and closes when you click on it. Above to the right of the house, we see the current (averaged over 1-2 minutes) or maximum per hour wind speed in knots. The wind speed value is highlighted different colors blue to red depending on speed and in accordance with internationally accepted Beaufort colors. On the top right, we see the temperature outside and below the current atmospheric pressure. The pink background for the pressure value is a graph of its relative change over the last 24 hours (x-time, y- relative importance pressure). Under the pressure of green, the relative humidity outside.

Now let's look at the white select group and the SET button. The left selector selects the desired temperature / mode. Right for how long to turn on this mode. If the mode is active, then the labels will change slightly, as in this example
If the heating mode is active, then the button will additionally be colored red and if the cooling mode is blue. To turn it off, you need to leave the temperature and the selected mode on the left and the remaining minutes on the right, and then the SET button will change to OFF and pressing it will turn off the mode. The cooling or heating mode is automatically selected depending on the outside temperature. If outside is less than the value of the heat_temp constant described in the html (JS) file, then only heating will be offered, otherwise only cooling.

Now let's look at the blue x10 block. Clicking on the first line opens the general settings: ON - All Outlets Are Always On (for example in summer), OFF all sockets are always off (for example, if you are on vacation), Split - the individual settings of groups and rooms take effect. Then you can choose from what hour the day starts and from what night. Remember to click the Apply button below to save your settings. further, each line reflects a group of rooms that can consist of one or more rooms. I made a grouping by floors in my house. Some floors have only one room and some have more. For each group, we can set the ON mode - all sockets of this group are always on, OFF all sockets of this group are always off (for example, you need to turn on the vacuum cleaner and if the battery is running at the same time, it will blow the fuse), Split (available only for groups with more than one room) - the individual settings of the rooms within the group come into effect, Day - maintain the specified temperature only during the day (always off at night), Day & Night - maintain the specified temperature for the day and another temperature at night. All of the above is available for each room, with the exception of Split. Remember to click Apply at the bottom for the changes to take effect.

The very last line is the Override setting. This mode was made to forcibly turn on the sockets in the selected room or lamp for a while. For example, you need to heat the room as much as possible for a certain period in order for the child to massage there and after an hour continue to maintain the usual temperature in it. Or turn on the light outside for half an hour. On the left, you select the room on the right for how long to turn on the mode and press the Overrride button. If you need to turn off the mode on the right ahead of schedule, select OFF and click Override. All information is updated every upd_interval (constant from html file) seconds. Default = 60 seconds. When the information is updated, the entire upper part of the page with the house blinks.

I would also like to talk about the concept of combining sockets (pool). Suppose you have one large room to heat which at -5 overboard, one battery is not able to or it will heat up for a very long time. You can put a second RF socket with the same code / address and plug the second battery into it and both of them will always turn on. Which, at a relatively warm temperature, will lead to frequent clicking and turning on and off of these two or more batteries. There is another option you combine these batteries in the pool in the arduino code x10pools = (0,0,0,0,0,12,0,0,13,0,0,0,0,0,0,0,0,0) ... Zero means there is no pool at the given socket address; number means the address of the pool's child socket. Child is included if it is colder outside than poolt (constant from html file) or a gap between the right temperature in the room and the current is greater than delta_temp * poolf (constants from the html file). I would like to say more about delta_temp (constant from html file) is delta temperature. It is needed so that the modes do not often turn on, do not turn off, since the readings of the sensors can jump a little + -. Heating turns on if the current temperature is less than (required - delta_temp) and turns off if more (required + delta_temp). The default is 0.5 Grad C.

Now let's look at the issue of security. Of course, you can't leave the control of your home available to everyone. Since our system consists of a client (JS Ajax html page) and a server (Arduino), you can organize different levels of security. For example, you can put an HTML page on your computer, phone, tablet, etc. (without putting it on public hosting) and then only you (from devices with this file) will be able to open this control panel for your home systems. The Arduino web server weighs on an internal IP and therefore if you do not forward it to the outside world on the router, then the Arduino itself can only be reached from your internal network. Access to the HTML page itself can be password-protected on the Web server where you want to post it. It is also fashionable to set up an HTTPS server in relation to her. The simplest and, in my opinion, quite reliable is the public hosting of the page, but the page itself is not connected anywhere at startup if the Arduino server address is not passed to it by the parameter (pre-configured Dinamic DNS and Port Foewarding). It looks like this in the browser, the following link is entered http://myhosting.com/index.html?http://myhome.slyip.net:8081/hvac. If an attacker accidentally stumbles upon your client page, then he will not be able to do anything with it without knowing the address of the Arduino server. This is the easiest and most convenient compromise option that I am currently using. Yes, I also do not like this whole structure with a poor (slow, not supporting HTTPS, etc.) Arduino Web Shield server, in addition to which I also need to host the client page from the icon somewhere separately. And as soon as I get the famous TP-LINK TL-WR703N from china
a router that in a moment turns into a wifi bridged web server with a Serial (UART) interface to the Arduine, I will immediately screw it to the arduine (or her to it) and throw out this shield and twist the wire. Thus, it will turn out even more than what I wanted so unsuccessfully to get from the STM32 controller, namely that everything was in one device (not a separate client page and a separate executive server) and a normal web server on which you can implement a decent degree of convenience, speed and security.






B last

Movies often show a living space that seems to be living its own life. The lights come on with a wave of the hand, the curtains open, after a certain word music plays. All this equipment is intelligent home system, and we propose to consider how to make a smart home with your own hands, what is needed for this, and also what is the scheme of such a system.

Smart home - what is it

Smart home is a home automation that is a residential extension of building automation. Home automation can include centralized lighting control, HVAC (heating, ventilation and air conditioning), home appliances, opening gates, doors, GSM and other systems to provide improved convenience, comfort, energy efficiency, and security. It should be noted that for some categories of the population (elderly people, disabled people), this event may become necessary.

Photo - Smart home distribution ideas
Photo - Simple smart home

With the latest introduction of SMART technologies into our lives, many can no longer imagine their life without automatic installations, software, we need wireless internet, home appliances.

Home automation refers to the use of computer and information technology to control home appliances and their functions. It can range from simple remote lighting control to complex computer / micro controller based networks with varying degrees intelligence and automation. Home automation should generally be as simple as possible.


Photo - Smart door lock

Advantages of using a "smart home" in a PIC or WAVE based apartment:

  1. Economical spending of time on the daily setting of various mechanisms, receiving calls, sending mail;
  2. The use of gaseous or liquid fuels, and later the use of electricity, allowed increased automation in heating systems, reducing the labor required to manually refuel the heater and stove.
  3. The development of thermostats has made it possible to adjust more automated control heating and later cooling;
  4. So often the protection of industrial facilities, residential premises is carried out;
  5. As the number of controllable devices in the home increases, their interconnection rises. For example, an oven can send notifications when it needs cleaning, or a refrigerator when it needs service.
  6. In simple installations, the smart can turn on the light when a person enters the room. Also, depending on the time of day, the TV can tune to the desired channels, set the air temperature, lighting.

Smart home can provide interface-access to household appliances or automation to provide control and monitoring on your smartphone, through a server, mini Smart for iPhone, iPod touch, as well as using a laptop (you need a special soft: AVR Studio).


Photo - Home control via tablet

Video: Schneider Electric Smart Home System

Smart home elements

Home automation items include sensors (such as temperature, daylight or motion detection), controllers and actuators such as motorized valves, switches, motors, and others.


Photo - House control scheme

These are heating, ventilation and air conditioning, HVAC can control temperature and humidity, for example, an Internet control thermostat allows a homeowner to remotely control the heating and air conditioning systems of a building, the system can automatically open and close windows, turn on radiators and boilers, underfloor heating.

Lighting

These lighting control mechanisms can be used to control household light, appliances. Also, this can include a natural lighting system, the operation of blinds or curtains.

Photo - Smart home scheme

Audio-visual

  • Remote control presence effect (This is the most advanced technology used to increase security). It consists in the ignition of the light, musical accompaniment.
  • Simulated presence
  • Temperature control
  • Brightness control (electric lights, street lighting)
  • Security (alarm, blinds).

How to make a smart home

An intelligent system can be made by hand, the most a budget option- this is the setting for controlling the lighting in the house or turning on the computer.


Photo - Smart home control option

To make a lamp that will "itself" light up, you will need to connect special equipment to it. There are several options for solving this problem:

  1. Install an acoustic relay (1 or x10-wire);
  2. Attach a dimmer;
  3. Connect a motion sensor.

The easiest way to work with the sensor. Its sale is carried out in any online store, you can buy a channel device, you can develop your own one according to your parameters. The only remark is that you cannot install an incandescent lamp with such a device, it may not withstand the load and explode, it is better to work with an LED.


Photo - Smart home concept

Another "smart" silent option is a dimmer. Here you need to touch the lamp, depending on the number of touches, the speaking device will change its brightness. It is very convenient to use on a lamp in a bedroom, nursery.

To set up control and regulation of temperature, we need a multi-channel system. Central scheme temperature and humidity control consists of:

  • Sensors (ds1820) that measure the physical state of liquid, air.
  • Controllers (rfm12), which can be simple physical components and complex devices special purpose or built-in computers.
  • Lunex actuators that respond to controller signals.

The most modern way is to buy all the components of a smart home, wires, thermostats. After that, install the devices in each room, a thermostat on the radiator and one on the boiler. You will also need a controllable unit, or "brain" of the entire system. It is recommended to install it on the heating inlet pipe.


Photo - Smart home system

The easiest way is to install a video surveillance and alarm system. Fundamental provisions for the installation of security systems:

  1. You need to connect sensors on windows, doorways, where the electrician will be the most productive;
  2. The most difficult is to select a board, the smart home controller depends on it, the work of mediocre parts, the signal level;
  3. Many experts believe that the indicators should be mounted at floor level. Somewhere 20 cm from the plinth, this increases efficiency;
  4. It is advisable to establish constant monitoring, establish a digital system of contact with the security service. Often responsible owners establish special program to your personal computer, which allows you to control the operation of the system from any point where there is the Internet (Elena Teslya advises to do this and her book: “Smart Home: How to Make Your Own Hands”, there are also other solutions). You can connect sms notifications.

Smart home is very convenient way make your life easier, often the whole system is bought completely (Arduino, KNX, Linux).

The cost of each system is individual. The most popular brands are as follows: beckhoff, gira, lpt, redeye, Smart Switch IOT screen, teleco. We recommend, before building such a housing, to consult with specialists, they will help to calculate the load level, calculate the power consumption.


Photo - Light control via phone

To get ideas, you can flip through VN Gololobov "Smart Home" with your own hands, DJVU or PDF, look at our photos and video instructions for free, read the advice of famous masters.

Tips for beginners

Smart home technologies allow today to control almost everything. Some things, such as, for example, devices for turning on / off lights on command, are simple and inexpensive, others, for example, video surveillance systems, require more significant investment. Until recently, Smart Home systems attracted exceptionally rich eccentrics, today it is already, as they say, mainstream, i.e. familiar to many devices. And the development of these technologies, which received a powerful impetus due to the widespread use of broadband mobile Internet, is proceeding very quickly, it is not for nothing that electronic giants such as Apple, Google and Samsung have entered this market one after another.

Naturally, complex and voluminous systems that control everything in and around the house, which you access through a smartphone or tablet, are on sale and, if you have enough money, you can easily install them in your home. At the same time, today almost every company that deals with home devices and systems, or security systems, wants to take a bite of the pie of the home automation market and begins to release remotely controlled products. But so far, unfortunately, there are no systems that could unite all devices, regardless of who produces them and on what principle they work. Maybe Apple or Google will make us happy?

However, let's figure out what you can already use. And first of all, we will understand why this is necessary.

Why do I need a "smart home".

Automation makes your life in your home or apartment easier and better, moreover, it saves time and money. Here are some reasons to start building your smart home.

  1. Automation improves efficiency. This applies both to the efficiency of the individual systems in your home and to the efficiency of the entire household. For example, because the automation system is capable of controlling multiple devices, you can turn off thermostats and turn off the lights at the push of a button when you go on vacation. You don't have to worry that you forgot to do something.
  2. Automation saves you money. Only smart control of lighting, heating, ventilation or air conditioning can reduce energy costs by 15-20%, according to the developers of automation systems. For owners of their own homes, this also adds the ability to use non-standard heating or cooling systems, which also dramatically reduces the cost of electricity and allows you to quickly recoup your investment in a "smart home".
  3. Automation is convenient. The ability to control many electronic devices (lights, heating, audio / video, curtains and doors, locks, security systems, etc.) using one touch device on the wall or just a smartphone - this alone makes you think about home automation.
  4. Automation creates comfort. The ability to actively control the various electronic elements of your home provides the comfort in which your environment - from installing lighting to turning on the music center - begins to obey you.
  5. Automation provides peace of mind... The home device control system allows you to avoid problems that can arise from forgetfulness or due to inability. From anywhere you can check if everything is normal in your home and, if necessary, make corrections using your smartphone.

Smart home technologies

Before we start buying smart home devices, let's understand a little about the technologies that are used in these devices. There are several different communication standards or protocols that these devices use to communicate between themselves and controllers. Some devices are wired, some are wireless, and some are both. Be sure to check which protocol your device uses before buying so that all your purchases are compatible with each other.

X10. This is the oldest of the home automation protocols, which appeared back in the 70s of the last century (it sounds terrible, but this is only about 40 years ago, and not in the days of Sherlock Holmes and the activities of the People's Will). It is now used for both wired and wireless communications. X10 does not boast insane speed or ultra-reliable connectivity between devices on a home automation network, however, this standard has long been debugged and many people still prefer to use X10.

ZigBee. This is another name for the IEEE 802.15.4 wireless standard used by the ZigBee Alliance manufacturer group. The main advantage in this standard is that it creates a mesh network (mesh network), in which most devices are equal and communicate with each other on equal terms. The mesh network offers increased reliability and resilience. When one of the nodes stops functioning, the other nodes continue to work, connecting to each other directly or through other intermediate nodes. Moreover, this connection consumes very little electricity.

Z-Wave. Another wireless protocol owned by one company - a chip manufacturer, including for smart home systems Sigma Design.

Insteon... It is arguably the best protocol that combines a powerline communication protocol with a wireless protocol. Both work like a mesh network. All nodes of the Insteon network are equal and can communicate with each other. If one node fails, communication goes through the others. The protocol developer is Smartlabs. The protocol is compatible with X10.

WiFi. This network protocol is now used not only by computer systems. Very fast, works well. And it is not surprising that some manufacturers have begun to make smart home products that take advantage of the advantages of this protocol. Other protocols use less power and use less bandwidth, but the capabilities of WiFi are much more extensive.

HAI... This is the protocol used when professional installations costing more than $ 50 thousand. We will leave it aside for now.

Smart home planning

Before you rush to buy those interesting devices that we will describe below, you need to plan everything in advance and decide on your goals. To do this, you need to make a short list of your actions.

    Define your goals. Do you want to control your home by phone and check the bathroom temperature from anywhere in the world, or are you a little more modest in your desires? Write in detail what you ideally want to get. The right approach is to start small, but knowing what you want at the end is key to successfully completing a project. Try to figure out what will be most useful for you. Start with a security system, for example. Or here are some other examples.
    Vacation system. Pressing one button on the keyboard and the heating will be turned off, the security system will go into the "On" mode, and the lighting will be turned on in the evening in a certain order to simulate the presence of people at home. Or a mode in which, in the event of a call during front door, a picture of the caller comes to your phone, and you get the opportunity of a two-way conversation with him. And you can decide whether to open the door remotely for him (and then lock it after he leaves).

    Choose a standard for home automation. Basically, any one can be used. The main thing is to decide in order to select the necessary devices. Now dominated by X10 and Insteon. Both are uncomplicated, the X10 is somewhat cheaper, and the Insteon can handle large amounts of data.

  1. Define the phases of the systems installation. Devices for "smart home" make life better, but if you decide right away on a large-scale installation of devices, then after a while you may decide that you shouldn't have taken it up. Break the process down into stages, make sure that all the devices that you installed in this stage are working, and only then proceed to the next stage. The more detailed you draw the installation diagram, the easier your life will be when carrying out work.
  2. Select a control system. For example, Activehome for the X10 standard is an easy-to-use solution, but with somewhat limited functionality. Or Powerhome is a good choice, but difficult to learn. Some systems allow using voice control, but they are not very friendly with the Russian language. Separate solutions allow remote control access.
  3. Install the computer controlling the system... This computer needs to work 24/7, so choose a place for it where it will not interfere with anyone. Install the software, connect the X10 controller (or another standard of your choice).
  4. Install home automation devices and modules. The number and list of devices and control modules depends on your plan. There are many of them, we will not dwell on specific devices here, for example, if you use X10, then a universal module can be used to control, say, a garage door. There are modules for lamps, or wall switches, most of them are very easy to connect. We will describe some of the devices below.

And a couple of comments.

  1. To save electricity, use additional sensors that will allow, for example, the system to automatically turn off the light when you leave the room.
  2. Where possible, use wired switch-type modules rather than plug-in modules. This will allow you to control lights and devices without using a smart home control system if, God forbid, something breaks in it.
  3. Keep in mind that automation requires an understanding of what you are doing, especially when you are dealing with electricity. Wrong actions can be dangerous for you.

Smart home devices

Statistics say that the most popular home automation project is building a security system. The creation of home theaters and home music control systems is in second place, followed by light and energy management. Then there is the integration of several systems with each other.

Learning Thermostat Nest

The Nest thermostat (owned by Google) not only controls the temperature in the house, but also decorates it. It was designed by the man who designed the Apple iPod. It works on WiFi network and you can control the temperature remotely using your smartphone or computer. It is not very cheap, but it will not be superfluous in any smart home. In addition, the Nest has an open interface, which will allow new devices to be connected to it in the future, as Google promises.

Wireless thermostat Honeywell

Honeywell Wireless Thermostat

This is another WiFi thermostat from Honeywell, which has been making home devices for decades and its line of thermostats offers many connection options.

The thermostat has a color touch screen and software that can learn user habits, and can monitor indoor and outdoor conditions to optimize the performance of heating and cooling systems. Thermostat settings can be pre-programmed on a schedule, or entered directly via a touch screen, computer or mobile device. The screen displays indoor and outdoor temperature, humidity value and local weather forecast. In addition, several versions of this device can be voice controlled.

Insteon

Insteon home automation system

Insteon is one that has a lot good reviews a home automation system that uses both electrical wiring and a wireless channel for communications. Insteon combines two-way and mesh technology to create a fast, reliable network that's compatible with anything from thermostats to home theater systems.

Insteon Starter Kit includes a hub and one dimmer module for dimming. The hub connects the entire system to the Internet (via a home router) and works with a mobile application that allows you to control the system from anywhere, program timers and your own "scripts", and monitor the system status. The hub can also send emails and text messages when sensors are triggered in the house. Insteon offers virtually everything from light switches and motion sensors to opening systems, according to manufacturers. garage doors, night vision cameras, water leak sensors, etc.

Kevo smart deadbolt

If you can open your car without keys, why don't you do the same with your house or apartment? One option is Kwikset's Kevo Smart Deadbolt, a bolt lock with a sensor ring on the outside and a Bluetooth 4.0 smart mechanism on the inside. Kevo uses several methods for opening at once: a keychain, an iPhone with the Kevo application, touching the said ring with a finger, and a password word for opening. However, according to user reviews, the application is not working very well yet.

Belkin WeMo

Belkin WeMo. Smart socket

It is an easy-to-install device that can serve as a great start for a smart home and that can be up and running within minutes of installation. Belkin WiFi sockets allow you to remotely turn on or off devices connected to electrical network Through them. Belkin has released a few other very handy devices - for example, the WeMo Home Light Switch, a motion sensor that allows you to activate devices plugged into the WeMo outlet, a video nanny with WiFi access. All this is controlled through a mobile application based on iOS or Android.

Philips Hue lighting system

Philips Hue lighting system

Hue is a lighting system made up of lamps, light strips and a wireless bridge that is controlled via an iOS app. According to the company, “Each HUE lamp has 600 lumens of light output and can produce all kinds of white light, from warm to cold, as well as various options colored light. Each lamp uses 80% less energy than a traditional lamp. "The light can be steplessly dimmed and increased, its color can be rearranged, and all of this is possible from anywhere you can access the Internet. In addition, the app contains a number of" recipes "from experts to help you concentrate or relax Hue is compatible with a range of other smart home devices such as Belkin MeMo switches.

How much can you trust the "smart home"

An important question: what is the reliability of such systems that unite many "smart" devices, how sure can you be sure that after you tell him to close the front door through your smartphone, the lock will really click? Does such a system have "foolproof protection"?

All systems in the home such as light, heating and security are subsystems unified system automation. The advantage of this system is that it provides very reliable control and integration of all subsystems. At the same time, almost always, when an automation system fails, the subsystems continue to work. This will only create some inconvenience for you. For example, you won't be able to turn off 20 lights at the same time by pressing one button, but you can still do it one at a time and in the usual way.

Note that the smart home system uses feedback from its subsystems and receives a signal if something goes wrong. In this case, a message comes to the user's phone and he can decide what to do in this case.

Automation is increasingly being implemented in daily life modern people. And if earlier the pinnacle of progress could be considered automated production, now even everyday life, an apartment or private house, can be quite simply drastically improved by introducing the concept of "smart home" there. After all, today "smart home" systems are designed not only to optimize energy costs, but, first of all, to make a person's life more comfortable. The possibilities of modern "smart home" systems will be discussed in our article.

Combining a home theater, lighting control, water supply, video surveillance system, climate control, power supply and access control, gas supply and multiroom into one system is the task that the “smart home” system solves today. Let's go through each of the points sequentially, consider what they can do modern systems automation as applied to our everyday life.

Climate control

The microclimate of public and residential premises greatly affects our performance and health in general. The conditions of the air environment in the premises vary depending on the operating modes of the climatic technology. Heating and ventilation equipment, lighting equipment, and other devices - all of this together has a certain cumulative effect on the human body, on well-being, on health in the end. And the technique is getting more and more complicated.

Automated systems allow not only to promptly monitor and control all this equipment, but ultimately take care of our health. With the help of sensors, the current state of the air in the room is monitored, and through the control panels, the operating modes of air conditioners and supply ventilation, and heating. That is, the climate is automatically adjusted to the requirements of a person, which are set by pre-settings.

So climate control allows the following. Air quality control depending on the weather outside the window and on the time of day. Timely ventilation of premises by controlling heating and opening windows.

Underfloor heating control. Maintaining optimal temperatures and humidity individually in each room. For example, a food storage room requires its own special climate, which is different from the climate in the living room or in the kitchen, etc.

Control of temperature, humidity, flow rate fresh air, air purification system and ozonation. In each room, the conditions should be different, the most suitable for each family member, taking into account the place in the house where this room is located: some to the north, some to the south - and the control in each case will be individual.

Drafts are unacceptable in the nursery, the bedroom should be warmer, the bathroom floor should be heated on time, and you shouldn't keep it warm all the time. That is, the control turns out to be optimal so that the energy saving effect would also take place.

The setting varies according to the lifestyle of the family or community. On weekends, the heat supply to the work areas is reduced or cut off.

Autonomous heating system country house- on the contrary, it turns on on weekends. The boiler is remotely switched on or switched to economy mode, etc. Everything is rationalized to combine efficiency and comfort of life. This is especially true for water supply, electricity and heat supply.

Entertainment

For a long time, you will not surprise anyone with a home theater. But to control sound and video from different places, as well as stereos located throughout the apartment - these functions are just implemented using the "smart home" system.

The home theater is connected to an automated system, and the whole complex of multimedia equipment, together with auxiliary devices, is harmoniously integrated into the apartment. There can be several sources of sound and video, and they can be multichannel: speaker systems, receivers, plasma panels, projectors - everything is controlled directly or remotely from anywhere in the room.

You can watch movies and programs, listen to music in all rooms or just a few, program a scenario and activate it with one button from the touch panel or from the remote control. The scenario program can be adapted to individual conditions: the blinds are closed, the light goes out or becomes less intense, the plasma panel turns on, the projector comes out, the player starts up.

Scenario programs can be edited, set in time to automatically start, set related settings for watching a movie, for example, turn on the air conditioner near the place where the home theater is installed if the weather is hot.

The “multiroom” function is exactly the function that allows you to hear sound or watch video in several independent zones of the apartment. It becomes possible to adjust the volume from any room, each of which has push-button or touch-sensitive, wall-mounted or desktop control panels, and there are also remote controls.

What could be a more expressive sign of the intelligence of a “smart home” system than smart lighting control? Lighting in a smart home is truly intelligent and therefore economical. Electricity resources in an apartment, house or office are used as economically as possible, without unnecessary waste.

The advantage of an automated lighting control system is that, relying on data from external and external lighting sensors, as well as on timers, it allows you to turn on and off the light of the desired brightness and only where it is really necessary. In addition, they open up a wide scope for creativity. In addition, the option to simulate the presence of the hosts is available.

The modern “smart home” system is a complex of technologies for comfort, safety and efficiency. Stability is ensured by integration in the event of a centralized power outage so that the electronics remain functional at all times.

Batteries and inverters, chargers and oil generators are installed in the system and software integrated. At the moment of a power outage, the system will automatically switch to a backup source; in extreme cases, the security systems and the most important equipment will remain powered from the batteries.

Automated security system

The "smart home" system includes, as part, security and fire alarm and video surveillance, so that both the stay of the owners in the house and their absence would be safe both for the house and for the owners themselves. A video intercom and a perimeter security system can be installed here to protect against intruders.

As for security in general, the "smart home" system is able to provide: protection against short circuits in electrical wiring, protection against water leaks, protection against gas leaks, by triggering a smoke sensor and turning on an autonomous fire extinguishing system, autonomous power supply, alarm, automatic call to the rescue service.

Thus, a "smart home" will protect itself and its owners from any dangerous situations, because the system can include: automated gates and doors, automatic protective shutters, a video surveillance system, security alarm, detectors of presence, smoke, gas leaks, etc.

Controlling access to the premises, video surveillance of the surrounding areas, turning on the spotlights when penetrating through the perimeter are three more pluses in the piggy bank of advantages. Through the Internet, the owner will be able to remotely receive a picture from any of the cameras of the video surveillance system, this also includes the function of a baby monitor.

Video surveillance as such

Intelligent video surveillance is one of the main components of modern smart homes. Camcorders are connected to the Internet, and allow you to access yourself from anywhere in the world.

The owner can be abroad, while operatively observing any of the zones, and video cameras here can be controlled. For example, controlled cameras are usually equipped with gates, courtyards, buildings located nearby, areas near the doors of apartments. The camcorder can be paired with a motion sensor, and signals can be sent to the control center.

The Internet and satellite television networks, as the main sources of information, are now conveniently integrated into smart home systems. Inside the house, the owner can receive information and send it to various rooms, on TVs and monitors. This also applies to the transmission of information received from video surveillance systems. Thanks to the multi-room function, all these possibilities are opened up. Of course, it is possible to configure, if desired, remote control via the Internet.

Control with mobile phone via direct voice commands and SMS is available today for owners of smart home systems. You can also set up call forwarding to your mobile phone when you are away from home, even when in another country.

If necessary, you can let guests into the house by simply sending the appropriate command from your mobile phone to your automated system. Similar opportunities are conveniently implemented via the Internet; it will be enough to find Wi-Fi for a smartphone or laptop.

Andrey Povny