Accelerometer - How to toggle [SOLVED] #3684
Replies: 2 comments
-
Posted at 2021-03-09 by @gfwilliams Hi - is your Puck firmware up to date (2v08)?
What you've got there definitely all seems ok to me. What I can see though is you're using |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-03-10 by Stoaty OK, found the issue! It was my misunderstanding of the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2021-03-08 by Stoaty
Hi!
I'm working on using Puck 2's accelerometer in order to detect when I'm braking on my bike!
As of yet, I haven't been able to turn off the Accelerometer using
Puck.accelOff()
. Accel reads seem to be blocking my code to turn it off - but I think it's more the case I'm doing something wrong.Here's my code:
No issues with sending the data over BLE to my ESP32 however - works like a charm!
One other thing I wanted to know was how to "normalise" the accel's values, but I'll post that up in another convo.
Beta Was this translation helpful? Give feedback.
All reactions