PINE64
Playbox battery charge - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PINE A64(+) (https://forum.pine64.org/forumdisplay.php?fid=4)
+--- Forum: Pine A64 Hardware, Accessories and POT (https://forum.pine64.org/forumdisplay.php?fid=32)
+---- Forum: Enclosures (https://forum.pine64.org/forumdisplay.php?fid=14)
+---- Thread: Playbox battery charge (/showthread.php?tid=2414)

Pages: 1 2


RE: Playbox battery charge - pfeerick - 12-06-2016

(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...  Wink

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!


RE: Playbox battery charge - Jessica Spongekipper - 12-07-2016

(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...  Wink

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.


RE: Playbox battery charge - Toriless - 12-20-2016

(10-20-2016, 07:42 PM)jdmwrx94 Wrote: Hey! I just received a battery, I just installed it in the playbox.  Works good with or without the microusb.  I can unplug while it's on and I can boot on battery but it won't charge.  Or at least the charge icon works but the % indicator is'nt or something like that.  Any known issues regarding the battery monitor?

Mine always charges regardless of the jumper setting.  One setting will shut down the OS and then charge the battery.  The BAT will keep it running on the battery but not shutdown unless you OS supports it.