Skip to main content
AGosw.3
Associate
July 7, 2022
Solved

What's best and way to calculate velocity from acceleration for IIS3DWB and what degree of accuracy should one expect with IIS3DWB accelerometer?

  • July 7, 2022
  • 2 replies
  • 3819 views

I am using IIS3DWB for machine condition monitoring product development project.

I am using the below integration for velocity conversion as per MotionSP but unable to estimate speed RMS (not even 50% closer to the reference values).

----------------------

MotionSP_TD_SpeedEvalFromCircBuff - perform a speed estimation using a numerical integration method (Trapezoidal Rule) on the acceleration values

Formula used:

           /* vi = vi-1 +[(1-GAMMA)*DELTA_T]*ai-1 + (GAMMA*DELTA_T)*ai (in mm/s) */

---------------------

What's best and accurate way to calculate speed from acceleration considering industrial application?

ST's timely support would be much appreciated.

    Best answer by Eleon BORLINI

    Hi @AGosw.3​ ,

    as anticipated by email, I'm checking the formula with our experts and developers of the MotionSP library.

    My general suggestion, beyond the correct application of the integration formula, is to periodically run a (software) calibration of the accelerometer, for example using the MotionAC accelerometer calibration library, part of the X-CUBE-MEMS1, which provides real-time accelerometer calibration through offset and scale factor coefficients used to correct accelerometer data.

    -Eleon

    2 replies

    Eleon BORLINI
    Eleon BORLINIBest answer
    ST Employee
    July 8, 2022

    Hi @AGosw.3​ ,

    as anticipated by email, I'm checking the formula with our experts and developers of the MotionSP library.

    My general suggestion, beyond the correct application of the integration formula, is to periodically run a (software) calibration of the accelerometer, for example using the MotionAC accelerometer calibration library, part of the X-CUBE-MEMS1, which provides real-time accelerometer calibration through offset and scale factor coefficients used to correct accelerometer data.

    -Eleon

    FKara.3
    Associate III
    December 19, 2023

    Hi @Eleon BORLINI ,

     

    Is there similar library for LSM6DSV16X IMU? OR Do you have any suggestions to get reliable accelerometer/ velocity value form the sensor?

     

    Kind regards,

    Fehmi K.

    Eleon BORLINI
    ST Employee
    December 19, 2023

    Hi @FKara.3 ,

     

    For the speed calculation from acceleration data you can again use MotionSP library since the library only matters to have 3-axis acceleration data in input.

    About the pre-calibration, for the accelerometer-related part of the LSM6DSV16X, you can use the MotionAC accelerometer calibration library as well. The gyroscope part can be calibrated using MotionGC gyroscope calibration library (always in X-CUBE-MEMS1 expansion for STM32Cube).


    - Eleon

    AGosw.3
    AGosw.3Author
    Associate
    July 11, 2022

    Hi @Eleon BORLINI​ 

    Thank you for your response and would wait for the formula. Regarding the accelerometer calibration, appreciate if you could please share MotionAC accelerometer calibration library (Src) so as we could use it for our custom board MCU.

    Thanks again,

    AGosw

    Associate
    November 8, 2023

    I would also like this library as I also have a custom MCU