Raspberry Pi - Install a Momentary Reset Button
Overview
Inspired by a blog post by Alex on Raspi.tv (Thanks Alex!) on how to install a reset switch on the Raspberry Pi, I too wanted to install a reset switch on my Raspberry Pi. The only significant difference is that I wanted to install an actual momentary push-button switch permanently on the Pi rather than header pins and an external pushbutton switch.
The addition of a reset switch is possible with the Model B Rev 2 boards and the addition of two holes in the board labeled "P6". Sorry Rev 1 boards, you are are not eligible for this upgrade :-(
Shopping List
- 1 @ Raspberry Pi (see this page for more Raspberry Pi related supplies)
- 1 @ Momentary NO (normally-open) PCB push button switch (2 pin)
Tools / Supplies
- Soldering Iron
- Solder
- Soldering Flux (optional)
Procedure
STEP 1: First, locate the P6 labeled header holes in the Rev2 (or later) Raspberry Pi.
STEP 2: This next step is not required, but it is suggested. To to help prevent the switch from moving and to help insulate the switch from other board components, cut a small rubber square out of any scrap rubber material and insert the rubber square in between the two pins of the push button switch as show below.
STEP 3: Next, insert the momentary push button switch into the board from the top.
(The polarity (direction) of the two pins does not matter.)
STEP 4: Next, make sure the switch is firmly pull tight against the board an solder the two pins from the back side of the board. (You can optionally use a small amount of solder flux to help ensure a clean and well bonded connection.)
Be careful not to let your solder iron accidentally touch or rest on any components on the Raspberry Pi board!
STEP 5: Next, clip the excess length of the leads from the momentary switch and clean the bottom of the board of any solder slag and/or flux residue.
Testing
That's it, you should now have a nice little reset button permanently mounted to the Raspberry Pi. You can insert your SD card and power up your Pi to test it out. After the Pi has booted up to the login prompt, press the reset button and watch your Pi reboot.
Here is a short video demonstrating the reset button in action.
Thanks again to Alex from Raspi.tv for his post on this subject.
Reader Comments (6)
Does anyone know of a way to control the function of p6, so that a quick push actually does reboot and extended push would force reset or is this just a hard reset setup?
@Robert,
P6 is a hard reset. To pull off what you are looking for would require you to connect a switch to a GPIO pin and have a program running to monitor the state of the pin. On a quick press, you could issue a software instruction to reboot. For a long press you would need to use of second GPIO pin to trigger a circuit to close the two pins on P6 for a hard reset.
Maybe this article will give you some pointers/insight:
http://raspi.tv/2012/the-self-resetting-raspberry-pi
Thanks, Robert
Link to switch on EBay is dead, any chance of a part number for the switch
Many Thanks
@Chris Lamb,
I have updated the link to a new vendor. Here is one I found on eBay:
http://www.ebay.com/itm/20pcs-Tact-Switch-Push-Button-6-6-5-6mm-6mm-5mm-2pin-Through-Hole-SPST-NO-/261093941026
I searched using the terms "2 pin push button switch NO".
Thanks, Robert
irmhiflor e3d3fd1842 https://vkraini.com/modilittdo
irmhiflor e3d3fd1842 https://vkraini.com/modilittdo