Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    DHT 22 I/O error on Duet 3MB6HC

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    3
    4
    227
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Print3dundefined
      Print3d
      last edited by Print3d

      Hi,

      I'm working on integrating the Duet 3 MB6HC board into my 4th printer (ran duet 2 wifi + duex5 on past builds) . For some unknown reason, I am repeatedly seeing error messages when trying to setup a DHT22 into the system:
      Sensor 3 (Chamber Temp) type DHT-temperature using pin io6.in, reading 2000.0, last error: sensor I/O error, sensor type DHT22
      M308 S4
      Sensor 4 (Chamber Hum[%]) type DHT-humidity, reading 2000.0, last error: success, additional output 1 of sensor 3

      I'm running 3.2-beta2 on the board in standalone mode (without a pi). My config.g code is:
      M308 S3 P"io6.in" Y"dht22" R2200 A"Chamber Temp" ; define DHT22 temperature sensor
      M308 S4 P"S3.1" Y"dhthumidity" R2200 A"Chamber Hum[%]" ; Attach DHT22 humidity sensor to secondary output of temperature sensor

      In terms of connections, I've tried io5.in, io6.in and SPI.CS1 on the TempDB pins. I've also tried to power the DHT22 with 5v and 3.3v although only 3.3v while plugged into CS1 as I'm not sure if 5v would fry the pin. I've also tried with and without an explicit R value, using a 2.2k Ohm pullup resistor going into the DHT22 and using a "0." at the start of the pin name as per a forum post I read but still nothing...

      I have no idea what I'm doing wrong as I've used a ton of these sensors for arduino projects in the past. Any help would be greatly appreciated.

      1 Reply Last reply Reply Quote 0
      • Phaedruxundefined
        Phaedrux Moderator
        last edited by

        Check out this thread> https://forum.duet3d.com/topic/14146/duet3d-dht-22?_=1605321462075

        Z-Bot CoreXY Build | Thingiverse Profile

        1 Reply Last reply Reply Quote 0
        • dc42undefined
          dc42 administrators
          last edited by dc42

          Use either a CS pin or an io#.out pin, with a 4K7 pullup resistor to +3.3V, and 3.3V power. The io#.in pins are not suitable.

          Duet WiFi hardware designer and firmware engineer
          Please do not ask me for Duet support via PM or email, use the forum
          http://www.escher3d.com, https://miscsolutions.wordpress.com

          Print3dundefined 1 Reply Last reply Reply Quote 1
          • Print3dundefined
            Print3d @dc42
            last edited by

            @dc42 4.7k ohm pullup resistor on CS1 worked, thanks for your help!

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Unless otherwise noted, all forum content is licensed under CC-BY-SA