5 ms·
Hmm. A supercap combined with a diode on 5V and a line to a GPIO from Vcc to provide enough time for the OS to shut down... like this (RPi GPIO) <--
by mschuster91 9y ago
Hmm. A supercap combined with a diode on 5V and a line to a GPIO from Vcc to provide enough time for the OS to shut down... like this
(RPi GPIO) <-----------(resistor to 3v3)-|
(RPi microUSB in) <-------------(diode <-)------+---- Vcc
| Supercap
(RPi GND) ----------------------------------- GND
When the supercap is huge enough (or, for what its worth, use a powerbank with passthrough capability!), this should work - when the GPIO goes low, the system can initiate a safe shutdown, and especially it can signal a "shutdown" signal to the microSD.