2023-04-10 08:09 AM
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!
Solved! Go to Solution.
2023-04-12 07:27 AM
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.
2023-04-12 07:27 AM
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.
2023-04-12 10:15 AM
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?
2023-04-12 11:33 PM
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 ;)