Combining 2 battery charger circuit

Hi, I need help connecting some modules together. I have an esp32s3 based microprocessor that already has a built in lipo/lion charging circuit.
Now, the problem is that I need 5v to power other modules and a stepper so the internal battery circuit is not enough. So my idea was to use a tp4056 module to handle most of the power consumption.

This is what it should look like


The only module missing is a 5v booster that I'm still waiting to arrive.

My question is: can i plug the out+/- of the tp4056 to the esp32 battery plug. I don't think it's the right thing to do...right? Also, what happens if I plug the USB to the controller? Current will flow IN to the tp4056 where it's suppose to go OUT.

It doesn't sound right! Maybe adding some diode to avoid current flow where is not supposed to go?

So the main question is: How do I handle current to my micros when there's already a battery circuit in it? (but it's not enough?)

Thanks and have a nice day.

Please post a schematic.


Not a very professional schematic but I hope it's at least understandable.

Oh i forgot the buzzer: it will be connected to the transistor array.

It's not a schematic at all. It's a wiring diagram. But it is clearer than your description.

It's not clear to me if your circuit will be safe. If you plug a charger to the tp4056 module in order to charge the 18650 battery, the BAT input of the ESP32 board will receive 5V. It's not clear from the ESP32 product page if that's ok or not.

Ok, I think I have found the schematic for the tp4056 module:


If I power the module by his type c, the out connections gives me around 4.1V. That should be fine for the esp since it is like having a cell connected.

I guess the real problem is: what happens if I plug the typeC cable to the esp?

The next one are the schematic for the power side of the esp controller

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.