2021-08-25 04:38 PM
2021-08-27 12:43 AM
Hi @MT.6 ,
are you referring to a specific C code or algorithm?
As stated by @TDK in this other thread, acceleration and vibration are the same physical magnitude: vibration is a subset of the more generic "acceleration", and refers to an "oscillating" acceleration within the frequency range of mechanical vibration, typically between few hertz to 10kHz (above it's more the acoustical field).
If you want to detect the frequency and the magnitude of your system's acceleration / vibration, the most informative way is to perform an FFT analysis.
For an example on how to implement the FFT transformation and set the relevant parameters, you can refer to the X-CUBE-MEMS-XT1 function pack (even if it is quite old), especially to the FFT_demo, which develops integrated Fast Fourier Transform (FFT) algorithm for vibration analysis. The user manual UM2142 explains more details from p.17.
For a more theoretical overview, the design guide Capacitive MEMS accelerometer for condition monitoring can be a good reference paper.
For more details on the calculation deriving from this white paper, specifically involving the MotionSP library, you can refer to THIS post.
If my reply answered your question, please click on Select as Best at the bottom of this post. This will help other users with the same issue to find the answer faster.
-Eleon
2021-08-26 09:07 AM
Is this the right place to post this question?
2021-08-27 12:43 AM
Hi @MT.6 ,
are you referring to a specific C code or algorithm?
As stated by @TDK in this other thread, acceleration and vibration are the same physical magnitude: vibration is a subset of the more generic "acceleration", and refers to an "oscillating" acceleration within the frequency range of mechanical vibration, typically between few hertz to 10kHz (above it's more the acoustical field).
If you want to detect the frequency and the magnitude of your system's acceleration / vibration, the most informative way is to perform an FFT analysis.
For an example on how to implement the FFT transformation and set the relevant parameters, you can refer to the X-CUBE-MEMS-XT1 function pack (even if it is quite old), especially to the FFT_demo, which develops integrated Fast Fourier Transform (FFT) algorithm for vibration analysis. The user manual UM2142 explains more details from p.17.
For a more theoretical overview, the design guide Capacitive MEMS accelerometer for condition monitoring can be a good reference paper.
For more details on the calculation deriving from this white paper, specifically involving the MotionSP library, you can refer to THIS post.
If my reply answered your question, please click on Select as Best at the bottom of this post. This will help other users with the same issue to find the answer faster.
-Eleon
2021-08-27 06:51 AM
Thank you, Eleon!