Pi Supply is an external power switch for your Raspberry Pi. I have to be scrupulously honest here and say that, when I first heard about it, I thought “well that solves a problem I haven’t got”. But in the Raspberry Pi forums, quite a lot of people complained about not having a power switch. It’s never been an issue for me. I don’t find unplugging a micro USB cable all that hard. I’ve never broken the capacitor off the Pi (although I have broken a couple of SD card slots and fried a couple of SPI ports).
But, recently, I built Jason Barnett’s MotorPiTX board, which has a similar, but different, ATX-style power switch. I found myself rather liking it.
So when Aaron Shaw, a MagPi editor and the guy behind the Pi Supply switch, sent me some review samples of his products, I was already a lot warmer to the idea than I had been in the past.
Here’s what you get in the kit…
The micro-usb port is pre-soldered. This is a nice touch because they’re quite fine pitch and really not that easy to solder well by hand. Aside from that you get…
- 6 resistors
- 2 diodes
- an electrolytic capacitor
- 2 transistors
- a small red LED
- 3 ‘tall’ buttons
- a 2 pin header
- an USB port
- a teeny relay
- a USB to micro-USB noodle cable
- 2 female-female jumper cables
- PCB with micro-USB
20 minute assembly
It took me about 20-30 minutes to put together. As usual, I was fussy to get everything straight and all the resistors the same way round etc. It looks better for the photos. Start with the lowest parts and build upwards. I did resistors first, then diodes, then LED, then transistors, electrolytic cap, USB port, header, buttons and then relay last.
It’s quite tightly packed, which gives you a small form factor.
What do the control buttons do?
You’ve got three control buttons. From left to right, they are…
- Power OFF – hardware kill switch
- Soft OFF – software shutdown – requires 2 wires to pins 7 & 8 and a program to be running
- Power ON
Buttons 1 & 3 work independently of what’s happening on the Pi. You can use these as simple OFF and ON switches.
Button 2, the “shutdown” switch, is designed to work with 2 jumper wires (provided in the kit) connected to pins 7 and 8 on the P1 GPIO header of the Pi. Pressing this button initiates a shutown on the Pi. Depending on which script you run, you may have to hold it for a second.
Two example Python scripts to use with this can be found here.
Can I still shutdown “normally”?
Yes. If you shut down your Pi the “normal” way e.g. by typing
sudo halt, or
sudo shutdown -h now, after about a minute, the capacitor is discharged and the relay opens, isolating the power. You’ll hear the relay click and see the red LED on the Pi extinguish.
How Much and Where?
The Pi Supply costs £15 and you can buy one from the Pi Supply shop
Do I need one?
It’s one of those little extra items that is really nice to have, but not essential (for me at least). But we all have different uses for our Pis, and for many people, this seems to be a ‘must-have’ item.
It’s definitely a nice little board and it works well so far. I think I might envelop mine in some clear heat-shrink to protect the underside from shorting if I put it down on something conductive. You could also mount it on some sort of backing, as mount holes are provided.