# 1-Wire: topology limits & design guide

**URL:** <https://forum.hardwario.com/t/1-wire-topology-limits-design-guide/571>\
**Category:** TOWER\
**Created:** [May 1, 2020, 1:21pm UTC](https://forum.hardwario.com/t/1-wire-topology-limits-design-guide/571 "2020-05-01T13:21:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![glomerata](https://forum.hardwario.com/user_avatar/forum.hardwario.com/glomerata/32/464_2.png) [@glomerata](https://forum.hardwario.com/u/glomerata)\
**Post date:** [May 1, 2020, 1:21pm UTC](https://forum.hardwario.com/t/1-wire-topology-limits-design-guide/571/1 "2020-05-01T13:21:48Z")

</div>

Hi,

we started to build a 1-Wire DS18B20 temperature sensors network connected to the Sensor module ([Sensor Module - HARDWARIO Shop](https://shop.hardwario.com/sensor-module/)).

It is relatively easy to deploy a couple of sensors, but our network tends to be more complex and it brings us to a state when some sensors are not read.

Could you please give any **maximal parameters for 1-Wire topology** (limits for length and number of devices) with the Sensor module?

What are **your recommendations for 1-wire network design**?  
(e.g. base on [Guidelines for Reliable Long Line 1-Wire Networks | Analog Devices](https://www.maximintegrated.com/en/design/technical-documents/tutorials/1/148.html))

Thanks!

---

<div class="post-metadata">

**Author:** ![hub.martin](https://forum.hardwario.com/user_avatar/forum.hardwario.com/hub.martin/32/631_2.png) [@hub.martin](https://forum.hardwario.com/u/hub.martin)\
**Post date:** [May 4, 2020, 4:00pm UTC](https://forum.hardwario.com/t/1-wire-topology-limits-design-guide/571/2 "2020-05-04T16:00:06Z")

</div>

Hello,  
that PDF from Maxim is the best what you should stick to. If you share for example sketch of your current topology we can take a look what could be improved.

- Which revision of Sensor Module do you use?
- How many sensors do you have?
- Do you have DS18b20 sensors from us, or other types of 1-Wire sensors? (so we can know what are we dealing with)
- What cabling do you use?

Ideas what to improve/try:

- Try to decrease the pull-up resistor value
- Try to add capacitance to power-rail (1-10 uF accross some sensors)
- Few months ago we’ve [updated in SDK more](https://github.com/bigclownlabs/bcf-sdk/commit/1d3b4bb07e4fde64a6ad5aa4598edc931549a856#diff-850a6e38ea6014e1b6a8881fc141b333) relaxed timing in sensor detection
- [Comment out automatic power-off](https://github.com/bigclownprojects/bcf-radio-pool-sensor/blob/fbc505c2c26e0b96d5d8877ba977756c1e2b4bba/app/bc_ds18b20.c#L202) - it does not have huge power consumption effect, keeping voltage stable on big bus could be better idea

---

<div class="post-metadata">

**Author:** ![hub.martin](https://forum.hardwario.com/user_avatar/forum.hardwario.com/hub.martin/32/631_2.png) [@hub.martin](https://forum.hardwario.com/u/hub.martin)\
**Post date:** [May 25, 2020, 12:25pm UTC](https://forum.hardwario.com/t/1-wire-topology-limits-design-guide/571/3 "2020-05-25T12:25:47Z")

</div>

Hi,  
we did some more improvements in DS18B20 code. If you give me more info (see previous post) and give me the name of firmware you use I could build newer version so you can test it. Or in case you compile firmware yourself, I can guide you how to update SDK and code.

---

<div class="post-metadata">

**Author:** ![hub.martin](https://forum.hardwario.com/user_avatar/forum.hardwario.com/hub.martin/32/631_2.png) [@hub.martin](https://forum.hardwario.com/u/hub.martin)\
**Post date:** [December 3, 2021, 12:14pm UTC](https://forum.hardwario.com/t/1-wire-topology-limits-design-guide/571/4 "2021-12-03T12:14:00Z")

</div>


