🤖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

    General
    2
    3
    5.0k
    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
      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
        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
          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
          • First post
            Last post