Battery level measurement?
#1
Does the board offer a way to measure the battery's output voltage? It would be good to estimate the remaining battery charge.
  Reply
#2
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 >>
  Reply
#3
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.
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Lithium 3.7 Volt Battery Ron Piggott 49 14,109 07-15-2017, 03:56 PM
Last Post: tllim
  Travelling with the Pine64 (and Lipo battery) psychedup 2 538 02-17-2017, 08:18 PM
Last Post: tllim
  CR2032 Battery holder - sanity check xalius 23 2,557 01-23-2017, 07:41 PM
Last Post: DonFL
  Battery temp pin? SvdSinner 1 697 12-13-2016, 11:35 AM
Last Post: MarkHaysHarris777
  battery power in android UnixOutlaw 40 4,963 09-25-2016, 07:54 PM
Last Post: tllim
  RTC Backup Battery - CR sbentjies 6 1,482 07-15-2016, 06:35 PM
Last Post: jwouellette
  Battery Datasheet xalius 0 531 06-20-2016, 07:38 PM
Last Post: xalius
  Lithium 'salt and battery UnixOutlaw 0 465 05-29-2016, 09:32 PM
Last Post: UnixOutlaw
  Minor note about the RTC battery MichaelMeissner 12 3,485 02-18-2016, 05:17 AM
Last Post: German
  Battery boost circuit stephen fleming 6 2,336 02-04-2016, 05:25 PM
Last Post: tllim

Forum Jump:


Users browsing this thread: 1 Guest(s)