Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coulomb counting for SOC estimation #42

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

trebula
Copy link

@trebula trebula commented Apr 17, 2023

Uses the existing wattHoursUsed variable to continually update the estimate of SOC.
At startup, analyze the initial SOC using the getBatteryPercent function. Once this period ends, it uses the initial SOC estimation and subtracts the wattHoursUsed to determine the new SOC. Will likely overestimate the battery percent since the actual battery capacity will probably be lower than the nominal capacity due to heat loss, but doesn't rely as much on voltage (which may be inaccurate due to the flat curve of Li-on batteries)

@zjwhitehead zjwhitehead self-requested a review April 17, 2023 22:20
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.

2 participants