2

Are there any Raspberry Pi hats which allow to shut down the Pi by pressing a button ?

Are there any DIY open hardware projects which describe step-by-step how to build such a hat ?

Ghanima
  • 15,855
  • 15
  • 61
  • 119
martin_0004
  • 159
  • 1
  • 6
  • You only need a switch and 2 wires. See http://raspberrypi.stackexchange.com/a/42945/8697 for my solution – Milliways Apr 16 '16 at 22:51
  • This functionality is available in the kernel. https://www.kernel.org/doc/Documentation/gpio/drivers-on-gpio.txt and https://www.kernel.org/doc/Documentation/devicetree/bindings/gpio/gpio-poweroff.txt – Alistair Buxton Apr 17 '16 at 11:08

4 Answers4

1

No, but there are open software options, such as Adafruit's GPIO-Halt which'll do what you ask, with a default pin of #21, which is the last pin on J8. You change the pin in the .c file, if desired.

Alexander M
  • 498
  • 1
  • 4
  • 10
0

This 'Pi Supply Switch – On/Off Power Switch for Raspberry Pi' might be of interest to you: Pi Supply Switch

robosnacks
  • 212
  • 1
  • 6
0

I use a Button that flips in 2 ways. One for sending a signal to a GPIO Pin to shut it down via software. And the other to the RUN pin to start it back up again.

Michi Lo
  • 31
  • 1
0

To anyone still interested in this question, this might be worth noting as a prepackaged solution: Pimoroni: OnOff SHIM.

Greenonline
  • 2,740
  • 4
  • 23
  • 36