Adafruit - THE MUSICAL - is here! Get a musical tour of Becky's favorite tools around the Adafruit factory (video) and subscribe!

May 23, 2014 AT 9:00 am

Create A Shutdown Button for Your Pi @Raspberry_pi #piday #raspberrypi

Screen Shot 2014 05 20 at 2 50 28 PM

In this tutorial, KingPhil shows us how he created a shutdown button for his Raspberry Pi using an Adafruit Arcade Button:

It has been around a year now since my first Pi arrived and that first Pi has always been used as a media centre for my trailer and at home.

The problem being…

I use the remote app on my phone and iPad as the primary control there is no keyboard attached to the Pi for input. On the rare occasion there is a problem where either XBMC hangs up or the Pi drops from wifi I have no way to power it off other than unplugging it.
At home when it is just the wifi problem no biggie, the physical remote over HDMI works but at my trailer I have an older TV and this doesn’t work.

Anyone who has used a Pi knows you do an unclean shutdown enough times and you have to re image the OS because the file system damage is not always repairable. With lower quality cards this even sometimes leads to the SD card becoming unbootable permanently but I have only had that happen with one particular brand.

The solution

So I have some buttons left over from my original Arcade project and I decided to solve the problem by adding a shutdown button to my Pi. This way even if XBMC locks the physical button can execute a shutdown. It would take a full hardware lock of the Pi to cause a forced power off again and the only time I have seen that occur is when over clocking to 1Ghz so this should in almost all cases solve the problem!

Read more.

Screen Shot 2014 05 20 at 2 50 40 PM


Featured Adafruit Product!

472 00

Arcade Button – 30mm Translucent Pink: A button is a button, and a switch is a switch, but these translucent arcade buttons are in a class of their own. They’re the same size as common arcade controls (often referred to as 30mm diameter) but have some nice things going for them that justify the extra dollar. Read more!



Check out all the Circuit Playground Episodes! Our new kid’s show and subscribe!

Have an amazing project to share? Join the SHOW-AND-TELL every Wednesday night at 7:30pm ET on Google+ Hangouts.

Join us every Wednesday night at 8pm ET for Ask an Engineer!

Learn resistor values with Mho’s Resistance or get the best electronics calculator for engineers “Circuit Playground”Adafruit’s Apps!



No Comments

No comments yet.

Sorry, the comment form is closed at this time.