Battery level measurement?
Does the board offer a way to measure the battery's output voltage? It would be good to estimate the remaining battery charge.
You can read battery status running Linux just by reading info from sysfs (/sys/class/....) files. You get current, voltage, remaining percentage (the PMIC has a learning battery gauge) and other things...
Come have a chat in the Pine A64 IRC channel >>
I wrote this script a while ago to show the various battery bits... if you ignore the colour bits, it shows the sysfs paths for the different stats you can show. It uses bc (sudo apt-get install bc) to show the battery voltage as a decimal number.

Possibly Related Threads...
Thread Author Replies Views Last Post
Rainbow Lithium battery temperature readout? GregH 0 45 03-12-2020, 12:05 AM
Last Post: GregH
  Lithium 3.7 Volt Battery Ron Piggott 49 15,037 07-15-2017, 03:56 PM
Last Post: tllim
  Travelling with the Pine64 (and Lipo battery) psychedup 2 592 02-17-2017, 08:18 PM
Last Post: tllim
  CR2032 Battery holder - sanity check xalius 23 2,936 01-23-2017, 07:41 PM
Last Post: DonFL
  Battery temp pin? SvdSinner 1 741 12-13-2016, 11:35 AM
Last Post: MarkHaysHarris777
  battery power in android UnixOutlaw 40 5,597 09-25-2016, 07:54 PM
Last Post: tllim
  RTC Backup Battery - CR sbentjies 6 1,593 07-15-2016, 06:35 PM
Last Post: jwouellette
  Battery Datasheet xalius 0 552 06-20-2016, 07:38 PM
Last Post: xalius
  Lithium 'salt and battery UnixOutlaw 0 483 05-29-2016, 09:32 PM
Last Post: UnixOutlaw
  Minor note about the RTC battery MichaelMeissner 12 3,739 02-18-2016, 05:17 AM
Last Post: German

Forum Jump:

Users browsing this thread: 1 Guest(s)