Add multiple battery low voltage readings to prevent early shutdown (especially during TX spikes) - #3462
Open
P4tches wants to merge 1 commit into
Open
Add multiple battery low voltage readings to prevent early shutdown (especially during TX spikes)#3462P4tches wants to merge 1 commit into
P4tches wants to merge 1 commit into
Conversation
…especially during TX spikes) (cherry picked from commit 2f79bea)
Blake-Latchford
approved these changes
Sep 20, 2026
There was a problem hiding this comment.
Tested on my Heltec V3 and a bench top power supply. Confirmed that a 'transient' drop over 8s is detected, but only a 24s low voltage condition shuts the board down.
@P4tches note that since I'm nobody on this project my approval doesn't actually mean anything in the process. Hopefully a rando confirming your code works means something.
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.
During power spikes, especially during TX, battery voltage sags below AUTO_SHUTDOWN_MILLIVOLTS. To help avoid this problem, 3 consecutive readings are taken before shutdown is invoked.
Are additional readings going to affect battery life?
No, this change continues to read only every 8 seconds, leading to ~24s of low battery before shutoff.
Is this dangerous running the battery below the autoshutdown?
No, the floor is 3300mV on LilyGo/Thinknode and 3400mV on Heltec/RAK, both safely above the 3000mV cutoff of the Lithium cells.