[SOLVED] Can anyone verify that HTU21D module is not buggy? #1063
Replies: 11 comments
-
Posted at 2018-01-31 by @gfwilliams @tom.gidden / @tomgidden and @luwar might have some ideas as they have been involved in this module... I'm afraid I don't have one here to test with. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-01-31 by Frida Your code adapted to pico, runs well on my pico.
And output.
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-01-31 by luwar Yes, the HTU21D is a SHT2x clone or vice versa. @Jean-Philippe_Rey Which board do you use? I tested the module with a Pico. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-01-31 by @yerpj Synchronous methods gives me the same results...
I am using a custom board based on NRF52. The firmware image is I cannot easily check on one of my Picos because the sensor is really tiny and difficult to unsolder.
Well if |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-01-31 by DrAzzy Can you hold the NRF in reset (so the pins tristate), and connect to SDA/SCL/Gnd lines, so you can connect to a pico or anything? Try both hardware and software I2C if you can. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-01-31 by @gfwilliams If you don't touch the wires used from JS code then they should hopefully be tristate anyway. ... but as you say, if it was amazingly dry (or wet) then you'd expect a value out of range... But it's unlikely you'd be getting exactly 0 as a humidity reading. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-01-31 by tom.gidden (For my part, as the original author of the Espruino module, I can't say. It worked when I wrote it, but I've long since switched to using a BME280 sensor for combined pressure, temperature, humidity. I've been meaning to upgrade to the BME680 that also does VOC air quality measurements. Sorry I'm of no help.) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-02-01 by @yerpj I put a logic analyzer on the bus. After requesting humidity with
I confirm, the sensor sends zero values (last three 0x00) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-02-01 by @yerpj OK guys that's not a problem related to code... |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-02-01 by @gfwilliams Interesting - thanks! I'll add a note to the docs about that. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-12-06 by user122043 Hi Jean I had the semi-same problem with HTU21D. It returned with open circuit humidity and temperature a lot of times. After it worked again (or not :)). The final solution was: I used 1K resistors to pull up the bus lines because of 4 devices on it. This was the mistake. with 0.5K it also did not worked, but with 2.7K all of my sensors became available immediately. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-01-31 by @yerpj
Dear all,
I just tried the module HTU21D (http://www.espruino.com/HTU21D) and it seems that I can get the temperature quite accurately but the humidity ever returns
-6
.I figured out that the HTU21D may be compatible with the Sensiron SHT21. I tried to used the module
SHT2x
instead. As before, temperature is correctly read but humidity returnsnull
.Did anyone use this/those modules recently and can confirm they work as expected?
Thank you!
my code:
And when I ask for
temperature
andhumidity
I get:Beta Was this translation helpful? Give feedback.
All reactions