logo elektroda
logo elektroda
X
logo elektroda

Smart home on RaspberryPi: a choice of 1-Wire and I2C cabling alongside 230V

zawadzkipiotrek 2280 3
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 13964054
    zawadzkipiotrek
    Level 1  
    Posts: 1
    Hello,
    this is my first post on the forum so please be understanding, if the topic has already been discussed somewhere - please let me know, despite searching, I have not found the answer to my doubts.

    For the last six months I have been designing a smart home system based on Raspberry Pi, Razzberry, 1-Wire and I2C protocol. Everything seemed almost ready, apart from the design I have already picked up the most important component - the flat :)

    However, at the very end a doubt arose ... what kind of cabling for 1Wire and I2C, so far I was considering UTP but it turned out that the cable will go near/near the 230V cables (when laying the cabling for the smart home system, I will be changing the electrical installation).

    Therefore, with these protocols, could the 230V cables introduce interference strong enough to cause falsifications in the sensor readings? If I opt for FTP cable, will I be able to lay signal cables next to voltage cables without any worries?

    The longest distance over which the signal cables would lie next to the voltage cables is 20m.
  • ADVERTISEMENT
  • #2 13964884
    Anonymous
    Anonymous  
  • ADVERTISEMENT
  • #3 13967318
    MrBool
    Level 11  
    Posts: 30
    Help: 2
    Rate: 9
    I2C is compeltely not suitable for this. The main use of I2C is for communication between circuits within a single device. If 1-wire and Raspberry, then definitely not based on GPIO, but on some external chip and preferably with power pull-up. Better think CAN or RS-485.
  • #4 14004617
    arkady_pl
    Level 24  
    Posts: 574
    Help: 59
    Rate: 24
    MrBool wrote:
    (...)Better think about CAN or RS-485.

    I confirm, it is definitely better to base it on RS485. And if you use MODBUS libraries, which are even under PHP, making a management interface is already easy. And there are a lot of devices working over RS485 with modbus. Besides, there are a lot of solutions with modbus on TCP/IP, which makes the intelligent building start to be more like Lego blocks. :)

    Good luck!
ADVERTISEMENT