logo elektroda
logo elektroda
X
logo elektroda

Raspberry Pi connecting 10-12 DS18B20 sensors: wiring, twisted pair, protection circuit

korodajm 750 2
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 17544004
    korodajm
    Level 11  
    I am putting together an installation (simple) consisting of a Raspberry and 10-12 sensors to monitor the temperature in the loft and ventilation (DS18B20).
    I have read here on the forum that plain twisted pair is ideal for extending wires. I have also read that the easiest way to connect all 10 to one or 5 each to different pins is to connect them at one point at the raspberry, where each has its own separate 3 wire cable.
    The question is whether I can pull up the signal from 2-3 sensors in one twisted pair and how to indicate the wires in that case so nothing interferes too much. longest connection 20m.
    I'm wondering if there is any ready made circuit that could protect my Malina from a short circuit, overvoltage or some other factor coming from around the sensors? (I have read that it is easy to burn the pins).
  • ADVERTISEMENT
  • #2 17544088
    xury
    Automation specialist
    It is not true that twisted pair cable is best for the DS18B20. Straight cable is the best cable.
    The second untruth is to connect in a star topology. It is best to connect DSs from one to the other.
    On the other hand, when it comes to protection, there is rather nothing to worry about burning up the gpio because at the beginning you have a pull-up resistor through which the current from the plus runs anyway. You can of course play around with the opto-isolation.
  • #3 17544112
    korodajm
    Level 11  
    Hmm i mean i can use a cable e.g. alarm 4 wire sensor to sensor (additional wire as ground or to strengthen the power supply?). You don't need then some additional equalizing resistors at each sensor just leave one at the raspberry?

    Added after 30 [seconds]: .

    korodajm wrote:
    Hmm so I can use a cable e.g. alarm 4 wire cable from the sensor to the sensor (extra wire as ground or boost power?). Then you don't need some additional equalizing resistors at each sensor just leave one at the raspberry?
    .
ADVERTISEMENT