🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Measurements (temp/humi) by DHT12 on ENV Hat

    Scheduled Pinned Locked Moved General
    3 Posts 2 Posters 6.1k 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.
    • A Offline
      armbas
      last edited by armbas

      Hi all,
      i trying to compare measurements (temp/humi) from DHT12 into ENV Hat and DHT22.
      I used a DHT22 attached to an ESP32 and ENV Hat attached to M5StickC and this is result
      0_1586030043377_test.jpg

      i haven't an external meter to check the right parameters, but seems that DHT22 measurements are more realistic.
      Is possible that measurements of the DHT22 into ENV Hat are so far from the real ones ?

      may I have been wrong to call the functionality ?
      For DHT22 i copied DHT12.h and DHT12.cpp from example and use in my project as follow

      DHT12 dht12;
      
      setup() {
          M5.begin();
          Wire.begin(0,26);
          ...
      }
      
      
      loop() {
          ...
          float actualTemp = dht12.readTemperature(1);
          float actualHumi = dht12.readHumidity();
      ...
      }
      
      1 Reply Last reply Reply Quote 0
      • ajb2k3A Offline
        ajb2k3
        last edited by

        The reading from the HAT are not correct as the HAT is affected by heat given off by the M5StickC.
        Also currently its hard to calibrate the sensor correctly but some members of the community had been working hard to find solutions to this issue.

        UIFlow, so easy an adult can learn it!
        If I don't know it, be patient!
        I've ether not learned it or am too drunk to remember it!
        Author of the WIP UIFlow Handbook!
        M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

        1 Reply Last reply Reply Quote 0
        • A Offline
          armbas
          last edited by

          Hi ajb2k3,
          thanks for your response.

          I found this thread that explain issue M5 Stickc Arduino samples - Temperature reading issue

          but i can not find any thread that report some solution, could you help me ?

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post