Skip to content

Battery Companion Shutdown When Battery Voltage Sags #3388

Description

@P4tches

Devices

Heltec v3 - 1.17.1
Heltec v4 - 1.17.1

Issue

Companion samples battery voltage every 8 seconds. One low reading during a TX or power spike causes the board to power down.

Steps to Reproduce

  1. Unplug fully charged companion from external power, battery only
  2. Leave running for 5 minutes to 12 hours, send a few messages
  3. Companion goes into deep sleep (no reset)
  4. Power it back on, state of charge still 50%+

Note: appears correlated with TX activity

Proposed Fix

Keep 8 second cadence, but require 3 consecutive low readings before shutting down. Tested on my fork for 24h on my v3 and v4 BLE companion with no auto shutdowns (previously 3-10 per day).
https://github.com/P4tches/MeshCore/tree/low-battery-fix

Additional note

This is my first OSS project contribution, apologies if I didn't capture everything. Happy to adjust anything.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions