-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Improve Voltage SOC Estimation #41
base: master
Are you sure you want to change the base?
Conversation
Additional info:
|
I converted the voltage curves from the product data sheet into data points that could then be used to find the state of charge given the voltage, current, and ambient temperature. Temperature only seems to affect the voltage at near-freezing temperatures, so I added a small correction term at cold temperatures (calculated from averaging the voltage difference between the 23C curve and the 0C/-20C curves). This also assumes that the battery pack has 24 cells in series and 10 in parallel (not sure of the exact specs so this was just an estimate, but can easily be changed to the actual series/parallel in the updateBatteryInfo() function).
This updates the getBatteryPercent abstraction, so it can be easily combined with the coulomb-counting branch without requiring many integration changes.