cancel
Showing results for 
Search instead for 
Did you mean: 

How to calculate temperature lsm330dlc

ptihka
Visitor

Hello, I can’t find any additions anywhere on how to calculate the resulting temperature. Can anyone help me with this?

3 REPLIES 3
TDK
Super User

The output of the temperature register is in degrees C. There is no additional conversion necessary. It's in the same format as an int8_t.

TDK_0-1754342206841.png

 

Two's complement - Wikipedia

If you feel a post has answered your question, please click "Accept as Solution".

I thought so too, but the data is not read correctly when the sensor is heated by hand, the data from the register decreases the temperature. And another question, the data can be with a minus temperature, how to understand it?

Show example of data read method, and values observed

Show OUT_TEMP_G and WHO_AM_I_G

 

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..