element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • More
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • More
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • More
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • More
  • Store
    Store
    • Visit Your Store
    • Choose Another Store
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
1 Meter of Pi
  • Challenges & Projects
  • Design Challenges
  • 1 Meter of Pi
  • More
  • Cancel
1 Meter of Pi
Forum Is Enviro HAT working for you reliably?
  • Blog
  • Forum
  • Documents
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 8 replies
  • Answers 6 answers
  • Subscribers 4 subscribers
  • Views 574 views
  • Users 0 members are here
  • enviro hat
  • 1 meter of pi
  • 1 meter of pi - design challenge
Related

Is Enviro HAT working for you reliably?

ilvyanyatka
ilvyanyatka over 1 year ago

Hello,

I am having issues with Enviro HAT humidity and temperature sensors. I wonder if mine is defected or if I am missing something on how to use it. It is not snapped on Raspberry PI but connected by jumper wires.

1) The first humidity reading is often (not always) more than 90, the second and so on drops down to 30-40

2) In the same room 2 minutes apart humidity value can change up to 15 points. For example, first reading - 42, second - 27

3) Temperature value drops much below real value if humidity grows. For example, in the same room with 22C/40% humidity, if humidifier is running, next reading it 10 minutes will show 16C/55% humidity

 

Do you have any idea why?

TIA

  • Reply
  • Cancel
  • Cancel

Top Replies

  • feiticeir0
    feiticeir0 over 1 year ago +2 suggested

    Hi Victoria.

     

    I'm going to guess that the problem may be the connections - maybe the jumper wires are not well connected to the PINs or some may be faulty ? I had problems before with loose jumper wires…

  • ilvyanyatka
    ilvyanyatka over 1 year ago in reply to feiticeir0 +2

    Thank you Bruno.

     

    When I initially tested it while it was snapped on the PI - the first issue definitely was happening. The one with 90% of humidity readings.

    It will be hard to snap it on now to test the…

  • skruglewicz
    skruglewicz over 1 year ago +2 suggested

    Hi ilvyanyatka

     

    I have the enviro hat connected with jumper wires and the sensor is behaving reasonable well

    in My blog# 10 at this location    I describe my script to check the Humidity in the growing house…

Parents
  • skruglewicz
    0 skruglewicz over 1 year ago

    Hi ilvyanyatka

     

    I have the enviro hat connected with jumper wires and the sensor is behaving reasonable well

    in My blog# 10 at this location    I describe my script to check the Humidity in the growing house.

     

    lI recall the test retuning different readings for Humidity, but the screenshots only display 88%?

    I display the Humidity over time in my chart HERE

     

    I'm away from my project this week but I'll see if I'm getting the same values as you describe.

    when I get a chance.

    Regards

    Steve

    • Cancel
    • Up +2 Down
    • Reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • ilvyanyatka
    0 ilvyanyatka over 1 year ago in reply to skruglewicz

    Thank you Steve!

     

    What exactly is in your code for

    value = RoomHumidity.getValue()

     

    Do you use bme280 object to access Enviro sensor?  Something like

        bus = SMBus(1) 

       bme280 = BME280(i2c_dev=bus)

        AirHumidity = bme280.get_humidity()

       

    Or do you use some other library/object?

     

    Victoria

    • Cancel
    • Up +2 Down
    • Reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • feiticeir0
    0 feiticeir0 over 1 year ago in reply to ilvyanyatka

    This may seem a dumb question, but have you tried with the Pimoroni's examples ?

     

    Because - in their examples - the sensor sits on top of the Raspberry PI, they perform some calculations to remove the average cpu temperature to give a sort of accurate reading of the ambient temperature. and you don't have it that way.

     

    Here's my code, a simple one to read the temperature/humidity (without giving in to cpu temperature):

    import time
    import sys
    
    from bme280 import BME280
    
    
    bme280 = BME280()
    
    
    try:
    
        while True:
            # get data
            print ("Temp: {}".format(bme280.get_temperature()))
            print ("Hum: {}".format(bme280.get_humidity()))
    
            time.sleep(5)
    except KeyboardInterrupt:
        sys.exit(0)

     

    And a run of it for 60 seconds:

     

    Temp: 22.631540955626406
    Hum: 78.25451136740215
    Temp: 31.840742193745086
    Hum: 26.63692386637497
    Temp: 31.831073930848675
    Hum: 26.830281509600262
    Temp: 31.831718481676603
    Hum: 26.85365856716121
    Temp: 31.834618960458556
    Hum: 26.818467172909095
    Temp: 31.838486265644406
    Hum: 26.75399488327368
    Temp: 31.834618960458556
    Hum: 26.91790856236235
    Temp: 31.83913081652463
    Hum: 26.683776162340155
    Temp: 31.834618960458556
    Hum: 26.818467172909095
    Temp: 31.825595248994887
    Hum: 26.871405382322422
    Temp: 31.832040757092273
    Hum: 26.567011411920134
    Temp: 31.829140278392174
    Hum: 26.812795837825956

     

    I have it on top of the RPI, so, the values are acceptable.

    I really don't have the swings of values you describe.

     

    Just try the code and see.

    • Cancel
    • Up +2 Down
    • Reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • ilvyanyatka
    0 ilvyanyatka over 1 year ago in reply to feiticeir0

    Yes, it is the exact code I am using.

    I don't adjust temperature When Enviro was snapped on, the temperature reading was a couple of degrees higher. Now it seems to be accurate when humidity is around 30%. It starts returning wrong values when humidity is over 50%.

     

    Thank you for your help. I guess my sensors are just a bit defective.

    • Cancel
    • Up +1 Down
    • Reply
    • Verify Answer
    • Cancel
Reply
  • ilvyanyatka
    0 ilvyanyatka over 1 year ago in reply to feiticeir0

    Yes, it is the exact code I am using.

    I don't adjust temperature When Enviro was snapped on, the temperature reading was a couple of degrees higher. Now it seems to be accurate when humidity is around 30%. It starts returning wrong values when humidity is over 50%.

     

    Thank you for your help. I guess my sensors are just a bit defective.

    • Cancel
    • Up +1 Down
    • Reply
    • Verify Answer
    • Cancel
Children
No Data
Element14

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2022 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • Facebook
  • Twitter
  • linkedin
  • YouTube