Battery capacity percentage estimation #11
hippo5329
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Battery capacity percentage estimation - Optional
The battery capacity percentage estimation in the /battery topic can enabled with the battery parameters. For Li-ion battery, the minimum voltage (empty) of a single cell is 3.0V typically, and the maximum voltage (full) is 4.2V. For 3S battery pack, the minimum voltage is 3.0V x3 = 9.0V and the maximum voltage is 4.2V x3 = 12.6V. The capacity of 18650 is around 2000mAh = 2.0Ah.
#define BATTERY_CAP 2.0 // battery capacity Ah
#define BATTERY_MIN 9.0 // battery minimal voltage
#define BATTERY_MAX 12.6 // battery maximum voltage
This is the /battery message of my 12.6V 4.9Ah battery pack.
Beta Was this translation helpful? Give feedback.
All reactions