Skip to main content
Andrew Martin
Associate
February 13, 2017
Solved

LSM9DS1 Magnetometer Temperature Compensation

  • February 13, 2017
  • 2 replies
  • 967 views
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.
Best answer by Andrew Martin
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
February 13, 2017
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
July 7, 2018
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.