Quantcast
Channel: Armbian news
Viewing all articles
Browse latest Browse all 486

Battery management via AXP209 (Banana Pi/Pro)

$
0
0
So I have a question... I'd like to manage Li-Ion battery operation on SBCs using the AXP209 power management chip (especially the Banana Pro, as that's what I have...)

I soldered a connector to the battery terminals on my BPro for portable operation, and it would be nice to have some kind of solution to raise an alert at low battery charge (like via the onboard LEDs), and automatically call system shutdown at a certain level.
 
Googling has shown that the AXP209 has an i2c interface for sensors, and there are a few scripts for reading battery status here:
http://hardware-libre.fr/2014/11/banana-pi-axp209-battery-power-monitoring/

My current plan is to probably use a shell script set as a regular cron job to monitor the battery and act accordingly, which should do the job but feels a bit too duct-tape-ey. Has anyone done something like this? Any observations or ideas? What battery voltage should I use as a cutoff?

Viewing all articles
Browse latest Browse all 486

Trending Articles