UPS pico: read the remaining battery percentage

Need some help with your shiny new breakout board, or something not working right? Let us help you here!
Post Reply
xload
Initiated
Posts: 21
Joined: Mon Jun 10, 2019 9:47 am

UPS pico: read the remaining battery percentage

Post by xload » Thu Jun 13, 2019 5:24 pm

Hello

I want to read the remaining battery percentage, is it possible?

By the way: I'm reading the register 0x69 0x08, I obtain something like 0x0420... the correct converted value is 4.20V?

Best regards and a lot of thanks.

User avatar
Dave
ModMyPi
Posts: 2965
Joined: Wed Jul 22, 2015 11:36 am
Contact:

Re: UPS pico: read the remaining battery percentage

Post by Dave » Fri Jun 14, 2019 8:35 am

Over on PiModules forums, someone made a rather nice pico_status script - http://108.175.10.239/viewtopic.php?f=2 ... 1363ca200a

It includes battery %, so take a look at the script and you should be able to pick out the bit of code responsible for it.
Forum Administrator & Technical Support

Post Reply