-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Description
If using the MAX17262 fuel gauge, you'd typically first configure it in an overlay.
The driver should really support changing the battery's capacity at runtime, since a battery change/ upgrade requiring a field firmware update is ridiculous. Additionally, the driver does not account for the fuel gauge's shutdown function, which is crucial in low power applications, especially the ones that run without a battery protection IC.
Selecting the internal thermistor is also important for space constrained applications.
There are other weird side effects to using the driver with a beefy battery (1000mah+), which include (but not limited to) extremely weird current readings - mine hopped randomly from negative to positive, from -5 ma to 7 ma, on a
int main()
{
k_sleep(K_FOREVER);
}
binary that an external (high end) multi-meter said it had a pretty stable 5uA consumption.
I'll try to implement a working solution and submit it.