Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct way to implement accel/gyro thresholds on lsm9ds1 #6

Open
pengus77 opened this issue Dec 15, 2022 · 0 comments
Open

Correct way to implement accel/gyro thresholds on lsm9ds1 #6

pengus77 opened this issue Dec 15, 2022 · 0 comments

Comments

@pengus77
Copy link

pengus77 commented Dec 15, 2022

Hi,
we're noticing an incredibly high number of raised IRQs (about one every 20ms) in android from the lsm9ds1 accelerometer. This situation causes a fixed 20% usage on the CPU. When testing the gyroscope, the situation is the same. What is the correct way to implement thresholds in the code so that a device in static position doesn't flood the kernel with IRQs? We've tried writing to the various THS registers, enabling FIFO THS on INT1, setting DUR and WAIT... everything to no success. The only thing we managed to reduce the CPU to about 2.5% is setting the Decimation to 8. The documentation doesn't really explain what values the registers expect and/or if there's a correct order to set them. Please help :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant