# DHT22 freeze for no reason

**URL:** <https://discourse.nodered.org/t/dht22-freeze-for-no-reason/20174>\
**Category:** Hardware\
**Created:** [10 January 2020 20:32 UTC](https://discourse.nodered.org/t/dht22-freeze-for-no-reason/20174 "2020-01-10T20:32:49Z")\
**Posts on this page:** 9\
**Page:** 3

<div class="post-metadata">

**Author:** ![janvda](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/janvda/32/234_2.png) [@janvda](https://discourse.nodered.org/u/janvda)\
**Post date:** [21 January 2020 10:03 UTC](https://discourse.nodered.org/t/dht22-freeze-for-no-reason/20174/41 "2020-01-21T10:03:48Z")

</div>

I have read the claims about not mixing old and new batteries.  
I am still skeptical about it if this would also apply to my setup were the current is anyhow very low.  
This is also not the topic of this forum but it would make a nice IoT project to prove the real effects of replacing only one battery. 😉

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [21 January 2020 10:21 UTC](https://discourse.nodered.org/t/dht22-freeze-for-no-reason/20174/42 "2020-01-21T10:21:43Z")

</div>

If you always replace them together with two (or whatever) of the same type then they will both run out at virtually the same time, so what is the point in not changing them both? In addition it removes the very real risk of reverse driving a flat battery which can cause leakage, or if they are rechargeable then irrecoverable damage to the battery.

---

<div class="post-metadata">

**Author:** ![pyromana](https://avatars.discourse-cdn.com/v4/letter/p/7cd45c/32.png) [@pyromana](https://discourse.nodered.org/u/pyromana)\
**Post date:** [21 January 2020 14:10 UTC](https://discourse.nodered.org/t/dht22-freeze-for-no-reason/20174/43 "2020-01-21T14:10:42Z")

</div>

I have one on GPIO13 and one on GPIO6, both GPIO are configured as 1Wire.  
so each has his own pullup.  
I'll change to have everything either on GPIO4 or one of the 2 above.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [21 January 2020 14:41 UTC](https://discourse.nodered.org/t/dht22-freeze-for-no-reason/20174/44 "2020-01-21T14:41:17Z")

</div>

There is nothing wrong with having them on separate GPIO as far as I know, provided the processor can handle multiple at the same time. They are bit-bashed as far as I know so there may be some significant overhead. Normally they would all be on one however, that is one of the features of 1-wire, the multidrop capability.

---

<div class="post-metadata">

**Author:** ![pyromana](https://avatars.discourse-cdn.com/v4/letter/p/7cd45c/32.png) [@pyromana](https://discourse.nodered.org/u/pyromana)\
**Post date:** [23 January 2020 21:19 UTC](https://discourse.nodered.org/t/dht22-freeze-for-no-reason/20174/45 "2020-01-23T21:19:20Z")

</div>

here you go

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/c/5c82e635603650bc79262ff30df8c5af6294284d.png)

it works like a charm !  
thanks for the help

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [23 January 2020 21:50 UTC](https://discourse.nodered.org/t/dht22-freeze-for-no-reason/20174/46 "2020-01-23T21:50:07Z")

</div>

What did you do to make it work? Put them all on GPIO4?

---

<div class="post-metadata">

**Author:** ![pyromana](https://avatars.discourse-cdn.com/v4/letter/p/7cd45c/32.png) [@pyromana](https://discourse.nodered.org/u/pyromana)\
**Post date:** [24 January 2020 05:42 UTC](https://discourse.nodered.org/t/dht22-freeze-for-no-reason/20174/47 "2020-01-24T05:42:19Z")

</div>

no, I kept trying with GPIO13 and GPIO6. apparently the connections where not done corectly in the first time, maybe or there were an issue with the loading of the drivers.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [26 January 2020 08:35 UTC](https://discourse.nodered.org/t/dht22-freeze-for-no-reason/20174/48 "2020-01-26T08:35:24Z")

</div>

It's good to know that multiple 1-wire buses can be connected, thanks for that.

---

<div class="post-metadata">

**Author:** ![pyromana](https://avatars.discourse-cdn.com/v4/letter/p/7cd45c/32.png) [@pyromana](https://discourse.nodered.org/u/pyromana)\
**Post date:** [26 January 2020 10:58 UTC](https://discourse.nodered.org/t/dht22-freeze-for-no-reason/20174/49 "2020-01-26T10:58:13Z")

</div>

j'ai suvi ceci:

> **[1-WIRE at Raspberry Pi GPIO Pinout](https://pinout.xyz/pinout/1_wire#)**
>
> Raspberry Pi One-Wire pins

[Previous page](https://discourse.nodered.org/t/dht22-freeze-for-no-reason/20174.md?page=2)
