Thank you sounds very logical now.davidcoton wrote: ↑Tue Aug 18, 2020 11:09 pmNo. 3V3 is derived on-board from the 5V input. It won't go low until the battery is exhausted. Once the 3V3 goes low, the Pi has ceased to function. It is far too late to think about shutting it down. emma1997's circuit derives a signal from the primary power input side, which goes low when the battery takes over, not when the battery is exhausted.nospamprl wrote: ↑Tue Aug 18, 2020 11:00 pmMy understanding of electronics ends with Ohm's law, but wouldn't it be easier to feed GPIO 5 directly from GPIO 1 (3.3V) ?
I understand GPIO 1 will go down as soon as the power goes off triggering the shutdown process while power starts to be drawn from the battery pack, right?
In this design you could avoid the 2 resistors (which I asume are there to feed 3v to GPIO 5 and should be changed if a smaller power supply is used instead of a 12v).
BTW, I think the only reason to use a 12v power supply instead of the standard 5v is to exceed the battery suplied voltage and keep the Pi running from this source. Am I right?