Wio Tracker L1: Improve battery reading and add power management#1680
Open
reidt1 wants to merge 2 commits intomeshcore-dev:devfrom
Open
Wio Tracker L1: Improve battery reading and add power management#1680reidt1 wants to merge 2 commits intomeshcore-dev:devfrom
reidt1 wants to merge 2 commits intomeshcore-dev:devfrom
Conversation
- Add 100us settling delay after enabling voltage divider - Average 8 ADC samples to reduce noise - Disable voltage divider after reading to save power (~2uA) - Move ADC configuration to begin() for consistency - Move getBattMilliVolts implementation to .cpp file Signed-off-by: Reid Tonking <Reid.Tonking@gmail.com>
- Add boot voltage protection (won't boot below 3.3V) - Add LPCOMP wake configuration for voltage recovery - Implement initiateShutdown() with LPCOMP wake on low voltage - Enable NRF52_POWER_MANAGEMENT build flag Device will enter protective shutdown on low battery and wake automatically when voltage recovers to ~3.7V or USB is connected. Signed-off-by: Reid Tonking <Reid.Tonking@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
wio-tracker-l1: improve battery voltage reading accuracy
wio-tracker-l1: add power management support