Raspberry Pi Shutdown Restart Button
STORY
I'm helping to build some crazy singing Tesla coils for Burning Man, and we're having trouble with our controllers, so I've researched how to set up a script that runs in the background and can shut down or restart the Pi. This should help prevent data corruption (hopefully!). It's super quick and easy!
Wiring the button(s)
Grab a momentary switch (push button) and cut a female-female jumper wire in half. Strip the cut ends, and solder them to the button's terminals. Place these female connectors on pin 18 and a GND pin.
If you want separate "shut down" and "reboot" buttons, do this twice, and place the second one on pin 23 and another GND pin.
Raspberry Pi Shutdown Restart Button
Reviewed by XXX
on
สิงหาคม 07, 2560
Rating:
ไม่มีความคิดเห็น