How do I add an on/off button to a Raspberry Pi Zero board? I am new to the platform and kindly ask for instructions suitable for a novice. Thank you.
-
1Why? What is the objective? Do none of the hundred similar questions not provide an answer?– MilliwaysCommented Apr 4, 2019 at 3:41
-
Please clarify: Do you want a button to shut the pi down/turn it back on or a button to disconnect power/reconnect power?– Benjamin AshbaughCommented Apr 4, 2019 at 4:13
2 Answers
You can follow this guide on adding a Power Button to your Raspberry Pi. It shows how to do it on an RPi 3 model, but you can do exactly the same on the RPi Zero, as their pinout is the same.
The only caveat with your RPi model is the soldering. Here is a video from the Raspberry Pi Foundation on how to solder pins to your RPi Zero. And here is another guide on how to add 40-pin GPIO connector.
Edit
If the guide to add a power button is down, here is a copy of it on Wayback Machine.
Adding an on/off is fairly simple IF you can solder pretty good. However, depending on where the Pi is located, you could get on of the usb cables that come with a on/off switch. They are fairly cheap and come in various links. I have a couple that I use EVEN though I poweroff the pi.
-
2I can solder pretty good but it doesn't help me with your answer. What should I solder?– IngoCommented Apr 3, 2019 at 21:54
-
1A power switch on the USB cable is no good if the OP wants the pi to shut down when the button is pressed. Commented Apr 4, 2019 at 4:12
-
@scitronbon, GREAT point. I did not grasp his initial point, I was only thinking of just removing the power after using shutdown command. I think that David's post answers his question.– voyager8Commented Apr 4, 2019 at 12:31