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

DHT22 shows 2000°C and 2000% Humidity

Scheduled Pinned Locked Moved Solved
General Discussion
3
8
415
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.
  • undefined
    gringo
    last edited by 6 May 2023, 15:02

    Hello everybody,

    i have installed a DHT22 but in the DWC it shows 2000°C and 2000% humidity.

    This is my configuration:

    M308 S12 P"io2.out+io2.in" Y"dht22" A"Bauraumtemperatur"
    M308 S13 P"S12.1" Y"dht-humidity" A"Bauraumfeuchte"

    Installed as follows:

    VCC to 3,3V
    Data to io2_in
    GND to GND

    Any ideas why i get this temperature and humidity shown?

    Thanks for helping me.

    Regards
    Lars

    undefined 1 Reply Last reply 6 May 2023, 16:45 Reply Quote 0
    • undefined
      dc42 administrators @gringo
      last edited by 6 May 2023, 16:45

      @gringo which Duet?

      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

      1 Reply Last reply Reply Quote 0
      • undefined
        gringo
        last edited by 6 May 2023, 17:10

        Duet 3 6HC Firmware 3.4.5

        undefined 1 Reply Last reply 6 May 2023, 18:20 Reply Quote 0
        • undefined
          droftarts administrators @gringo
          last edited by 6 May 2023, 18:20

          @gringo see https://docs.duet3d.com/en/User_manual/Connecting_hardware/Temperature_connecting_DHT#wiring

          On 6HC

          Connect the DHT I/O line to … one of the IOx.OUT pins.

          Your config addresses two pins (only suitable for Mini 5+), should be the one pin you actually use for data:

          M308 S12 P"io2.out" Y"dht22" A"Bauraumtemperatur[C]"
          M308 S13 P"S12.1" Y"dht-humidity" A"Bauraumfeuchte[%]"

          Ian

          Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

          undefined 1 Reply Last reply 7 May 2023, 08:30 Reply Quote 0
          • undefined
            gringo @droftarts
            last edited by 7 May 2023, 08:30

            @droftarts

            I changed the config as you wrote, but the result is the same

            undefined 1 Reply Last reply 7 May 2023, 09:50 Reply Quote 0
            • undefined
              droftarts administrators @gringo
              last edited by 7 May 2023, 09:50

              @gringo did you change the wiring? The DHT one-wire protocol sends data both ways. On the 6HC this requires an output pin, not an input pin. Move the data wire from io2.in to io2.out.

              Ian

              Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

              undefined 1 Reply Last reply 7 May 2023, 09:52 Reply Quote 0
              • undefined
                gringo @droftarts
                last edited by 7 May 2023, 09:52

                @droftarts

                ah ok, I don´t changed the wiring. I will do it

                undefined 1 Reply Last reply 7 May 2023, 15:49 Reply Quote 0
                • undefined
                  gringo @gringo
                  last edited by 7 May 2023, 15:49

                  @gringo

                  thats it. Now it works.

                  Thanks a lot @droftarts

                  1 Reply Last reply Reply Quote 0
                  • undefined jay_s_uk marked this topic as a question 7 May 2023, 16:48
                  • undefined jay_s_uk has marked this topic as solved 7 May 2023, 16:48
                  7 out of 8
                  • First post
                    7/8
                    Last post
                  Unless otherwise noted, all forum content is licensed under CC-BY-SA