Skip to content

Add shake? #5

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

Open
caternuson opened this issue Feb 25, 2020 · 11 comments
Open

Add shake? #5

caternuson opened this issue Feb 25, 2020 · 11 comments
Labels
enhancement New feature or request

Comments

@caternuson
Copy link

The CircuitPlayground library just did this by reusing the LIS3DH implementation. So maybe this is something that should be added to the LSM6DS library? But starting the conversation here. Since this feature is just math on the x,y,z accelo readings, it's not really hardware specific to the LSM6DS.

@ladyada
Copy link
Member

ladyada commented Mar 2, 2020

there's 'significant motion' detection, wanna try adding?

@caternuson
Copy link
Author

Hmm, wonder if it would work for shake? Might be more of a heavily integrated accelo reading to determine change in position:
image
Can at least check behavior first.

@ladyada
Copy link
Member

ladyada commented Mar 2, 2020

🤷‍♀ want me to write some arduinocode?

@caternuson
Copy link
Author

Sure, if you want, or I can. I like the way they put it in quotes. So just some simple sketch to test what actual behavior is.

@ladyada
Copy link
Member

ladyada commented Mar 3, 2020

tried it. its not that great - basically same as pedometer, you have to shake for at least a second to get it to fire.

@ladyada
Copy link
Member

ladyada commented Mar 3, 2020

tried wakeup instead - seems better. wanna try the arduino side?

@caternuson
Copy link
Author

just wanna check in case it matters - which LSM6DS are you testing with? it looks like these basic detection features are common, but i might be missing something?

@ladyada
Copy link
Member

ladyada commented Mar 3, 2020

im using the LSM6DS33 - other subclass chips inherit all the same functionalities

@caternuson
Copy link
Author

ok, for arduino side, added some info here:
adafruit/Adafruit_LSM6DS#9

@godzan
Copy link

godzan commented Apr 25, 2020

Is there any way to get this working with circuitpython?

@caternuson
Copy link
Author

@godzan It will eventually. It's being worked out on the Arduino side first. You commented there as well.

@kattni kattni added the enhancement New feature or request label May 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants