My goal is to be able to power the RPI from either the internal pin or from the usb-c port, but protect the RPI board in case both sources are connected at the same time.
I’m powering a RPI 4 via the 5v pins directly on the board. If the pi is also accidentally plugged in to a usb-c cable, both sources would be effectively connected in parallel, which will fry the board.
Is there a circuit that can detect that there is already voltage coming in from the 5v pin, and if so, block the internal power source from supplying voltage to the pin?