Idea
In short
How do you build a safe shutdown on power loss?
A supercapacitor or battery gives the Pi time to shut down cleanly when power is cut. You need Raspberry Pi Zero 2 W, SanDisk microSD card 32 GB (A1, Class 10), Supercapacitor 5.5 V 1 F, BC547 NPN transistor, Resistor 10 kΩ × 2 and Rectifier Diode 1N4007.
- Level
- Intermediate
- Time
- About 150 min
- Parts
- 6
An idea, not a guided build yet. Goal, parts and steps; no wiring, code or tests. Copy it to My Garage to plan it.
Goal
Protect storage from sudden power loss.
Parts list
- Single Board Computers
- SBC Accessories
- Power
- Semiconductors
- PassivesResistor 10 kΩ × 2
- Semiconductors
How to build it
- Sense loss of the 5 V input
- Send a GPIO signal
- Run a shutdown script
- Hold power for 30 s
- Test a hundred power cuts
Common questions
What parts do I need for the safe shutdown on power loss?
Raspberry Pi Zero 2 W, SanDisk microSD card 32 GB (A1, Class 10), Supercapacitor 5.5 V 1 F, BC547 NPN transistor, Resistor 10 kΩ × 2 and Rectifier Diode 1N4007.
How long does the safe shutdown on power loss take to build?
About 150 minutes for a intermediate maker.
