📜 ⬆️ ⬇️

Crazy House on Siemens Logo

Caught the eye post , read ... I decided to write about his version.

In general, in the 3-room apartment I have “crazy” lighting a long time ago. Its main goal is to press a smaller switch. Initially, I placed four 12-volt colored spotlights in the corridor right in the floor. Then he added another 2 in a small corridor, then another 2 inserted into the ceiling (more precisely, into the bottom of the mezzanine) near the kitchen. In the floor, by the way, it is easy to install fixtures (the floors are on wooden lags): I took the nozzle for the drill, which is used to drill the door leaves under the handle. She and made neat holes right through the laminate. It turned out something like this:



')


Over the front door hung a motion sensor that turns on this light. Now at night you can walk around the apartment without running across the walls. As a bonus, when you open the front door, it enters the zone of the sensor and the light turns on.

To make it clearer, I attach the layout of the apartment:



In addition, a motion sensor was installed in the kitchen, and a 3-meter LED strip + a colored light bulb at the dining table was placed on the cabinet above the cooking zone. When someone is in the kitchen, the cooking zone is highlighted no worse than the surgical table. Very comfortably. Nowadays, nobody in the kitchen turns on the overhead light, since it is also quite light.



I also installed an illumination sensor and when it is light outside, I additionally illuminate a palm tree in a dark corner of the room so that I do not lose it. But that's another story.

Several years have passed since then, I began to slowly build a house, and since I want to make the house smart, and I will be engaged in electrician myself, I decided to train at the apartment with automation controllers. To know at least where it is necessary to pull and in what quantity. I almost immediately refused arduino, because I want something more ready: I ​​definitely don’t have enough energy for kulibinstvo, because I’m no longer a student. Therefore, in the end I stopped at two controllers:

Siemens Logo and Aries PLC.

Siemens in ebee is cheaper, and the office is more solid. Therefore, for the beginning I ordered it for $ 220. It makes no sense to automate the whole world in a flat, so I decided to limit myself to the corridors (that is, the space outside the living rooms). For this, I made a little wall, spent a few wires. Replaced the traditional switches on the buttons for blinds. They look something like this:



To implement his ideas, he hung magnetic door opening sensors on both entrance doors. On the staircase there is a motion sensor on the ceiling, so that it only works when you get close to the door:



This is actually half the sensor. To be more compact. The second half (there is a small scheme) is in the apartment.

Commuted the whole farm in the mezzanine:



I remembered the safety precautions, firefighters, etc ... I hung up a drawer in the closet under the ceiling and re-commuted everything in it (not forgetting about the wire markers, crimping pliers, terminal kits, zero tires, etc.):



I wrote a program in Logo Soft Comfort. Debug, by the way, can be in the simulator. However, it is only after pouring into the controller and real use that the shoals that are not obvious to a non-specialist begin to pop out:



Poured it over the ethernet controller and voila ...

Described quickly, but in fact the process took about a month. I will not hide, quite fascinating.
What is particularly like, that now, when everything is connected, it is possible in your free time, without touching the wiring, at least to completely rewrite the control circuit. Add some functionality, etc. Not later than yesterday, I did emulation of presence, which was turned on after 5 seconds of pressing the left button.

Now I’m waiting for the expansion module for the logo to add several groups of light that I don’t manage yet, as there are not enough outputs, like this:

image

I ordered for 129 bucks on ebee. Description here .

What got now:

1. at the entrance to the apartment the light turns on beautifully: first, the spot lights of the far small corridor, then the large one, then the chandelier in the corridor and the sconce in the closet come on. It turns out that you open the door, and the light seems to run at you. When you exit the apartment the whole world is cut down. The definition of whether I enter or go out is done by analyzing the sequence in which the entrance doors were opened / closed. Sensors cost a penny, bought in the store security equipment:



Inclusion looks like this:



(the video does not see another group of light on the right, i.e., 4 groups in total are included in series. Actually, only the Siemens controller can control them for now).

2. When you get into the area of ​​the motion sensor over the entrance door - all the spotlights in the pantry, corridor and small corridor turn on. Light is cut off automatically after 60 seconds of no movement.
From 23:45 to 7:00 the whole system is switched to night mode, in this mode the motion sensor does not turn on the light next to the bedroom. It can only be turned on by hand from the switch, if necessary.

3. The push buttons at the entrance door can be pressed with a short press or long. By quick pressing, the upper light turns on and off. With a long press, the whole world turns on / off, and at the same time the motion sensor turns off for 30 minutes.

4. Motion sensor is available in the kitchen, it includes a bright LED illumination of the cooking zone,

5. The sensor, located on the stairwell, includes a small piece of LED strip hidden by the door. The light is not bright, so as not to attract special attention. But finding a keyhole helps. In addition, when someone is standing at the door a red light comes on at the door inside the apartment. To know that someone is standing there :)

Plans to add fan control hoods in the kitchen and bathroom. Also, if the door to the toilet is opened / closed and there is movement there (with the door closed), then there is a person inside and we therefore keep the lights on until the door is opened / closed again. If the door is closed and there is no movement, after 30 seconds the light is turned off. Then in the bathroom / toilet you can do without switches.

Got a good programming experience with Siemens controllers. Much can be done on them, but still these are devices for automating a particular process, and not the whole house. Writing scripts on it is very difficult and not at all obvious. In fact, you write not a program, but you are engaged in circuitry. There are no usual cycles, variables, etc.

Therefore, I also want to buy a PLC 110 ram and practice on it. It is a pity that the second apartment is not for experiments, so it’s just on the layout. Aries is more expensive than the logo, but it has much more inputs and outputs (there are only 4 relay outputs and 8 inputs in the controller itself). In the end, if you need to manage a large number of loads - on the ram is cheaper. Also in Aries, a normal scripting language, not drawing diagrams. Let it not so technologically, and not so reliably, but much simpler.



Ps. And I have long been measuring the temperature of the house and on the street with 1-wire digital sensors. True to automation, it has nothing to do. Just write the data and display it here: temp.smolensk.ws

Pss. commercial break: use the prog and the ybex.com service to also quickly place your photos on the internet, like me :) Free, without restrictions, without advertising ... for two years now it has been working in this mode.

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


All Articles