Mini 5+ and DHT21 sensor
-
wow in + out LOL would never have thought about that
my wires are ready !
thanks
-
This is now released, see https://forum.duet3d.com/topic/21597/reprapfirmware-3-3beta1-now-available.
-
@dc42 Thank you for the prompt feedback. Will check it out, test and report back
-
@dc42 just to clarify the daughter board cs pins can be used if 10k resistor is unsoldered and pads are bridged? or all daughter board cs pins can't handle interrupts?
-
@MikeS which daughter board do you ref to ?
-
@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
-
@oc_geek i thought you were using the daughterboard connection for the DHT which is made to be used with this: https://duet3d.dozuki.com/Wiki/PT100_temperature_sensor_daughter_board. Now i saw that you used the 12864_EXP* one. I don't understand if all expansion / daughterboard SPI pins can't use interrupts, or maybe some have it but they have the 10k resistor. In the second case the resistor could be unsoldered and, with the pads bridged, only one pin used for I/O.
-
no i do not use any Temp DB as the mini 5+ has direct support for DHT21
i was using the Temp DB plug to get the cs pin but it doesn't work so..
now I'm using the IO4 5 pin receptacle and with the Y cable (in and out bridged to signal) it works (with rel 3.3 beta1)
-
@MikeS the SPI appears to do not support interrupts, yes
-
@dc42 I have to report that it seems there are still some issues in the Rel 3.3 Beta 1
as by time to time the sensor reports 2000*C , not sure if there are better fixes in the works....it MIGHT be related to the fact that the steppers go in stand by...but not sure really... it either works very well or read 2000*C
it is doing it all the time...
-
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.