So I have this battery charging circuit. It’s the BQ24092 (battery charging IC) connected to the TPS793 (linear voltage regulator). When a LiPo of 3.7V is connected and a USB-C of 5V is connected, the LDO will regulate it to 3.3V for an ESP32.
However that got me thinking. Will I be able to still give my esp32 power if the battery is unconnected? I’ve been told that I won’t be able to without some sort of power or-ing circuit.
Since the diode’s (circled in red) anode is higher voltage than the cathode when the USB-C is plugged in (circled in blue), there shouldn’t be any current going through the diode while it’s plugged in. Therefore the voltage regulator will be getting all of it’s power from USB rather than the battery, but as soon as the USB is unplugged, the voltage regulator gets its power from the battery.
At least that’s what I’ve theorized, but maybe it’s not even necessary at all?