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

Bangle.js accelerometer sleep modes #1921

Closed
gfwilliams opened this issue Aug 26, 2020 · 1 comment
Closed

Bangle.js accelerometer sleep modes #1921

gfwilliams opened this issue Aug 26, 2020 · 1 comment

Comments

@gfwilliams
Copy link
Member

gfwilliams commented Aug 26, 2020

Right now, Bangle.js power draw is ~0.5mA when idle

However, if we Bangle.setPollInterval(1000) could get it down to 0.3mA, and turning off the accelerometer Bangle.accelWr(0x18,0x0A); gets it down to 0.15.

There may be a lower power accelerometer mode that we could use instead of turning it off

So maybe when we don't detect movement for 1 minute (and we have no listeners to acceleration events) we assume the Bangle has been put down, and go into a low power mode? It would drastically increase battery life - initial estimates are almost 3 months if just left in a corner!

We just need to be sure that twist-to-wake still works

gfwilliams added a commit that referenced this issue Aug 27, 2020
@gfwilliams
Copy link
Member Author

After recent changes we're now down to 0.36mA with polling at the default 80ms - so that's roughly 40 days standby.

However after left for 1 minute and not moved, Bangle.js drops the interval down to 800ms and power draw drops to roughly 0.15uA (so about 3 months standby!).

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