Skip to main content
ABogd.1
Associate
Jan 17, 2020 12:24 PM UTC
Solved

Calibration LSM303 DLHC Magnetometer

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.
    Eleon BORLINI
    Eleon BORLINIBest answer
    ST Employee
    Jan 17, 2020 3:41 PM UTC

    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

    3 replies

    Eleon BORLINI
    Eleon BORLINIBest answer
    ST Employee
    Jan 17, 2020 3:41 PM UTC

    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.1
    ABogd.1Author
    Associate
    Jan 18, 2020 9:48 AM UTC

    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.1
    ABogd.1Author
    Associate
    Jan 18, 2020 9:47 AM UTC

    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.