Sample interval

Hi,
For the Arduino Nano 33 accelerometer, could you tell me to how to extract the sample interval or the time difference between samples? I had thought it would be 1/sampling frequency with the sampling freq =IMU.accelerationSampleRate(), but the sample interval wasn't correct. Thanks!

Were you able to look in the libraries' examples?

https://docs.arduino.cc/tutorials/nano-33-iot/imu-accelerometer/

https://docs.arduino.cc/tutorials/nano-33-ble-rev2/imu-accelerometer/

For help, post the code, using code tags, and explain how you determined that the sample rate is not correct.

Thanks, I was able to write a simple loop with old time and new time.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.