Skip to main content
Visitor II
January 17, 2020
Solved

Calibration LSM303 DLHC Magnetometer

  • January 17, 2020
  • 2 replies
  • 2296 views

Dear friends, help me please solve the problem that I encountered during the calibration of the LSM303 DLHC magnetometer. I use the technical documentation stm32 AN3192 for calibration. After rotation of the sensor along each axis and data collection, correction factors for displacement and normalization are calculated. Given these coefficients, I should get a normalized sphere with a radius of 1. However, this does not happen. After that, I separately display the calculated values ​​of the calibration coefficients. Can elements A, B, C be negative values?

Tell me what can be caused by their negative values?

    This topic has been closed for replies.
    Best answer by Eleon BORLINI

    Hi @ABogd.1​ , they should not be negative because they define a sphere in space. Can you share the data you acquired? Did you already check the Motion MC library code of the X-CUBE-MEMS1 function pack, for the magnetometer calibration? Regards

    2 replies

    ST Employee
    January 17, 2020

    Hi @ABogd.1​ , they should not be negative because they define a sphere in space. Can you share the data you acquired? Did you already check the Motion MC library code of the X-CUBE-MEMS1 function pack, for the magnetometer calibration? Regards

    ABogd.1Author
    Visitor II
    January 18, 2020

    Thank you very much for having promptly withdrawn my question. In the file, data taken from the sensor during rotation along each axis. It is from these data that I make the calculations.

    I did not understand the application for magnetometer calibration, so I want to have an autonomous system with density.

    ABogd.1Author
    Visitor II
    January 18, 2020

    Thank you very much for having promptly withdrawn my question. In the file, data taken from the sensor during rotation along each axis. It is from these data that I make the calculations.

    I did not understand the application for magnetometer calibration, so I want to have an autonomous system with density.