Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Hardware
  3. DHT22 generates off scale values

DHT22 generates off scale values

Scheduled Pinned Locked Moved Hardware
spikedht22pro mini
7 Posts 3 Posters 3.4k Views 5 Watching
  • 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.
  • Pavel HrudkaP Offline
    Pavel HrudkaP Offline
    Pavel Hrudka
    wrote on last edited by Pavel Hrudka
    #1

    Hi.
    Iam building battery node for temperature.
    Before I move to battery related stuff I wanted to have two nodes up and running. In that way I can have reference node which is powered from USB DC 5V and battery powered node.

    This way I could evaluate battery nodes measurements before moving in to production.

    BTW: All nodes are hooked to NRF radio, I did not mentioned it before. That is why there is 4.7 uF capacitor.

    1. I left my second node powered from programmer, but its measurements were total different. So I connected it to the same 5V DC as the first one. Its values are now almost identical.
    2. However, from time to time I see reading offscale values (spikes).

    alt text

    R = 4K7
    V = 4.7uF

    Here are some graphs
    alt text
    and
    alt text

    Iam using
    Arduino 1.6.7
    DHT sensor library by Adafruit v 1.2.3 (also Adafruit DHT unified 1.0.0)
    MySensors library 1.5.4
    OpenHab 1.8.3 with openHab binding.

    Sketch is here: 0_1465243821164_HumiditySensor_101.ino

    Only reference to similar problem I found here.
    Which says that when connected to 5V problem disappeared. But DHT22 should be running fine from 3V?

    Does anyone have idea what could cause these occasional spikes?
    Please help.

    Thank you.
    PH

    UPDATE 2016-06-07 DHT22 connected to 5V suply. Spikes are still there. Ill try to move capacitor closer to radio.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      drock1985
      wrote on last edited by
      #2

      The DHT22 temperature sensor requires a minimum of 3.3v to operate; any less and if fluctuates. The only luck I have ever had with the DHT22 is powered from a stable 5v supply; forget about 3.3v.

      The SI7021 and BMP 180 /BME 280 do operatore @ 3.3v though, and quite well on battery power.

      My Projects
      2 Door Chime Sensor
      Washing Machine Monitor

      1 Reply Last reply
      0
      • Pavel HrudkaP Offline
        Pavel HrudkaP Offline
        Pavel Hrudka
        wrote on last edited by
        #3

        Hi thank you for responding.
        Interesting thing for me is that first Arduino does not show the spikes.

        Anyway I tried to connect DHT22 sensor on second one to 5V DC from USB and will monitor it.

        Maybe its in the way that DHT22 likes 3.3V and any fluctuations will lead to instabilities?

        Cheers PH

        alexsh1A 1 Reply Last reply
        0
        • Pavel HrudkaP Pavel Hrudka

          Hi thank you for responding.
          Interesting thing for me is that first Arduino does not show the spikes.

          Anyway I tried to connect DHT22 sensor on second one to 5V DC from USB and will monitor it.

          Maybe its in the way that DHT22 likes 3.3V and any fluctuations will lead to instabilities?

          Cheers PH

          alexsh1A Offline
          alexsh1A Offline
          alexsh1
          wrote on last edited by
          #4

          @Pavel-Hrudka I have DHT22 on Particle Photon, which is 3.3V. Your power supply must be rock solid and this is not the best sensor for batteries.

          1 Reply Last reply
          0
          • Pavel HrudkaP Offline
            Pavel HrudkaP Offline
            Pavel Hrudka
            wrote on last edited by
            #5

            Connected DHT22 to 5V suply and spikes are still present.
            Ill try to move capacitor closer to radio to decouple it from the rest.

            Cheers.

            1 Reply Last reply
            0
            • D Offline
              D Offline
              drock1985
              wrote on last edited by
              #6

              You could try this. Solder your 4.7uf cap right to the GND+VCC pins on the NRF radio. That would at least isolate that.

              IF not, you may have a bad radio too.

              My Projects
              2 Door Chime Sensor
              Washing Machine Monitor

              1 Reply Last reply
              0
              • Pavel HrudkaP Offline
                Pavel HrudkaP Offline
                Pavel Hrudka
                wrote on last edited by
                #7

                Just to let you know, that best result I got was when I changed the DHT library (sparkfun) for the one with this sketch. with this sketch.

                Thank toy for your time.
                PH

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                18

                Online

                11.7k

                Users

                11.2k

                Topics

                113.1k

                Posts


                Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • MySensors
                • OpenHardware.io
                • Categories
                • Recent
                • Tags
                • Popular