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 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
Rainbow Lithium battery temperature readout? GregH 0 2,728 03-12-2020, 12:05 AM
Last Post: GregH
  Lithium 3.7 Volt Battery Ron Piggott 49 92,685 07-15-2017, 03:56 PM
Last Post: tllim
  Travelling with the Pine64 (and Lipo battery) psychedup 2 6,495 02-17-2017, 08:18 PM
Last Post: tllim
  CR2032 Battery holder - sanity check xalius 23 38,666 01-23-2017, 07:41 PM
Last Post: DonFL
  Battery temp pin? SvdSinner 1 5,295 12-13-2016, 11:35 AM
Last Post: MarkHaysHarris777
  battery power in android UnixOutlaw 40 75,083 09-25-2016, 07:54 PM
Last Post: tllim
  RTC Backup Battery - CR sbentjies 6 13,260 07-15-2016, 06:35 PM
Last Post: jwouellette
  Battery Datasheet xalius 0 3,319 06-20-2016, 07:38 PM
Last Post: xalius
  Lithium 'salt and battery UnixOutlaw 0 3,238 05-29-2016, 09:32 PM
Last Post: UnixOutlaw
  Minor note about the RTC battery MichaelMeissner 12 24,968 02-18-2016, 05:17 AM
Last Post: German

Forum Jump:


Users browsing this thread: 1 Guest(s)