cancel
Showing results for 
Search instead for 
Did you mean: 

MotionEC Update Rate

CSharpino
Associate II

I'm using an LSM303AGR to create a compass using the MotionEC library for calculating quaternions.

Since the ODR of the magnetometer inside the LSM303AGR is 20Hz while the ODR of the accelerometer is 25Hz with which frequency and with which data is it better to call the MotionEC_Run function?

3 REPLIES 3
Miroslav BATEK
ST Employee

I would recommend to run both accelerometer and magnetometer at 50Hz, this ODR is available for both sensors. If not possible you can call the function at 25Hz with actual accelerometer data and latest available magnetometer data.

Thanks for the reply, if instead I go down to 10Hz which is an ODR available for all 2 components is that a problem? I have not found any information on the minimum frequency with which MotionEC is usable.

It is not a problem. It depends how fast motion do you want to track and what is your target application. With 10Hz the response won't be so fast.