HDC1080 in dev with strange temperature value

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
TheBarz
New user
Posts: 4
Joined: 22 Sep 2020, 16:44

HDC1080 in dev with strange temperature value

#1 Post by TheBarz » 12 Nov 2020, 18:30

Hi to all !
I 've got some trouble since i done a factory reset and upload las firmware on my NodeMCU8266 and HDC1080 sensor connected.
Software displayed wrong temperature display compare with BMP280 as -39.97°C vs 22,5°C. On log is the same.
In the opposite way relative humidity value seems to be correct like 50.7%

I done a change with a new sensor spare and it's a same.

Are they somes INO buggy thing with this sensor ?

Thx to all.

TD-er
Core team member
Posts: 8750
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: HDC1080 in dev with strange temperature value

#2 Post by TD-er » 12 Nov 2020, 20:18

Can you try running at a lower I2C clock speed?
Either tick the "Force Slow I2C speed" in the task settings, or lower the 400 kHz default to 200000.
For now you need to reboot to make changed the I2C clock settings active (fix is already merged, not yet included in a nightly build)

User avatar
ThomasB
Normal user
Posts: 1065
Joined: 17 Jun 2018, 20:41
Location: USA

Re: HDC1080 in dev with strange temperature value

#3 Post by ThomasB » 12 Nov 2020, 20:47

I'll add a some more things to do:
1. Reduce sensor's wire length. For testing, keep it very short (under 8cm). After it is confirmed working you can attempt to increase wire length.
2. Confirm the SDA and SCL pullup resistors values are appropriate. 4.7K ohms is typical if wire length is reasonable.
3. Run the i2cScanner tool multiple times. Confirm that address 0x40 is reliably reported each time.

BTW, a temperature of -39.97 means the raw sensor reading is all zeros. So I think there is a i2c communication issue. All the suggestions provided so far will help reduce common I2C problems.

And if you need more help then I advise you provide more info. Such as info to your sensor module (e.g. vendor link), a clear photo of the wiring, and screenshot of the device settings.

- Thomas

User avatar
Ath
Normal user
Posts: 3515
Joined: 10 Jun 2018, 12:06
Location: NL

Re: HDC1080 in dev with strange temperature value

#4 Post by Ath » 12 Nov 2020, 22:23

And as the definition of 'last firmware' is somewaht ambigous, please provide the name of the .bin file as that is the most informative.
/Ton (PayPal.me)

TD-er
Core team member
Posts: 8750
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: HDC1080 in dev with strange temperature value

#5 Post by TD-er » 12 Nov 2020, 22:27

Ath wrote: 12 Nov 2020, 22:23 And as the definition of 'last firmware' is somewaht ambigous, please provide the name of the .bin file as that is the most informative.
At least call it "latest", or else one may think I'm done with it ;)

TheBarz
New user
Posts: 4
Joined: 22 Sep 2020, 16:44

Re: HDC1080 in dev with strange temperature value

#6 Post by TheBarz » 13 Nov 2020, 09:32

Thanks for your answers

In fact the sensor needs time to adjust good measure. I suppose it's like some gas sensor need to heat some internal component.
It(s take around 5/10 minutes.

Sensor gives good metric value now.

Tx again.

TD-er
Core team member
Posts: 8750
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: HDC1080 in dev with strange temperature value

#7 Post by TD-er » 13 Nov 2020, 12:46

5 - 10 minutes doesn't sound normal.
Are you sure the sensor wasn't exposed to some external factors like excessive humidity?
I have one of those on my breadboard and it immediately gives reasonable values.

If I remember correctly the sensor does use some kind of calibration, which is also stored to survive a reboot (warm reboot, not a power cycle)
So it might be this data was still present from a previous run of another task?

Can you test by performing a full power cycle to see if it again does show some strange values?
Please let me know the result.

Post Reply

Who is online

Users browsing this forum: No registered users and 126 guests