improve battery percentage accuracy#3452
Merged
beastoin merged 6 commits intoBasedHardware:mainfrom Nov 20, 2025
Merged
Conversation
TuEmb
commented
Nov 18, 2025
Contributor
Author
Contributor
Author
Contributor
Author
…mi into TuEmb/improve_battery_percentage
Collaborator
|
lgtm @TuEmb do you think 10s is too frequent? https://github.com/BasedHardware/omi/pull/3452/files#diff-fc6983d86c90195a910760bb5c0ba59712e9aa2151b4c57c2aa430a13f58d463R393 previously, 60s, my concern is that it would consume more battery for reading the voltage and increase the instability. tell me more about your thoughts on the new implementation. |
Contributor
Author
|
@beastoin that's right, but I think the power consumption will not be too much. I will have an analyzation table on the power consumption task later to show how much we are using for each components |
15 tasks
ellaaicare
pushed a commit
to ellaaicare/omi
that referenced
this pull request
Dec 6, 2025
Cherry-picked commits: - 8c6d99f: Fix SD card data corruption (BasedHardware#3463) - ffc5138: SD card power/performance refactor (BasedHardware#3490) - a812bc3: SD card error handling (BasedHardware#3499) - 983c8b9: Watchdog timer 30s timeout (BasedHardware#3425) - 783ac90: Battery percentage accuracy (BasedHardware#3452) Key changes: - SD card mutex protection for multi-thread access - Reduced SD card power consumption and faster read/write - Added watchdog timer to catch firmware hangs - Improved battery percentage reporting accuracy 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
14 tasks
Glucksberg
pushed a commit
to Glucksberg/omi-local
that referenced
this pull request
Apr 28, 2026
* improve battery percentage * improve EMA filter for edge cases * update turnoff_all to be common for single button and critical battery level * remove unsed variable
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.



as #2782 , the current battery percentage fluctuates too sharply, causing noticeable jumps up and down that may confuse users.
This pull request includes: