I'm trying to bulid a li ion battery charger with TP4056 module (with battery protection) with load sharing, so that connected ESP32 dosen't restart, when external power supply is turned off. I've attached the schematic.
-
When the ac-dc adapter (which is giving 5V DC at input), is turned off, voltage at SYS OUT flactuates from 2.5~2.6 V, then gradually increases to battery voltage, usually 3.9~4 V. When the adapter is turned on, then the voltage at SYS OUT is 4.8~4.9 V.
-
Both led is turned on of TP4056 module, when the battery is connected and external 5V is applied at input, battery voltage is measured 4.0~4.1 V in this condition.
The SYS OUT is connected with 3.3V LDO (MCP1925S), when external power is turned off and SYS OUT flactuates from 2.5 V, the output of LDO isn't 3.3 V, hence the connected ESP32 restarts. I need to build this, so that the esp32 gets uninterrupted power supply, 3.3V.
How to solve this?