cancel
Showing results for 
Search instead for 
Did you mean: 

LIS3MDL always off by about 11.5 degrees

keith239955
Associate
Posted on July 25, 2017 at 20:35

LIS3MDL doc says take 16 bit signed Temperature Register values, divide by 8, and add 25 degrees C.   I get a value that is always about 11.5 degrees  warmer than what the ASM330LXH on the same board is reporting, and the ASM330LXH appears to be pretty close to actual room temperature.    Is it really a 25 degree offset? or should it be 12.5 degree offset?  value 0x0057 = 87;  87/8 = 10.875;  10.875 + 25 = 35.875 degrees C = 96.575 degrees F.  It just isn't that hot in here, and the two sensors are physically very close to each other.

Is this temperature measurement only useful for relative temperatures?

1 REPLY 1
Legacy member
Not applicable
Posted on July 26, 2017 at 08:14

Hello,

Have a look at these comments:

https://community.st.com/0D50X00009XkXfjSAF

https://community.st.com/0D50X00009XkXfjSAF

Integrated temperature sensors (if it's not a thermometer) are suitable only for relative temperature measurement. If you have only a few device prototypes, feel free to 'calibrate' them and you get a thermometer with a reliable output.

David