02-07-2020 12:22 AM
I have a program that retrieves the temperature data from the BMI160. The data 16bits represented in hex. Does anyone know how to convert this to the actual decimal temperature in Centigrade?
Wynne
02-22-2020 12:22 AM
Currently we don't have example code to convert register value to Centigrade.
But it should be fair easy:
1. temperature register is a 16 bits sign signal
2. 0x0000 means 23 degree C
3. each LSB is about 0.00195 degrees
Then you can directly convert the register value to decimal then calculate based on the given scaling factor.
You can also refer to the table on datasheet page 55.