How to Add an on Switch to the Raspberry Pi Model B Rev 2




When the RPi goes into halt state, you usually have to unplug and replug the power. This can become rather annoying, in a variety of setups, especially wearables and other very compact systems. 
If you are lucky enough to have the most recent version of the Pi Model B (Rev 2), you can conduct this hack.
The Ras Pi has several headers. P1 is the GPIO pins, P2 and P3 are the JTAG pins, etc.
For this hack, we will use the two-pin P6 header.

What you need: 
1x Raspberry Pi Model B Rev.2
1x 2-pole momentary pushbutton switch

For this system, simply solder the two poles of the switch to the two pins of P6. 
Or, for a "remote" switch, attach two wires to P6 and then connect the switch to those wires.

To reset the RPi while it's on: hold the pushbutton down for about a second.
To wake the RPi from halt state: press the pushbutton down until the ACT light turns on.

Have fun, please comment with any issues!



    • Trash to Treasure

      Trash to Treasure
    • Arduino Contest 2019

      Arduino Contest 2019
    • Tape Contest

      Tape Contest

    3 Discussions


    4 years ago on Introduction


    Hos much power does the pi consume in halt state? Is it really off? Is it possible to get a picture or two of this hack? Because I don't quite understand it.

    1 reply
    Dashing Rainbow DashRobertE1

    Reply 3 years ago

    I know this is an old question, but my Pi 2 B draws about 50mA in the halt state. It is basically off, but the led and a few other low power components continue to draw power. The power consumption of the Pi was so low that it was enough to shut my powerbank off, as it probably thought that there was no load.


    3 years ago on Introduction

    Its pretty simple.

    Ever have a PC get stuck in Sleep Mode? Stuck to where you have to hit the Momentary Switch on your tower (reboot)?

    The RasPI is in constant on state when power is applied. Many of the setups will put your RasPI Machine in "HALT STATE" sort of like when your PC goes into "SLEEP STATE". Many times the only way to get The RasPI out of "HALT STATE" is to unplug the plug back in (hard reboot) the system. A momentary ON-OFF Button saves unplugging and plugging back in. Especially if your plugs are in hard to reach spots. Hope this helps.