SparkFun Forums 

Where electronics enthusiasts find answers.

Questions &/or issues related to products in the Movement & IMU category should be posted in this forum.
User avatar
By drew.browning
#207661
I changed the 9DoF Razor IMU M0's sampling rate with the following line of the code given in the hook-up guide: imu.setSampleRate(100); // Set sample rate to 100Hz. However, when the sampling rate is set to 100 Hz will not exceed 25 Hz and for lower sampling rates the actual sampling rate is lower.

Here are the results for a 10 Hz sampling rate:

Average sampling time: 91.583 ms

Standard deviation: 6.015 ms

Do other adjustments need to be made to get closer/constant sampling rates that are desired?