HTS221 Incorrect Temperatures / Calibration (T0_OUT = 0)
Hi,
I'm having an problem whereby I believe the temperature readings from an HTS221 device are incorrect. They seems to be around 5degC too high compared to reference temp. I'm using a Nest thermostat as the reference, and while this may not be calibrated I would still expect the temperatures to be roughly similar.
I have suspicion that the calibration registers aren't correct, specifically the T0_OUT value which is zero. Is a value of 0 for T0_OUT expected or is there something wrong with the calibration? Seems a bit suspect to me.
Below is a dump of all the calibration registers:
Calibration Registers
Addr: 0x30 Value: 0x3d
Addr: 0x31 Value: 0x8f
Addr: 0x32 Value: 0x99
Addr: 0x33 Value: 0x0e
Addr: 0x34 Value: 0x00
Addr: 0x35 Value: 0xc4
Addr: 0x36 Value: 0xf2
Addr: 0x37 Value: 0xff
Addr: 0x38 Value: 0x3a
Addr: 0x39 Value: 0x03
Addr: 0x3a Value: 0xf5
Addr: 0x3b Value: 0xd0
Addr: 0x3c Value: 0x00
Addr: 0x3d Value: 0x00
Addr: 0x3e Value: 0x1e
Addr: 0x3f Value: 0x03So for the linear interpolation of temperature I get the following:
x0 = 0
y0 = 19.125 degC
x1 = 798
y1 = 33.75 degCHowever using those values yields temperatures which are too high (by approx 5degC). The humidity also appears to be around 10% lower than the Nest thermostat.
Hardware and Software
I'm using the HTS221 driver from the ST Micro MEMS library. The HTS221 is mounted on a MikroE Click board (https://www.mikroe.com/temp-hum-click) attached to an Azure Sphere dev kit.
At the moment I don't have another HTS221 device to compare with.
Device Configuration:
Data Output Rate: 7Hz
Averaging: H: 512, T:256
Heater: Off
Block Data Update: Enabled
Samples are being read from the device at approx. 1Hz.
Any advice would be appreciated.
Thanks,
Simon
