Answer the question
In order to leave comments, you need to log in
"Sly House" - choice of equipment
Good day!
After reading all sorts of articles on the topics of smart and not so smart at home, all sorts of automation and other things, I also wanted to do my own thing . So. We allocate some funds for the test set (1 sensor + center) and…
Answer the question
In order to leave comments, you need to log in
Vitukha, in short, to lay.
And then figure out what will be there.
Ethernet or RS485 or whatever.
> atmega328 does not have enough outputs
, this can be easily increased. Using the i2c protocol, you connect mikruhi that give up to 16 more outputs, and you can connect several of them.
> RS485
is definitely not a suitable option. in your case, everything, like mine, rests on a regular customer survey. and the more clients, the greater the delay in polling.
i2c is for in-circuit connection
I think the best option for you is ethernet. This is a ready-made and debugged protocol on top of which it will be easier for you to implement your own protocol.
Another plus for him is that if you choose him, then it will be easier for you to get to your dream, because while you smoke different mana and fill your forehead, you will understand that your idea is eating up your time or will become uninteresting to you for another reason.
In general, I think for home affairs Ethernet is better for you.
As for clients, I would implement data collectors on the Arduino platform or stm, and put the logic on the RPi, which interrogates the collectors via Ethernet.
Sound: uniquely on a separate controller.
To summarize: make as many independent modules as possible. Although the system will look more cumbersome in terms of architecture, it will be more convenient to debug. For my projects, I think it's worth starting with simplicity.
I am building a similar Tricky House on Raspberry.
I started with the Cunning Door:
- monitors whether the door is closed, whether the lock is closed (a mic that presses the lock tongue),
- monitors the temperature-humidity in the hallway,
- a motion sensor (any arduino ones are suitable),
- a light sensor for not turned off lights . devices (arduino).
- monitors the neighboring bathroom for flooding.
The whole thing is displayed on the WEB server raised on Raspberry.
+ sending e-mail in case of problems (flooding, doors not closed for a long time, etc),
I didn’t bother with GSM - I considered it inappropriate for myself (although technically it’s not very difficult).
In principle, this is the most necessary thing that I needed.
Further, everything scales well according to the "one monitoring point - one Raspberry" scheme.
All data from each Raspberry is wrapped on one web server.
I have wifi.
So far, there are only two Malins - one is the aforementioned Sly Door, the second in the common room.
On it, in addition to sensors, there are a pair of relays that can switch 220V (in my case, one of the lighting in the room and a kettle in the kitchen) and a pair of LEDs that command air conditioning, TV and music via IR.
You can, in principle, pile up more different bows and wrappers.
One way or another, everything is configured based on desires and fantasies.
Maybe I'm giving up on 1-wire, i2c, T10 and others like that for nothing? What I argue - ethernet is more universal.
Ideas in the protocol of the KNX
standard, something similar to 485 or closed standard.
You can get materials on the net ( see here )
thanks for the detailed answer. Approximately such thoughts were when I chose Ethernet.
about clients, I ordered sets of sensors, programmers, I found a store with atmegas in the city. Only there from mikruh only atmegas and that's it (but there are even 2560 and 328 in deep). There are quartz, capacitors, resistors and other small things. I will try to sculpt a network client powered by ethernet. I don’t know whether to implement the POE standard, or just put 5V on a pair, it’s not the point yet ...
Laurent saw a ready-made board (ethernet control web + telnet + tsal outputs to sensors, inputs / outputs and several relays 230V 7A) 3.5k asking for it. Horror. I will collect myself.
The only question that bothers me. How about security. All sorts of things in LAN are a potential hole. Yes, you can come up with passwords, limit by IP, and so on. It is also impossible to completely protect from LAN with tyrnet. We will do VLAN and think about something further ...
Sound is also a separate issue. I want the music to play in such a way that when I move from the room to the kitchen, it also turns on in the kitchen by a motion sensor, for example.
In general, darkness problems. Something at least ideologically can be seen on the sites ab-log.ru and MajorDomo. There is nothing ready-made. You have to make your own moped.
Tell me, have you done something similar? can i read it somewhere?
guys are engaged in industrial and street lighting on this site https://rusest.com/katalog/dlya_proizvodstva/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question