cancel
Showing results for 
Search instead for 
Did you mean: 

LSM9DS1 Magnetometer Temperature Compensation

Andrew Martin
Associate
Posted on February 13, 2017 at 15:59

What does the TEMP_COMP bit in CTRL_REG1_M of the magnetometer do?  Do the offsets need to be programmed for it to work?

We are seeing up to 10 degree heading variations when moving the temperature from 10C to 30C, and need to find a way to correct for it.

1 ACCEPTED SOLUTION

Accepted Solutions
Andrew Martin
Associate
Posted on February 13, 2017 at 23:26

Got a reply from support:

The temperature compensation is to compensate magnetometer sensitivity, not the offset.  Just need to enable the bit to enable the compensation.

View solution in original post

2 REPLIES 2
Andrew Martin
Associate
Posted on February 13, 2017 at 23:26

Got a reply from support:

The temperature compensation is to compensate magnetometer sensitivity, not the offset.  Just need to enable the bit to enable the compensation.

sergeyvslnko
Associate II
Posted on July 07, 2018 at 10:35

Yes, magnetometer offset depends over temparature and have to be compensated.

0690X0000060Ld2QAE.png

PS My evaluation board was fixed to metall surface  by

magnetic fasteners, that is why absolute value of measured magnetic field more than Earth magnetic field value.

Temperature compensation bit was set.