G pins are the inputs for the battery.
BATT+ goes to your battery’s positive wire (Red) while
G goes to GND wire (Black).
G pins are obviously the PowerSwitch’s 5V+ and GND outputs.
P pins are your Safe Shutdown GPIO pins. The
S pin goes to
P goes to
GPIO10 on the Raspberry Pi.
Power On LED – Use the
P+ pins for connecting external LED as power on indicator.
P- is cathode(-) and
P+ is the anode(+). Use a resistor in series with
Charging LED – Use the
C+ pins for connecting external LED as charging indicator.
C- is cathode(-) and
C+ is the anode(+). Use a resistor in series with
If you want to use your own charging port like a dc barrel jack or usb type-c port, you can use the
5V input and
GND input for the PowerSwitch without charging port.
In order to enable the Safe Shutdown feature of the PowerSwitch, login via SSH and execute the following command:
wget -O - https://www.tinkerboy.xyz/setup.php -q | bash -s ss
When it’s done you should get an “OK!” message if it’s successful. Otherwise, let me know when you get an error.
Now restart your Pi by issuing
sudo reboot. That’s it!
Have a nice day! 🙂