2024-12-27 09:32 PM
Hello,
In general, I would like to better understand the relationship between the sampling frequencies of the FIFO and the Accelerometer (ISM330) and how to adjust them correctly for my application, could anyone give an example?
In my case I have the following configuration:
ISM330DLC_ACC_SetOutputDataRate(&MotionSensor, 26.0f)
ISM330DLC_FIFO_Set_ODR_Value(&MotionSensor, 6660.0f)
ISM330DLC_FIFO_ACC_Set_Decimation(&MotionSensor, ISM330DLC_FIFO_XL_DEC_32)
That is, the ISM is sampling the accelerometer at 26Hz, the FIFO with decimation is configured to store at a sampling of approx. 208Hz (6660/32), which indicates that in 1 second the accelerometer saves 8 samples (208Hz/26Hz) from the accelerometer in the FIFO. Is this correct?
For a practical application, for example, a motor with 1000RPM (1000/60=16Hz), would the frequency I need to adjust in the ISM330DLC_ACC_SetOutputDataRate function be at least ISM330DLC_XL_ODR_52Hz?
Your feedback is much appreciated.
Regards