1

I am looking to create a complete temperature humidity sensor system with 72 DS18B20 sensors. I am aware that each sensor receives it's own unique identifier and you are able to daisy chain them together. The problem that I am running into is that I am unable to find any DS18B20's that come pre-wired with either a RJ-11 or RJ-45 or similar output. Any recommendations on simplifying the sensors so that I can connect up to 72 or more sensors without having to crimp.

Closest part I could find is: https://www.dx.com/p/waterproof-ds18b20-temperature-sensor-with-adapter-module-for-arduino-2068262?tc=USD&ta=US&gclid=CjwKCAjwtajrBRBVEiwA8w2Q8M3cT5tqq_wZDYELYFuKgjfEyXfyiOpyokeLUyEyx4vutvJ4mRPJchoCsIsQAvD_BwE#.XWp31lNKjdQ

Unfortunately it seems the break out board with the step-up resistor only takes in one sensor. I'm unaware how I would have several put together.

Any recommendations would be appreciated.

Philoxopher
  • 111
  • 2
  • 1
    Try asking this in the "Electrical Engineering" stack exchange group. – MatsK Aug 31 '19 at 13:44
  • There are a couple of DS18B20 sensors of which only the waterproof probe with a long connecting wire is awkward to daisy chain together. All others, whether single chip through hole, small breakout with no wire or short wires, are easy to daisy chain or star like. It is only that you did to do a little bit of soldering, of if you like use a breadboard for experimentation, then change to a small prototyping board later. You can find photos of three different types of connections in my answer referred below. – tlfong01 Sep 01 '19 at 08:11

1 Answers1

1

(1) I am not sure if you can daisy chain 72 DS18B20s using only one Rpi GPIO pin. My experience is that it is OK connecting 16 sensors to one GPIO pin and so 64 sensors on 4 pins. You need to remove the pull up resistor on all except one module on one bus. But even so, too many sensors on one 1-Wire bus still seems not very stable. You might like to see my sensor wiring photos and a fully debugged python 3.7.3 testing program:

Connecting 64 DS18B20 Sensors

(2) My DS18B20s are prewired to a popular cheapie 3 pin keyed connector, so you don't need to do any RJ11 style crimping. You need to DIY simple signal routing breakouts to do star or daisy chain connections.

(3) I have tested my config for Rpi3B+ and also Rp4B, but with wires only about 60 cm long. I have not tested daisy chaining too many devices. I read that you need to use CAT5 like twisted pair cable for very long wires. You may find references in my answer manufacturer's app notes on what extenders and buffers to use for very long wires.

(4) So far I only found one driver, python3-w1ThermSensor-1.0.5 good for Rpi3B+ and Rpi4B. Many other old drivers are for jessie only and do not work for stretch or buster.

tlfong01
  • 4,665
  • 3
  • 10
  • 24
  • thanks for linking to that it helped spawn some great ideas for experimentation. Do you by any chance have a parts list of all arts you used? Not to push it but with pics? Mainly looking for links to the raspberry pi model used, the green board you used to connect the ds18b20s to (not sure the name of the board). Also the ds18b20s. I’ve been suggested that many aftermarket ds18b20s have slightly off readings. In the environment I’m working with I need accurate readings. Thanks in advance. – Philoxopher Sep 01 '19 at 09:29
  • 1
    I am using DS18B20 for home automation, so 0.1 degree C accuracy is OK for me. You might like to read the following for more details about DS18B20 accuracy. (1) ADC in Digital Temperature Sensor DS18B20 https://electronics.stackexchange.com/questions/94516/adc-in-digital-temperature-sensor-ds18b20, (2) And I usually google AliEXpress "DS18B20", "DHT22" or "Prototyping boards" etc, then goto to TaoBao where I can get same thing and almost always even cheaper. The CJMCU stuff are usually more trustworthy than eBay. Of course you should search Element14 for serious projects. – tlfong01 Sep 02 '19 at 01:58
  • what is the 3 pin breakout board you are using. I am unable to find it anywhere. Thanks. – Philoxopher Sep 02 '19 at 05:12
  • 1
    I searched my TaoBao purchase orders and found the following: (1)https://item.taobao.com/item.htm?spm=a1z1r.7974869.0.0.269c3ad46uwo82&id=589234768294 (2) https://item.taobao.com/item.htm?spm=a1z1r.7974869.0.0.269c3ad46uwo82&id=597191363202 (3) https://item.taobao.com/item.htm?spm=a1z1r.7974869.0.0.269c3ad46uwo82&id=596749654925 (4) https://item.taobao.com/item.htm?spm=a1z1r.7974869.0.0.269c3ad46uwo82&id=589599475607 (5) https://item.taobao.com/item.htm?spm=a1z1r.7974869.0.0.269c3ad46uwo82&id=567463674535. – tlfong01 Sep 02 '19 at 05:28
  • would it be possible to contact you directly for consulting services regarding this project? – Philoxopher Sep 04 '19 at 11:19
  • @Philoxopher, Ah, let me see. You might like to include in your forum profile your email, blog, or github address. I would let your know if I can help. Cheers. – tlfong01 Sep 04 '19 at 12:12