mongoose-os-libs / sht31-i2c

Mongoose OS library implementing an I2C driver for SHT31
Apache License 2.0
1 stars 5 forks source link

Problems when using SHT30 Wemos D1 Mini shield #1

Open ebostijancic opened 5 years ago

ebostijancic commented 5 years ago

For some reason this library does not work with every SHT30 sensor (3 sensors of 8 were working with this library) on a wemos D1 mini shield which can be found here:

Wemos D1 SHT30 shield

After forking this library and removing the status1 and status2 check (HEATER enable/DISABLE) the initialization succeeded and I could retrieve temperature and humidity from the sensor.

My changes can be found at: https://github.com/ebostijancic/sht30-i2c

amizer12 commented 3 years ago

I had the same for SHT31 running on ESP32 - when i increased debug level to 3 it initialised properly ( not sure why, maybe due to debug it was just taking slightly more time to initialise and gave the heater the time to properly respond ? No idea) When i used your repo instead it worked right out of the box, Thanks !

garnes91 commented 3 years ago

Same problem, but this repo fixed it! thank you! (had to double check the address to 0x44)

pimvanpelt commented 3 years ago

Does any of garnes91, amizer12 or Emil want to send a PR ?

On Tue, Sep 21, 2021 at 1:05 AM garnes91 @.***> wrote:

Same problem, but this repo fixed it! thank you! (had to double check the address to 0x44)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mongoose-os-libs/sht31-i2c/issues/1#issuecomment-923418575, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACDRSPNN3BDPYXO6YSULCBLUC6447ANCNFSM4HW3T3JQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

-- Pim van Pelt @.***> PBVP1-RIPE - http://www.ipng.nl/

ebostijancic commented 3 years ago

Yes I will do that