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

    DHT22 and DuetWifi

    Scheduled Pinned Locked Moved
    General Discussion
    1
    2
    853
    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.
    • resamundefined
      resam
      last edited by

      I'm trying to hook up a DHT22 (well, technically a AM2302) to my DuetWifi.
      I used https://duet3d.com/w2/images/0/0b/Duet2ndGen_connectionsv1.4.png:

      • Expansion Pin 3: 3.3V

      • Expansion Pin 2: GND

      • Expansion Pin 9: Data

      Expansion Pin 9 is labeled "E3_STOP", and according to https://duet3d.com/wiki/DuetWifi_Pinout_table, this is "CS6", and https://duet3d.com/wiki/G-code#M305:_Set_temperature_sensor_parameters says to use that.

      Side note for DC42: there are two E3_STOPs in the pinout table - I guess Pin 98 should be E4_STOP?

      So now I try to setup the virtual heater so I see my DHT22 temp+humidity in DWC. Channel 400 & 401 are Temperature and Humidity of the DHT22.
      I guess this has to be a virtual heater, and 100,101,102 are already taken, so I wanted to start with 103.

      M305 P103 X400 T22 S"Ambient"
      Error: unable to use sensor channel 400 on heater 103
      
      

      Unfortunately this error messages doesn't really tell me much. Did I use the wrong pins and the communication failed? Did I use an invalid heater number? Do I need to setup a chamber heater first?

      Any help would be much appreciated!

      1 Reply Last reply Reply Quote 0
      • resamundefined
        resam
        last edited by

        /me …mhm I should probably add my firmware version to this post...
        /me Doh!

        I'm using 1.19. No wonder it didn't work 😛
        DHT support was added with one of the 1.20 betas.

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