@jackal123uk Thanks for sharing your solution! Mouseberryes are out-of-stock for a while and I would like to use this concept to power RPi from the car battery. When the engine is turned on, one of the 12V battery outputs is active while the other battery output is always 12Vs, so the goal is to transform 12V to 5V only if engine is on, to power RPi. I wouldneed such circuit to safely power off RPi when engine is turned off.
As I have really limited experiences with hardware, I would like to ask you how to modify the scheme to support such solution? Why do you have this USB in your circuit? Thanks a lot!