Mini 5+ and DHT21 sensor
-
The solution will be to connect the DHT sensor to one of the 5-pin IO connectors. The signal wire will need to be connected to both the iox.in and iox.out pins. The Vcc and ground pins can be connected to 3v3 and GND on the same connector. The firmware support will be in RRF 3.3beta1, due to be released shortly.
-
ohh great that's where it was before... damn cut again and rewire
So i have to Y the signal to BOTH in and out pins ?
@dc42 and the configuration in firmware what pin would it call in
Sxx P"..." ?P.S. I think you would concur that this a pretty weird wiring setup... wonder how come the cs pins are as they are...
thanks
-
The issue is that on the MCU used in the Duet 3 Mini, only some pins have a pin change interrupt facility. We assigned the available interrupts to input pins. However, the input pins have a 10K series resistor to make them tolerant of high input voltages, so they can't be used as outputs in this application.
The configuration line you will need is this or similar:
M308 S10 P"io4.out+io4.in" Y"dht21" A"Chbr Temp [C]" ; Set DHT21 for chamber temp
I have this working now.
-
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.