xorbit / LiFePO4wered-Pi

Access library, command line tool and daemon for the LiFePO4wered/Pi module
GNU General Public License v2.0
132 stars 31 forks source link

Detecting source power state #21

Closed kozuch closed 5 years ago

kozuch commented 6 years ago

Is is possible to detect/query the voltage on USB charge connector? I need just to safely power down RPi when source (=charging?) power is disconnected LiFePO4wered-Pi. I could not find this in the docs.

xorbit commented 6 years ago

The original LiFePO4wered/Pi is missing the hardware to be able to do this. Both the LiFePO4wered/Pi3 and upcoming LiFePO4wered/Pi+ do have this feature. You can get the input voltage directly or use auto boot and auto shutdown features based on it.