I have a circuit which works with a battery normally. The nominal voltage of battery is 3.7 V and I am using boost converter to make it 5 V. And I have a charging circuit of this battery too. So, my aim is when the USB cable plugged, I want to boost circuit stop working. So, it is like a switch controlled by a 5 V. Like normally closed relay.
How can I do this? I tried MOSFET and BJT transistors at the input port of the boost circuit but these are caused voltage drop.
As a result, how can I disconnect 3.7 V from boost circuit when 5 V is plugged?
Charging Circuit:
USB input: