Car Setup

Wiring the power supply into your car:

To install the switch/power supply in your car there are just three wires that need to be hooked up: the long black, red, and yellow wires that are connected to the green jumper block on the PCB. The easiest place for most people to hook these wires up is in their dash / behind their stereo. Not all cars use the same color wiring combination, but the switch wires are to be connected as follows:

Black wire to ground.

Yellow wire to constant +12V/battery source.

Red wire to ignitition/accessory/switched +12V source.

Please make sure of the following:

Your ground connection should be a strong ground. Please don't ground into a tiny wire.

The switches (both the 2amp and 3amp) are prone to getting warm if driven near max current rating. If you plan to draw a lot of current from your switch then please make sure you have adequate ventilation for your switch!



Connecting the switch to your Raspberry Pi

On the switch PCB you will notice that the two leads are labeled "in" and "out."

Connect each lead to any individual GPIO-labeled pin (GPIO 17, GPIO 23, GPIO 24, etc. but not a ground or power pin. GPIO 0 and 1 should be avoided as well). Please see the green header pinout to the right for the GPIO pin locations and names.
The script is setup by default for the "out" lead attached to GPIO 23 and the "in" lead attached to GPIO 24. If you would like to use different pins then simply change the pin in the script as explained below.

Connect a micro-USB cable from the circuit's USB port to the power port of your Raspberry Pi (or, if you have a direct-plug circuit, directly to your Pi) and when you turn on your ignition the Pi should power on.

You can use either keyboard input or SSH to install the script for the switch

If you have a keyboard connected to your Pi then you can type the instructions listed below into the command line, there is no need to use SSH. The Pi must have internet access during installation (but not needed after) for setup. To access command line in RaspBMC, go to the power icon and then select exit.

For SSH, recommend using Putty ( or WinSCP (, both free.

To SSH into your Pi, find the Pi's IP address provided by your router and enter it in the SSH client (use port 22). Common log-ins are:

  • RaspBMC/Raspbian
  • user: pi                      password: raspberry
  • OpenELEC
  • user: root                  password: openelec
  • Xbian
  • user: root                  password: raspberry
  • Arch
  • user: root                  password: root

Installing the script

For RaspBMC/Raspbian/Debian distributions (Xbian as well, omit the word sudo), type the following and hit enter after each line:

1. wget

2. sudo bash

3. sudo reboot

For OpenELEC:

1. wget

2. bash

3. reboot

For Arch:

1. wget

2. bash

3. reboot

After the Raspberry Pi has fully rebooted, your switch is now ready for use!


To add a shutdown delay or use a different GPIO pin:


1. sudo nano /etc/


1. nano /storage/.config/


1. nano /etc/

For the delay, at the top of the script change delay=0 to the number of minutes you'd like to delay shutdown.

To use different GPIO pins change "GPIOpin1=23" and "GPIOpin2=24" to the pins of your choice as numbered in the header diagram above.