Skip to main content
Visitor II
May 17, 2021
Question

Calibration using MotionAcc library

  • May 17, 2021
  • 1 reply
  • 919 views

I am using the industrial IIS2DH accelerometer in our vibration analysis product. 

I am collected data using the data-ready interrupt.

 For improving data accuracy I want to perform some calibration on data. 

I have found the following document. 

"Getting started with MotionAC accelerometer calibration library in X-CUBEMEMS1 expansion for STM32Cube"

Using the below link I have downloaded the library but I didn't found "motion_ac.c". I want to know that how the calibration is performed using this library. Can you suggest how to use this library?

"https://github.com/imwangwang/en.x-cube-mems1/tree/master/STM32CubeExpansion_MEMS1_V7.1.0/Middlewares/ST/STM32_MotionAC_Library/Inc" 

    This topic has been closed for replies.

    1 reply

    ST Employee
    May 18, 2021

    Hi @PD_learner​ ,

    the X-CUBE-MEMS1 libraries are not provided in source code version, but only in the compiled version.

    You can add them to your project, in the way you can find in the examples of the function package (example).

    If you actually need the MotionAC accelerometer calibration library source code (that is subjected to EULA), you can try contacting the Sales offices and representatives from the st.com Contact page, and they will evaluate case by case.

    -Eleon

    Visitor II
    May 25, 2021

    Hi,

    Thanks for the clarification.

    can you suggest any alternate way to perform calibration on the raw data from the accelerometer?