Skip to main content
Andrew Martin
Associate
Feb 13, 2017 2:59 PM UTC
Solved

LSM9DS1 Magnetometer Temperature Compensation

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.

This topic has been closed for replies.
Andrew Martin
Andrew MartinBest answer
Associate
Feb 13, 2017 10:26 PM UTC
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.

2 replies

Andrew Martin
Andrew MartinAuthorBest answer
Associate
Feb 13, 2017 10:26 PM UTC
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
Jul 7, 2018 8:35 AM UTC
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.