Raspberry Pi Safe Reboot and Shutdown Button
Contributors:
bboyho
Resources & Going Further
For more resources, check out the links below:
- GitHub Repo
- eLinux.org Wiki: Wake from Halt - For certain versions, you can wake the Pi up by shorting pins together rather than disconnecting the power supply. However, caution is advised as these GPIO pins are adjacent to the power pins. You would want to solder a button to the pins to avoid accidentally shorting the power pins.
Need some inspiration for your next project? Check out the Pi AVR Programmer! We implement a shutdown code after programming and testing boards.
Raspberry Pi Stand-Alone Programmer
This tutorial will show you how to use a headless Raspberry Pi to flash hex files onto AVR microcontrollers as a stand-alone programmer. It also tells the story about production programming challenges, how SparkFun came to this solution, and all the lessons learned along the way.
Pi AVR Programmer HAT Hookup Guide
In this tutorial, we will use a Raspberry Pi 3 and the Pi AVR Programmer HAT to program an ATMega328P target. We are going to first program the Arduino bootloader over SPI, and then upload an Arduino sketch over a USB serial COM port.
Or check out some of these related tutorials:
Raspberry Pi SPI and I2C Tutorial
Learn how to use serial I2C and SPI buses on your Raspberry Pi using the wiringPi I/O library for C/C++ and spidev/smbus for Python.
Qwiic pHAT for Raspberry Pi Hookup Guide
Get started interfacing your Qwiic enabled boards with your Raspberry Pi. The Qwiic pHAT connects the I2C bus (GND, 3.3V, SDA, and SCL) on your Raspberry Pi to an array of Qwiic connectors.
SparkFun Auto pHAT Hookup Guide
The pHAT to get your projects moving. This guide will help you get started using the Auto pHAT.
MicroMod RP2040 Processor Board Hookup Guide
This tutorial covers the basic functionality of the MicroMod RP2040 Processor Board and highlights the features of the dual-core ARM Cortex-M0+ processors development board. Get started with the first microcontroller from the Raspberry Pi Foundation!