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

[Friend V2] Friend can use accelerometer and gyroscope. ($500) #569

Closed
josancamon19 opened this issue Aug 10, 2024 · 5 comments
Closed

[Friend V2] Friend can use accelerometer and gyroscope. ($500) #569

josancamon19 opened this issue Aug 10, 2024 · 5 comments
Assignees
Labels

Comments

@josancamon19
Copy link
Contributor

Is your feature request related to a problem? Please describe.
I want to be able to retrieve gyroscope and accelerometer data from my Friend device.

Describe the solution you'd like
Test this feature by receiving the data with accelerometer and gyroscope, and make a fake the detect if your Friend falls, that triggers a notification that says smth about it.

@kevvz
Copy link
Contributor

kevvz commented Aug 10, 2024

Please see my full code, I added firmware to be able to expose the accelerometer, it's not just one dot I swear! Wasn't too familiar with PRs lol

@josancamon19
Copy link
Contributor Author

Will review soon, thanks for the PR

@francip
Copy link
Collaborator

francip commented Aug 13, 2024

I'd suggest we support this for DevKit 1 as well.

@kevvz
Copy link
Contributor

kevvz commented Aug 13, 2024

I think it does! Both versions have the same accelerometer, so in theory any firmware that uses the accelerometer will work on both.

@francip
Copy link
Collaborator

francip commented Aug 13, 2024

Yes. This was more of a comment so that the app doesn't try to gate this based on the hardware revision. :-)

josancamon19 added a commit that referenced this issue Aug 28, 2024
#569 

How to Test:

1. Flash the zephyr.uf2 file located in
friend/firmware/firmwarev1.0/accel_build.
2. Run the updated app in debug mode and open the console.
3. Wait for the hardware to connect. Then after a while you should see
accelerometer data, including the gyroscope appear on the console.
4. Throw your friend hard, preferably onto a soft surface like a couch.
If you throw hard enough you should get a notification labeled
'ouch.....' . I've tried fake falling and if the parameter fall_number
listed in communication.dart is low enough, you can trigger the
notification but you may trigger it on accident if you move fast.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

No branches or pull requests

3 participants