Skip to content

Add multiple battery low voltage readings to prevent early shutdown (especially during TX spikes) - #3462

Open
P4tches wants to merge 1 commit into
meshcore-dev:devfrom
P4tches:low-battery-fix
Open

P4tches wants to merge 1 commit into
meshcore-dev:devfrom
P4tches:low-battery-fix

Conversation

@P4tches

@P4tches P4tches commented Sep 20, 2026

Copy link
Copy Markdown

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.

…especially during TX spikes)

(cherry picked from commit 2f79bea)

@Blake-Latchford Blake-Latchford left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@srl295 srl295 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM FWIW BBQ

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

Successfully merging this pull request may close these issues.

3 participants