03-08-2017, 12:54 PM
Does the board offer a way to measure the battery's output voltage? It would be good to estimate the remaining battery charge.
Battery level measurement?
|
03-08-2017, 12:54 PM
Does the board offer a way to measure the battery's output voltage? It would be good to estimate the remaining battery charge.
03-08-2017, 03:34 PM
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 >>
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 | |
Lithium battery temperature readout? | GregH | 0 | 2,067 |
03-12-2020, 12:05 AM Last Post: GregH |
|
Lithium 3.7 Volt Battery | Ron Piggott | 49 | 73,884 |
07-15-2017, 03:56 PM Last Post: tllim |
|
Travelling with the Pine64 (and Lipo battery) | psychedup | 2 | 5,054 |
02-17-2017, 08:18 PM Last Post: tllim |
|
CR2032 Battery holder - sanity check | xalius | 23 | 29,848 |
01-23-2017, 07:41 PM Last Post: DonFL |
|
Battery temp pin? | SvdSinner | 1 | 4,210 |
12-13-2016, 11:35 AM Last Post: MarkHaysHarris777 |
|
battery power in android | UnixOutlaw | 40 | 58,769 |
09-25-2016, 07:54 PM Last Post: tllim |
|
RTC Backup Battery - CR | sbentjies | 6 | 10,447 |
07-15-2016, 06:35 PM Last Post: jwouellette |
|
Battery Datasheet | xalius | 0 | 2,649 |
06-20-2016, 07:38 PM Last Post: xalius |
|
Lithium 'salt and battery | UnixOutlaw | 0 | 2,563 |
05-29-2016, 09:32 PM Last Post: UnixOutlaw |
|
Minor note about the RTC battery | MichaelMeissner | 12 | 19,870 |
02-18-2016, 05:17 AM Last Post: German |