# DS18B20 Question

**URL:** <https://forum.core-electronics.com.au/t/ds18b20-question/11366>\
**Category:** Support\
**Created:** [14 September 2021 04:18 UTC](https://forum.core-electronics.com.au/t/ds18b20-question/11366 "2021-09-14T04:18:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jon13024](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/jon13024/32/810_2.png) [@Jon13024](https://forum.core-electronics.com.au/u/Jon13024)\
**Post date:** [14 September 2021 04:18 UTC](https://forum.core-electronics.com.au/t/ds18b20-question/11366/1 "2021-09-14T04:18:27Z")

</div>

Guys, I have a DS18B20 that I have been using on a breadboard that now needs to go into a proper package for deployment.

At the moment I have been using the full cable length. Is it possible to cut the cable to perhaps 100mm long? It ships with about 500mm of wire and its too long to fit in the deployment box.

Just want to make sure that if I cut the wire it wont screw up the resistance / readings etc.

Thoughts?

Thx  
Jon

---

<div class="post-metadata">

**Author:** ![Trent5487676](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/trent5487676/32/4583_2.png) [@Trent5487676](https://forum.core-electronics.com.au/u/Trent5487676)\
**Post date:** [14 September 2021 04:52 UTC](https://forum.core-electronics.com.au/t/ds18b20-question/11366/2 "2021-09-14T04:52:55Z")

</div>

Hi Jon,

Looking at the product page for [Temperature Sensor - Waterproof (DS18B20) SKU: SEN-11050](https://core-electronics.com.au/temperature-sensor-waterproof-ds18b20.html)  
The example application does advise using a pull-up resistor but this shouldn’t mean you couldn’t also shorten the device’s lead as that resistance will be negligible relative to the pull-up resistor.

 ![image](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/1/1343f94747c98c211ea73d207a5be7d98b3b3e5b.png)

---

<div class="post-metadata">

**Author:** ![Oliver33](https://avatars.discourse-cdn.com/v4/letter/o/a9adbd/32.png) [@Oliver33](https://forum.core-electronics.com.au/u/Oliver33)\
**Post date:** [14 September 2021 04:53 UTC](https://forum.core-electronics.com.au/t/ds18b20-question/11366/3 "2021-09-14T04:53:48Z")

</div>

Pretty sure that should be fine. From memory, the ds18b20s send a digital signal so write length should make no difference (just double check the datasheet).

---

<div class="post-metadata">

**Author:** ![James](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/james/32/4400_2.png) [@James](https://forum.core-electronics.com.au/u/James)\
**Post date:** [14 September 2021 04:57 UTC](https://forum.core-electronics.com.au/t/ds18b20-question/11366/4 "2021-09-14T04:57:05Z")

</div>

Hey Oliver and all,

While it’s a finicky digital protocol, it’s still a digital protocol, so you should either get accurate measurements or failed measurements (85\*C sometimes get spat out on a failed measurement).

The guide from Maxim goes over the main problems when using a bunch of these sensors at range:  
[https://www.maximintegrated.com/en/design/technical-documents/tutorials/1/148.html](https://www.maximintegrated.com/en/design/technical-documents/tutorials/1/148.html)

It may not apply to you but it’s a great guide that helped me when I was working with these  
-James

---

<div class="post-metadata">

**Author:** ![Jon13024](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/jon13024/32/810_2.png) [@Jon13024](https://forum.core-electronics.com.au/u/Jon13024)\
**Post date:** [14 September 2021 23:12 UTC](https://forum.core-electronics.com.au/t/ds18b20-question/11366/5 "2021-09-14T23:12:00Z")

</div>

Thanks guys.  
I thought some time ago that I had read (probably on this forum somewhere) that it could be shortened but I couldnt find any reference when I searched again.]

I’m already using a 4k7 resistor so all good on that front. I’ll chop it and see how I go!

Thanks again,  
Jon
