I have been reading the following instructable: http://www.instructables.com/id/Simple-Raspberry-Pi-Shutdown-Button/
It says that when connecting a switch to the GPIO input be careful not to do it when the code is not running because doing so will blow up my Raspberry Pi Zero W.
I can see this happening easily:
- My pi is booting and someone presses the button
- There is a bug in the code causing it not to run
- I get the wrong GPIO during development
I would rather not hook up a 'blow up' button to my raspberry pi - doesn't seem like a clever idea.
If the Pi only detects voltage on the pin then rather than just short it to ground could I connect a resistor to the pin in series with the switch? Then it would be safe even if my code is running.
This solution must be wrong since it's very simple and if it did solve the problem it would be in the article.
Does anyone know why this is wrong?