cancel
Showing results for 
Search instead for 
Did you mean: 

How to calibrate the sampling rate of the LSM6DSM sensor?

HLee.4
Associate II

hello.

I am using LSM6DSM to collect acceleration and gyro data.

Data is being collected at 52Hz using FIFO, but the actual data collected is about 51.2Hz.

It is probably caused by the LSM6DSM internal clock being inaccurate. Is there a way to correct this?

For reference, my MCU's clock is set very accurately to the external clock.

I need help. thank you

1 ACCEPTED SOLUTION

Accepted Solutions
Eleon BORLINI
ST Employee

Hi @HLee.4​ ,

unfortunately, it is not possible to fine tune the ODR at register level. The suggestion is to manage the processor-device communication through interrupts, so that the data acquisition can be synchronized.

Please have a look also to the Github examples if they can help you in some way.

-Eleon

View solution in original post

2 REPLIES 2
Eleon BORLINI
ST Employee

Hi @HLee.4​ ,

unfortunately, it is not possible to fine tune the ODR at register level. The suggestion is to manage the processor-device communication through interrupts, so that the data acquisition can be synchronized.

Please have a look also to the Github examples if they can help you in some way.

-Eleon

HLee.4
Associate II

Thank you for answer. It helped a lot.