12-07-2016, 06:12 AM
(This post was last modified: 12-08-2016, 04:29 AM by Jessica Spongekipper.
Edit Reason: Update 1 day later.
)
(12-06-2016, 07:49 PM)pfeerick Wrote:(12-06-2016, 12:26 PM)Jessica Spongekipper Wrote: OK. Sadly I have a similar problem. I have a 8000 mah 2 wire cell, but. I have had the plug in a socket on the bench and I have volts at 1 & 3 and 9.98k ohms between 2 and gnd. I have charge but according to the script taken from these august pages, only 2ma @ v volts. Any clues as to what I may have done wrong ?
At what voltage? Once the battery is fully, the (charge) current will drop to 2ma... i.e. my battery is sat at 4.18v, and is fully charged, with a 2ma charge current (although I doubt it is really 2ma... but is in fact 0ma at that point and the 2ma is just a accuracy error... I haven't bothered measuring the output from the PMIC to see how accurate it is yet).
Try this script if you're not getting charge state / current / voltage / capacity readings. Note it needs bc to display the voltage (sudo apt-get install bc)... one of these days I'll get around to either removing that dependency or adding a check for it...
You'll be able to load it directly onto the pine64 if it has internet access with the following command:
Code:wget https://gist.githubusercontent.com/pfeerick/05e5715733f00dcf303636c80abff598/raw/9bfca4be89ed219658426701b702a2663329f2df/pine64-battery.sh
Don't forget to do a chmod +x pine64-battery.sh afterwards to make it executable!
Thanks. Output is:
Pine64 reports: battery detected
Status: Charging
Voltage: 3.61v
Current: 3ma
Capacity: 6%
Health: Good
The power supply is outputting 5.3v.
Now reading
Pine64 reports: battery detected
Status: Charging
Voltage: 3.19v
Current: 2ma
Capacity: 0%
Health: Good
I can't see a voltage between pins 1 and 3 on the battery socket when the USB is connected. Even with the pull-down resistor in place.
When new technology rolls over, you are either part of the steam roller... or part of the road.