2022-07-06 10:52 PM
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.
Solved! Go to Solution.
2022-07-08 08:41 AM
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
2022-07-08 08:41 AM
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
2022-07-11 03:17 AM
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
2023-11-08 06:48 AM
I would also like this library as I also have a custom MCU
2023-12-19 07:06 AM
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.
2023-12-19 07:45 AM
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