• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

DHT22 problem

Scheduled Pinned Locked Moved Troubleshooting
10 Posts 2 Posters 5.5k Views 1 Watching
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.
  • B Offline
    barnosch
    last edited by Dec 5, 2017, 8:10 AM

    so you first installed the sensor and testet the output with

    sudo ./dht22 c 22
    and
    sudo ./dht22 h 22
    

    Please check if your wiring is correct in the wiringPi numbering.
    If your sensor is connected to GPIO 22this should work.

    Mine does (exept the humidity mostly shows 99.9%, but seems like a sensor issue)

    The tutorial you linked is way to complicated in our case. Just do it like it is described in
    https://github.com/nebulx29/dht22

    1 Reply Last reply Reply Quote 1
    • G Offline
      gauka12345
      last edited by Dec 5, 2017, 9:25 AM

      Hi thank you for reply… i have tested the outputs with same code, and it doesn’t work
      the sensor is connected to gpo22 , 8th pin from the top, 0_1512465930779_20171204_230304.jpg

      1 Reply Last reply Reply Quote 0
      • B Offline
        barnosch
        last edited by Dec 5, 2017, 10:56 AM

        Test the output in a console directly on the pi in a active SSH session.

        If it is not working there, the mirror can’t show it, since it does the same.

        Fix your wireing and doublecheck the connected pins. Ground correct? Resistor solded well between the correct pins?
        Maybe you mixed up data and ground?

        https://de.pinout.xyz/pinout/wiringpi#

        1 Reply Last reply Reply Quote 0
        • G Offline
          gauka12345
          last edited by Dec 6, 2017, 7:58 PM

          OK i have reinstalled everything please see pictures with the steps still no luck the sensor wont read…

          my wiring :

          0_1512590254346_20171206_194717.jpg
          code :
          0_1512590284088_20171206_194203.jpg
          0_1512590292188_20171206_194150.jpg

          1 Reply Last reply Reply Quote 0
          • B Offline
            barnosch
            last edited by Dec 7, 2017, 8:07 AM

            hmm. looks not so bad.
            It can take some time to read the sensor (~3-5 sec). But i guess you waited longer after the command?

            My DHT22 looks slightly different, an i had to solder a resistor between two pins.
            Maybe yours is ready made.

            Are you sure that 3.3V are enough? You could try to put your + line to pin 2 or 4 (right next to the ground)
            Should look like this;)
            0_1512634029578_fda37b6c-270a-4546-9d6f-fbdda7db2ddc-image.png

            G 1 Reply Last reply Dec 7, 2017, 7:19 PM Reply Quote 1
            • G Offline
              gauka12345 @barnosch
              last edited by Dec 7, 2017, 7:19 PM

              Barnosh thanks for coming back!!.. i have run this sensor from 3v and 5 v with no changes, yes i been waiting round 3min or even longer, managed to brew capa and sensor was still reading when i get back. It does work on Python code , the sensor is soldered to pcb and it has got 2k7 resistor across and CAP, i will take it to work tomorrow and i will solder resistor and see whats this change anything … i will let you know, so far i have bougth this to play with

              https://uk.gearbest.com/living-appliances/pp_344665.html

              Regards
              Lukas

              1 Reply Last reply Reply Quote 0
              • B Offline
                barnosch
                last edited by Dec 8, 2017, 6:37 AM

                hah, that would have been my next suggestion… take the xiaomi stuff.
                You can jsut throw it everywhere in your house, and you don’t need a wired connection.

                Here in the bottom.
                As you can see the humidity from the sensor is not showing correctly. Need to buy another one or … even better take another Xiaomi sensor ;)
                0_1512714886762_0476e48e-d452-4f4e-a526-b08d6a388a9a-image.png

                Don’t forget, that you need the Xiaomi Gateway in order to get the stuff to work

                1 Reply Last reply Reply Quote 1
                • G Offline
                  gauka12345
                  last edited by Dec 8, 2017, 9:53 PM

                  hey barnosch !!! too late i got the sensors with out getaway , LOL typical me…

                  anyway… i have soldered 10k resistor across 1st and second leg of the sensor … still do not working , so surly it has to be faulty sensor … i really do not know , i have spent too much time on this anyway… thank you for your support, you are star!! mate ,i will let you know how the xiaomi goes once i got the gateway lol ;-)

                  Regards
                  LuK

                  1 Reply Last reply Reply Quote 0
                  • B Offline
                    barnosch
                    last edited by Dec 9, 2017, 4:30 PM

                    you’re welcome.
                    This is the next topic for you …
                    https://forum.magicmirror.builders/topic/5084/mmm-xiaomi-temperature-and-humidity-from-your-smarthome
                    ;)

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    1 / 1
                    • First post
                      6/10
                      Last post
                    Enjoying MagicMirror? Please consider a donation!
                    MagicMirror created by Michael Teeuw.
                    Forum managed by Sam, technical setup by Karsten.
                    This forum is using NodeBB as its core | Contributors
                    Contact | Privacy Policy