Skip to content

INT pin? #23

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

Closed
ser opened this issue Jul 4, 2021 · 1 comment
Closed

INT pin? #23

ser opened this issue Jul 4, 2021 · 1 comment

Comments

@ser
Copy link

ser commented Jul 4, 2021

ANy suggestions how to use this library utilising INT pin on MPU 9250?
I would like to use Motion Detection notifications - how can I receive them?
image

@peterhinch
Copy link
Contributor

This is a feature I'm aware of, but have never studied for use. My applications for IMU's use asynchronous programming with uasyncio. In this context detecting motion is easy. Run a task which periodically compares current values with prior ones and triggers an Event. See uasyncio tutorial.

It rather depends on why you want to use the INT. The way which makes most sense is as a means of exiting deepsleep. The deepsleep mechanism is platform dependent, so any solution will need some research.

In any event you'll need to program the INT mechanism explicitly. I have no plans to integrate this into the driver.

@ser ser closed this as completed Jul 4, 2021
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

2 participants