Free shipping on all orders over $150 with code "FREESHIP"

The OnOff SHIM: the power button for your Raspberry Pi

October 04, 2017

If there's one feature we wished the wonderful Raspberry Pi had built in, it wouldn't be for a faster processor or more memory. While those features would be nice, just a simple power button is all we ask for. Pulling the plug on a Raspberry Pi — particularly one that's running without a screen and keyboard — can be a risk to your programs and data.

Pimoroni's OnOff SHIM is all we could have asked for in a power button. Install it on your GPIO headers, run Pimoroni's easy setup code, and you're done! The SHIM (the name's a slightly silly acronym, but Pimoroni have never been too sensible) re-routes the Raspberry Pi power supply through the GPIO pins and adds some electronics to disconnect power once your Pi is shut down.

Using it is very simple:

  • If your Raspberry Pi is powered off, just touch the button on the OnOff SHIM and it will boot up normally
  • If you want to shut down your Raspberry Pi, press and hold the button for a second, and the normal controlled shutdown will happen. The power LED on your Raspberry Pi will go out when it's all finished.

No messing about with keyboards or remote logins required!

While the OnOff SHIM comes with a header connector that most users will want to use, what if you wanted to use it along with most existing Raspberry Pi HATs and accessories? The adventurous user can solder the OnOff SHIM directly to the GPIO pins to save all of the space:

This makes your OnOff SHIM much more shim-like when you see it with a HAT attached:

Soldered OnOff SHIM with attached pHAT for illustrative purposes only

Depending on your application, you may not need to cut away the GPIO pin supports as I did. Either way, you might wish to put some isolating tape on the base of the OnOff SHIM to prevent the possibility of an electrical short.

Before permanently soldering an OnOff SHIM to your Raspberry Pi, you might want to check the GPIO pins you need to use on The OnOff SHIM needs exclusive access to physical pins 7 & 11, and any other board you put on top can't use those.

Also in News

We Made a Media Controller!

October 12, 2021

Continue Reading

National Day for Truth and Reconciliation - September 30th

September 23, 2021

Continue Reading

Getting Started with Sid - Pico Plant System
Getting Started with Sid - Pico Plant System

August 10, 2021

The Pico is a great board with a lot of excellent compact build options. For this project I’ll be making an automatic plant watering system with the help of the Pico to keep it running.

Continue Reading