Skip to content

Improve the estimation for power consumption of the battery#3224

Open
Plecra wants to merge 1 commit intozmkfirmware:mainfrom
Plecra:main
Open

Improve the estimation for power consumption of the battery#3224
Plecra wants to merge 1 commit intozmkfirmware:mainfrom
Plecra:main

Conversation

@Plecra
Copy link
Copy Markdown

@Plecra Plecra commented Feb 1, 2026

PR check-list

  • Branch has a clean commit history
  • Additional tests are included, if changing behaviors/core code that is testable.
    • At least, I'm not seeing any particularly testable behaviours here, without just defining the test with the new model :D
  • Proper Copyright + License headers added to applicable files (Generally, we stick to "The ZMK Contributors" for copyrights to help avoid churn when files get edited)
  • Pre-commit used to check formatting of files, commit messages, etc.
  • Includes any necessary documentation changes.

Accounting for the effects mentioned in #3223

I've just gone with a simple update to the constants for the underestimated discharge efficiency, the computation is all still accurate.

I've documented the implementation I've used for the battery decay modelling, hopefully clear enough to pass a vibe check :) The changes are quite targeted, I was able to just replace the estimated runtime + battery power consumption.

With the update, the battery's impact on power properly accounts for changes in the configuration of the rest of the board (note the changes in self discharge consumption)!

  • 110mAh + nice!nano -> 1 month and 4 weeks
{8E23ECE5-A3A8-4BCC-91FD-5E6A3BFDE478}
  • 110mAh + nice!nano v2 -> 4 months and 5 days
{EF39B2CC-0C74-4702-93A0-44AC3C73B2FC}
  • 2000mAh + nice!nano v2 -> 2 years and 8 months
{2C6B4A50-8FBC-4682-A88C-0B93427F8FD6}

While the derivation makes sense to me I can't be particularly sure this reflects real world performance, I'd be curious to hear from someone who has tested battery performance in these configurations.

@Plecra Plecra requested a review from a team as a code owner February 1, 2026 20:24
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.

1 participant