Posted on 6 Comments

Setup and Wiring Guide for the tinkerBOY PowerSwitch

Batter Inputs

The BATT+ and G pins are the inputs for the battery. BATT+ goes to your battery’s positive wire (Red) while G goes to GND wire (Black).

5V Output

The 5V and G pins are obviously the PowerSwitch’s 5V+ and GND outputs.

Safe Shutdown

TheS and P pins are your Safe Shutdown GPIO pins. The S pin goes to GPIO11 and P goes to GPIO10 on the Raspberry Pi.

LED Indicators

Power On LED – Use the P- and P+ pins for connecting external LED as power on indicator. P- is cathode(-) and P+ is the anode(+). Use a resistor in series with P-.

Charging LED – Use the C- and C+ pins for connecting external LED as charging indicator. C- is cathode(-) and C+ is the anode(+). Use a resistor in series with C-.

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.

Safe Shutdown

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! ๐Ÿ™‚

6 thoughts on “Setup and Wiring Guide for the tinkerBOY PowerSwitch

  1. How to combine your safe shutdown with brightness control?? Both use gpio10..

    1. Good question! ๐Ÿ™‚ I will be doing a different script to control brightness using two controller buttons from a usb controller like my v3.

      1. Any update for this problem?

        1. For now just change the GPIO pins for the Safe Shutdown in config.txt.

  2. What resistor would you use in-line for wiring up external charging/power lights?

    1. 1k – 10k resistor.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.