Skip to main content
Visitor II
April 10, 2023
Solved

How does the LIS2DH accelerometer generate its clock, and what could be causing the sampling frequency discrepancy in its interrupts?

  • April 10, 2023
  • 3 replies
  • 1510 views

I'm working with the LIS2DH accelerometer and I'm trying to obtain acceleration data at a rate of 100 Hz. However, I've noticed that the accelerometer interrupts have a frequency of 99 Hz. Also this frequency changes if I use another accelerometer of the same model.

I'm curious to know what kind of clock the accelerometer is using and what error is causing this discrepancy in the sampling frequency. What percentage of error in frequency is expected?

Any help or insights would be greatly appreciated. Thank you!

    This topic has been closed for replies.
    Best answer by Federica Bossi

    Hi @ADelb.1​ ,

    Data from characterization show that the ODR accuracy is usually below 5%, however these data are not guaranteed in production because a limited samples of sensors were tested.

    Consider that there is a piece to piece variability and so it is possible to have different frequencies for different accelerometers of the same model.

    I suggest you to always set the BDU bit of CTRL_REG4 (23h) register, to avoid any dataout shift.

    If my reply answered your question, please click on Select as Best at the bottom of this post. This will help other users with the same issue to find the answer faster.

    3 replies

    Technical Moderator
    April 12, 2023

    Hi @ADelb.1​ ,

    Data from characterization show that the ODR accuracy is usually below 5%, however these data are not guaranteed in production because a limited samples of sensors were tested.

    Consider that there is a piece to piece variability and so it is possible to have different frequencies for different accelerometers of the same model.

    I suggest you to always set the BDU bit of CTRL_REG4 (23h) register, to avoid any dataout shift.

    If my reply answered your question, please click on Select as Best at the bottom of this post. This will help other users with the same issue to find the answer faster.

    ADelb.1Author
    Visitor II
    April 12, 2023

    Thanks for your anwser Federica.

    Sorry, in the previous message I confused the model of the accelerometer, it is the lis2dh12 not the lis2dh. Does this one have the same accuracy?

    Technical Moderator
    April 13, 2023

    Hi @ADelb.1​ ,

    Yes it has.

    If my previous reply answered your question, please click on Select as Best at the bottom of this post. This will help other users with the same issue to find the answer faster ;)