Mini 5+ and DHT21 sensor
-
now she is printing and the sensor appears fine ... weird really werid ....
-
Are you using shielded cable to connect the DHT21? The one-wire bus is sensitive to noise (like I2C) so if you use unshielded cable then it is very likely to pick up interference from any stepper motor cables that it runs close to.
-
@dc42 nothing related to interference sorry
the issue appears it seems when the printer is resting. No prob when it is printing it has been 3 hours and not a single glitch ... something in the FW isn't right; the issue present itself at rest status
Will an external feed of 5V DCC make a difference ?
It seems something changes when the board is resting...This is what happens after a print of 7h with zero problems with the sensor...
...print finishes and there it is the sensor goes crazy...again... -
@oc_geek said in Mini 5+ and DHT21 sensor:
Will an external feed of 5V DCC make a difference ?
It seems something changes when the board is resting...I doubt that providing external 5V power will make any difference. I don't have a DHT21, but I have a DHT22 that I can leave attached to an idle Duet 3 Mini to see if I get any temperature jumps.
-
@dc42 thanks. Yes please if you can that would be really appreciated.
It's a pity because in print time it is rock solid and works greatI'll try the 5V external power too; it does not hurt and i'm rotating the PSU as i made a more solid bracket
thanks for keeping me posted
-
@dc42 it appears that adding the external 5V DCC EXT power actually solved the glitches.
Yesterday it was fine all day
and i'm just out of a 17hours night print and it seems fine again.
I hope that's how it stays
thanksand again later 2h all seems fine
-
That's interesting, I didn't expect it to make any difference.
I powered up a Duet 3 Mini yesterday and left it idle all day, and I didn't see anything unusual about the DHT22 readings or the temperature graph that they were displayed on.
-
@dc42 don't know...however now it works very well
It might be that my Duet 5+/2+ is fully loaded (i used all connectors) -
@oc_geek said in Mini 5+ and DHT21 sensor:
@dc42 said in Mini 5+ and DHT21 sensor:
M308 S10 P"io4.out+io4.in" Y"dht21" A"Chbr Temp [C]"
tested with Rel 3.3 Beta 1
it is working now, thanks
What command do you use to get the humidity?
-
@lbi As in the other posts, you need to connect the signal to both IOx.in and IOx.out from the DHT. 3.3V feed from that connector.
Code for my setup is
;DHT Sensor on IO4 M308 S10 P"io4.out+io4.in" Y"dht22" A"Chbr Temp[C]" M308 S11 P"S10.1" Y"dhthumidity" A"Chbr Hum[%]"
HTH, Paul.