About the Turnoffee-Pi

News: Version 1.2 is now available for purchase! This version includes an additional LED to indicate when it is safe to pull the power or remove the SD card.

 Sold out 

Safely shut down your Raspberry Pi with the press of a button.

As many Raspberry Pi owners have discovered to their cost, if you simply pull the power on your Raspberry Pi, you run the risk of corrupting, and possibly damaging, the SD card. It is important that you always shutdown the Pi from either the GUI or from a terminal window before disconnecting the power.

Turnoffee-Pi, when coupled with appropriate software, performs this safe shutdown for you at the press of a button, and without the inconvenience of having to log in first. It is particularly useful if you are running your Pi "headless" (i.e. with no keyboard or monitor).

Turnoffee-Pi can be supplied as a complete kit of parts which requires basic soldering skills and about 10 minutes to assemble, or it can be purchased ready assembled. Once assembled, plug the Turnoffee-Pi onto the GPIO pins of your Raspberry Pi and install a small piece of software which monitors the button for presses (via an "interrupt"). When pressed, an LED provides a visual countdown before the Pi shuts down completely.

Software is not provided as part of the kit, but, as a courtesy, a download link is provided to a Python script called "turnoffee.py". This script has been tested with the Raspbian operating system, and should also work with other Pi operating systems which have Python and the necessary libraries installed. Alternatively, you can write a script yourself (there are many tutorials on the Web).

The kit includes the printed circuit board, resistors, push button, LEDs and header, as well as a link to the full assembly instructions and the courtesy software for the Raspbian OS. The Raspberry Pi is NOT, of course, included! All components are individually tested before dispatch.

The Turnoffee-Pi is intended to be mounted directly on the GPIO pins, but can also be attached to the Raspberry Pi via a fly-lead (not supplied). You may wish to use a fly-lead if your Pi case cannot accommodate the extra height over the pins (about 10mm), or you simply want to position the push button somewhere else. Please see the Frequently Asked Questions page for the dimensions of the assembled board.