I am building a 9 V UPS for my Wi-Fi router using TP4056 lithium-ion charging module and MT3608 stepup converter. If USB power is available I want MT3608 to get power from USB (TP4056 Vin Pin) otherwise from battery (TP4056 Vout Pin).
I don't have a MOSFET, so I am using diode like this
IF USB power is avaliable does MT3608 pull current from higher voltage source (eg: from USB 5 V rather then 4.2 V from battery).
Will this circuit work?
Any suggestions?