cancel
Showing results for 
Search instead for 
Did you mean: 

I3G4250D Read the temperature

TomBr
Associate II

Hello,

I am using a I3G4250D gyroscope and would like read the temperature. 

Currently, I read 246 (in decimal) in my register 0x26.

In two's complement, it is equivalent to -9. 

 

TomBr_0-1718294480109.pngTomBr_1-1718294511992.png

 


Then I have to multiply by -1 so -9 * -1 = 9°C (I am not sure)
But It is the summer, and 9°C for a measure of temperature is not possible. I read 10 times the datasheet but no one information to convert the data from register into °C.

Can you help me please ? It will be great to edit the datasheet to give a formule to transform the raw data in °C.

Thanks

Tom

2 REPLIES 2
Federica Bossi
ST Employee

Hi @TomBr ,

You could try to check your code with our PID examples on github where you can find the temperature reading implementation.

 

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

Unfortunately, in your github example, you get only the raw data of temperature and not the data processed...