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

Battery charge indicator #15

Open
fweiss opened this issue Jul 8, 2024 · 3 comments
Open

Battery charge indicator #15

fweiss opened this issue Jul 8, 2024 · 3 comments

Comments

@fweiss
Copy link
Owner

fweiss commented Jul 8, 2024

There is a BT battery characteristic from a earlier version, maybe Sparkfun ESP32 Thing. But on the current "LOIN" board, the ADC pin is not connected to the battery.

  • connect the ADC to battery with voltage divider
  • create some other indicator, may a led pattern, to show low battery

This is related to #12. One of the problems is that when battery gets low the BT fails and there can also be a WDT reset. Some ideas:

  • check for battery low and turn off BT or don't initialize it
  • show a battery icon in place of the animation

The main idea is to not malfunction and notify the user that the battery needs to be recharged.

@fweiss
Copy link
Owner Author

fweiss commented Jul 8, 2024

Maybe also run a test to estimate how long badge runs with a fully charged battery and also how long it takes to charge.

@fweiss
Copy link
Owner Author

fweiss commented Jul 20, 2024

Also fix this warning:
warning: 'ADC_ATTEN_DB_11' is deprecated [-Wdeprecated-declarations]

@fweiss
Copy link
Owner Author

fweiss commented Jul 28, 2024

Also see #13. We've seen some WDTs and/or brownouts when running on battery. This is may be related to bluetooth as well.

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