# Domotica in home

**URL:** <https://forum.arduino.cc/t/domotica-in-home/1102810>\
**Category:** Networking, Protocols, and Devices\
**Created:** [March 16, 2023, 2:35pm UTC](https://forum.arduino.cc/t/domotica-in-home/1102810 "2023-03-16T14:35:53Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hedalen](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/hedalen/32/239050_2.png) [@Hedalen](https://forum.arduino.cc/u/Hedalen)\
**Post date:** [March 16, 2023, 2:35pm UTC](https://forum.arduino.cc/t/domotica-in-home/1102810/1 "2023-03-16T14:35:53Z")

</div>

i dont know how to fix a serial wired Master/Slave network with arduino mega 2560 and uno,  
one Master and several Slaves

who can help me with hardware and software

---

<div class="post-metadata">

**Author:** ![anon57585045](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@anon57585045](https://forum.arduino.cc/u/anon57585045)\
**Post date:** [March 16, 2023, 2:37pm UTC](https://forum.arduino.cc/t/domotica-in-home/1102810/2 "2023-03-16T14:37:30Z")

</div>

Fix, or build? What is Domotica? Please read:

> [@How to get the best out of this forum](https://forum.arduino.cc/t/how-to-get-the-best-out-of-this-forum/681308):
>
> Welcome to the Arduino forum! A guide explaining how to get the best out of this forum is available at the link below. Please read it:

---

<div class="post-metadata">

**Author:** ![er\_name\_not\_found](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/er_name_not_found/32/647693_2.png) [@er\_name\_not\_found](https://forum.arduino.cc/u/er_name_not_found)\
**Post date:** [March 16, 2023, 2:44pm UTC](https://forum.arduino.cc/t/domotica-in-home/1102810/3 "2023-03-16T14:44:45Z")

</div>

> [@anon57585045](#):
>
> What is Domotica?

Automated domicile

---

<div class="post-metadata">

**Author:** ![anon57585045](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@anon57585045](https://forum.arduino.cc/u/anon57585045)\
**Post date:** [March 16, 2023, 2:45pm UTC](https://forum.arduino.cc/t/domotica-in-home/1102810/4 "2023-03-16T14:45:52Z")

</div>

I wonder how much research was done?

---

<div class="post-metadata">

**Author:** ![Hedalen](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/hedalen/32/239050_2.png) [@Hedalen](https://forum.arduino.cc/u/Hedalen)\
**Post date:** [March 16, 2023, 3:02pm UTC](https://forum.arduino.cc/t/domotica-in-home/1102810/5 "2023-03-16T15:02:14Z")

</div>

what i mean is: i want to have one Master for switching some Slaves on and off  
the Slaves must have the possibility to switch manuel too with sending its status to the master

---

<div class="post-metadata">

**Author:** ![Hedalen](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/hedalen/32/239050_2.png) [@Hedalen](https://forum.arduino.cc/u/Hedalen)\
**Post date:** [March 16, 2023, 3:16pm UTC](https://forum.arduino.cc/t/domotica-in-home/1102810/6 "2023-03-16T15:16:45Z")

</div>

weeks and weeks

---

<div class="post-metadata">

**Author:** ![sherzaad](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/sherzaad/32/226173_2.png) [@sherzaad](https://forum.arduino.cc/u/sherzaad)\
**Post date:** [March 16, 2023, 4:11pm UTC](https://forum.arduino.cc/t/domotica-in-home/1102810/7 "2023-03-16T16:11:53Z")

</div>

> [@Hedalen](#):
>
> i dont know how to fix a serial wired Master/Slave network with arduino mega 2560 and uno,  
> one Master and several Slaves

share your current network and your master + slave code.

given its a 'home' wired network I am going to assume you are using some thing as [RS485](https://circuitdigest.com/microcontroller-projects/rs485-serial-communication-between-arduino-uno-and-arduino-nano) as you physical network.

> [@Hedalen](#):
>
> i want to have one Master for switching some Slaves on and off  
> the Slaves must have the possibility to switch manuel too with sending its status to the master

that sounds, simple enough....

the way I would go about is to create a message frame ( [Serial Input Basics - updated](https://forum.arduino.cc/t/serial-input-basics-updated/382007) is a good material for that) with a header byte and at least a data byte.

the header will be a a 'unique ID' for each slave and master node and the data byte will contain the value to be worked on.

you did not share much but I will again assume that the slaves do not need to be constantly transmitting stuff among themselve ie unless the master ping them there as silent.

so with that, whenever the master wants to turn a slave on/off, it will first send out a message frame to request its status the following said slave reply, the master can then 'decide' when it actually needs to do the intended action.

hope that is not too confusing!

---

<div class="post-metadata">

**Author:** ![Hedalen](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/hedalen/32/239050_2.png) [@Hedalen](https://forum.arduino.cc/u/Hedalen)\
**Post date:** [March 16, 2023, 4:54pm UTC](https://forum.arduino.cc/t/domotica-in-home/1102810/8 "2023-03-16T16:54:13Z")

</div>

yes, i have RS485 and cables already all over in my house,  
so how to make the hardware, and the software, so that i can communicate between the master and the slaves.  
at this moment, i dont have any working serial network here

---

<div class="post-metadata">

**Author:** ![anon57585045](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@anon57585045](https://forum.arduino.cc/u/anon57585045)\
**Post date:** [March 16, 2023, 5:52pm UTC](https://forum.arduino.cc/t/domotica-in-home/1102810/9 "2023-03-16T17:52:01Z")

</div>

> [@Hedalen](#):
>
> i want to have one Master for switching some Slaves on and off  
> the Slaves must have the possibility to switch manuel too with sending its status to the master

Okay, and what is the difficulty you are experiencing with that, exactly?

After weeks and weeks of research you must have found some answers at least, and tried a few things. What have you done so far?

---

<div class="post-metadata">

**Author:** ![anon57585045](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@anon57585045](https://forum.arduino.cc/u/anon57585045)\
**Post date:** [March 16, 2023, 5:54pm UTC](https://forum.arduino.cc/t/domotica-in-home/1102810/10 "2023-03-16T17:54:12Z")

</div>

> [@Hedalen](#):
>
> i have RS485

Means what exactly? If you have existing hardware, you need to detail it for us.

---

<div class="post-metadata">

**Author:** ![Hedalen](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/hedalen/32/239050_2.png) [@Hedalen](https://forum.arduino.cc/u/Hedalen)\
**Post date:** [March 17, 2023, 8:38am UTC](https://forum.arduino.cc/t/domotica-in-home/1102810/11 "2023-03-17T08:38:55Z")

</div>

SN75176BP for the network,  
BT139 triac to switch on off 230V from the output ports  
2X arduino UNO  
4X arduino mega 2560

i thought, these components will be enough for a network, Right?  
so not ready motherboards yet

---

<div class="post-metadata">

**Author:** ![anon57585045](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@anon57585045](https://forum.arduino.cc/u/anon57585045)\
**Post date:** [March 17, 2023, 1:16pm UTC](https://forum.arduino.cc/t/domotica-in-home/1102810/12 "2023-03-17T13:16:44Z")

</div>

That is not really detail. It's a short verbal list of four components. One of them is just a chip. We can't see, if you have them connected and doing something, or sitting in the antistatic bags you bought them in. We have no specifications of the wiring configuration, or the requirements of the software that you mentioned.

You need to explain, but also fully reveal, what have as well as what you are planning. If you haven't done much yet, it is a time to take it step by step in the forum. First, post a detailed (means links, photos, etc., not just text listings) description of your existing hardware. Second, post a **detailed** description of the functional requirements of the final system. Then we can offer guidance about how to use the hardware you have, or what to add if necessary.

If you don't do that, this thread is likely to drift off into off topic answers, or be forgotten and you will get no answer. Please go back and read or read again, the forum introduction that I linked to, in post #2.

---

<div class="post-metadata">

**Author:** ![Hedalen](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/hedalen/32/239050_2.png) [@Hedalen](https://forum.arduino.cc/u/Hedalen)\
**Post date:** [March 18, 2023, 11:52am UTC](https://forum.arduino.cc/t/domotica-in-home/1102810/13 "2023-03-18T11:52:36Z")

</div>

i dont have still not connect them, bcz, i dont have any schema or any working sketch for it

thats why i ask all, for support to my project

i have health problems with walking, so i thought its easier, to switch lights on and off from one central place in my home

---

<div class="post-metadata">

**Author:** ![markd833](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/markd833/32/1186928_2.png) [@markd833](https://forum.arduino.cc/u/markd833)\
**Post date:** [March 18, 2023, 12:51pm UTC](https://forum.arduino.cc/t/domotica-in-home/1102810/14 "2023-03-18T12:51:08Z")

</div>

Does Domotica provide a specification of the RS485 interface that details the message protocol etc?

There is Domoticz which I've used along with RFM69 radio modules.

Have you been to the MySensors website?

---

<div class="post-metadata">

**Author:** ![Hedalen](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/hedalen/32/239050_2.png) [@Hedalen](https://forum.arduino.cc/u/Hedalen)\
**Post date:** [March 18, 2023, 1:05pm UTC](https://forum.arduino.cc/t/domotica-in-home/1102810/15 "2023-03-18T13:05:30Z")

</div>

its about, the master send a command to a slave, so that that slave makes one port high or low, so that IF the post is high, a triac, will switch a lamp on or off  
as planned, will the slave send to the master that the slave port is high or low  
the master, will get the command on the central place with pushbuttons

---

<div class="post-metadata">

**Author:** ![anon57585045](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@anon57585045](https://forum.arduino.cc/u/anon57585045)\
**Post date:** [March 18, 2023, 7:45pm UTC](https://forum.arduino.cc/t/domotica-in-home/1102810/16 "2023-03-18T19:45:47Z")

</div>

> [@Hedalen](#):
>
> i dont have any schema or any working sketch for it
> 
> thats why i ask all, for support to my project

This is a contradiction. We are not asking for a complete, detailed schematic of your finished project. If your plans are not definite, you can still make a somewhat indefinite sketch. Such a drawing can serve as a shared reference for further discussion and evolve to incorporate suggestions that you receive here.

It's also your responsibility to do research and find candidate equipment to build your project. It is perfectly fine to ask about it here, but we are not going to hunt around for solutions for you. If you receive suggestions, it's also up to you to investigate them and follow up with related activities or questions.

---

<div class="post-metadata">

**Author:** ![mikb55](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/mikb55/32/1149025_2.png) [@mikb55](https://forum.arduino.cc/u/mikb55)\
**Post date:** [March 19, 2023, 12:37am UTC](https://forum.arduino.cc/t/domotica-in-home/1102810/17 "2023-03-19T00:37:38Z")

</div>

Is your primary goal to learn about Arduino, or build an automation system?  
If it's the latter, then there are existing systems such as ESP Home that provide a communications infrastructure and have a pre-defined range of sensors and output devices.  
The absolute simplest solution is to use a commercial offering such as the Ikea Tradfri system that gives you switchable light bulbs and electrical outlets.

---

<div class="post-metadata">

**Author:** ![Hedalen](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/hedalen/32/239050_2.png) [@Hedalen](https://forum.arduino.cc/u/Hedalen)\
**Post date:** [March 19, 2023, 8:31am UTC](https://forum.arduino.cc/t/domotica-in-home/1102810/18 "2023-03-19T08:31:08Z")

</div>

the primary, is to have a system, to switch on and of lamps, mut i want to learn too about arduino, bcz i told already the i have a healthness problem with walking, so i like to make a combination with homemade system and with arduino

for example the SN75176B how to connect that to the mega or the uno ports?

---

<div class="post-metadata">

**Author:** ![mikb55](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/mikb55/32/1149025_2.png) [@mikb55](https://forum.arduino.cc/u/mikb55)\
**Post date:** [March 19, 2023, 9:38am UTC](https://forum.arduino.cc/t/domotica-in-home/1102810/19 "2023-03-19T09:38:38Z")

</div>

Are the existing data cables configured as a linear multi-drop bus or a point to point system with multiple cables radiating out from one central location?

---

<div class="post-metadata">

**Author:** ![Hedalen](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/hedalen/32/239050_2.png) [@Hedalen](https://forum.arduino.cc/u/Hedalen)\
**Post date:** [March 19, 2023, 9:41am UTC](https://forum.arduino.cc/t/domotica-in-home/1102810/20 "2023-03-19T09:41:10Z")

</div>

![9zIKi](https://europe1.discourse-cdn.com/arduino/original/4X/f/f/a/ffadb2a1401bd339c92effe27299b63a4d6b17fc.jpeg)

i think this can work, only the question is, what is the ftdi232, is that a standard arduino print

[Next page](https://forum.arduino.cc/t/domotica-in-home/1102810.md?page=2)
