This project will make a button switch that will both boot up and shutdown a Raspberry Pi and will light an LED while the RPi is operational. Great for headless setups. I created it to augment a Raspberry Pi Baby monitor, because of the concern with using a camera in a shared room.
My example is on a Raspberry Pi Zero, but it will work on any Raspberry Pi.
The button switch is just Pin 5(GPIO3) and 6(GND) connected together. I added a .01uf capacitor because it would signal the GPIO without hitting the button especially when I discharged static electricity nearby. Works reliably with the capacitor.
The LED is hooked to ground with a 330 Ohm resistor and is powered by the TXD (Pin 8). It needs serial console enabled to Light up. My circuit board pictured is a little different from this guide because I was in the process of adding some IR LEDs to my project.
Each Friday is PiDay here at Adafruit! Be sure to check out our posts, tutorials and new Raspberry Pi related products. Adafruit has the largest and best selection of Raspberry Pi accessories and all the code & tutorials to get you up and running in no time!
Have an amazing project to share? The Electronics Show and Tell is every Wednesday at 7:30pm ET! To join, head over to YouTube and check out the show’s live chat and our Discord!
Python for Microcontrollers – Adafruit Daily — Python on Microcontrollers Newsletter: A New Arduino MicroPython Package Manager, How-Tos and Much More! #CircuitPython #Python #micropython @ThePSF @Raspberry_Pi
EYE on NPI – Adafruit Daily — EYE on NPI Maxim’s Himalaya uSLIC Step-Down Power Module #EyeOnNPI @maximintegrated @digikey