External supply with TP4056 for ESP32

Hello together, you helped me already with DFPlayer and ESP32. Now i have further question to this topic.

Please follow my last question here: previous topic

I try now to make an external power supply with LiPo Battery 3.7V, StepUp Module MT3608 and charging module TP4056.

As already mentioned, if its supplied with USB Port everything is ok. But if i am going with Battery it is seems to be that my controller not starting. The LED (for tests) in setup() function, not even blinking.

A few scenario that i have seen:

  1. USB supply -> works well.
  2. batter supply + charging module connect to powerbank or usb -> sometimes works, but started after x times reboot.
  3. only battery supply -> has only i guess 2 times started, after few seconds was dead.

The voltage in all scenarios on the module is the same ~5.0-5.1V (between V5 and GND pins).

I have tried different batteries with capacity: 320mAh, 1000mAh and 1200mAh. No changes.

Also i have battery status in %, works now very well :melting_face: (Analog Pin35). Without this function make also no difference.

Do you have maybe some ideas?

Thank you in advance

I don't understand the question, but if I had this problem, I would look for posts here on the forum that involve TP4056 and member ShermanP. He has posted very good information on using 18650 Li cells and the 3 (THREE) chips or more needed for correct operation.

Does your lipo battery have sufficient voltage? Did you check with a multimeter?

yes, i checked.
Also I have tried with Powerbank, the same result.

Any USB, not just computer?

Do you have anything else connected to arduino other than DFplayer?
What if you set volume to 0?

A multimeter doesn't properly check voltage, you need a load.

Is this your nodemcu?

Does it work if you push the EN button

yes, USB Adapter, Powerbank etc.

yes, RFID also, everything as in the schematic

how then could i measure it? :thinking:

this is my:


No EN button.

When there is load applied.

Also, you didn't answer for the zero volume question, DFplayer can draw high current when volume is high.

First of all, you have connected the battery GND straight to GND, but LOW-voltage cut-off protection from the TP4056 module cuts the GND in case it has low voltage, so the connection should be removed.
Secondly, you measure a battery voltage between 3.7v & 4.2v on a pin that takes between 0 & 3.3v !!!

Before you continue please remove these connections. If you want a voltage monitoring system for the battery you may be able to do so later, although i think you will need to add an Op-Amp as a buffer.

Now i understand you want to start out with 5v so you can power the DF-player, but the ESP32 is a 3.3v device and the devkit has an inefficient 3.3v linear regulator on-board. Anyway to see if that works you should disconnect the DF-player just to see if the current demand exceeds what the MT3608 can supply (which is 1A, but that is given it has sufficient heatsink.

Keep in mind that the TP4056 is not capable to do a load-share. While you are charging the battery, there should not be a load on the battery as well, or the TP4056 may keep charging an already full battery which may (thank god this doesn't happen to often !) explode.

As pointed out above, your charger/battery setup is not at all safe.

The TP4056 is not designed to charge a lithium battery while it is connected to a load.

no changes. Thank you.

In scenario 1, is power connected to the USB port on the dev board, or to a USB port on the TP4056 module? If the former, how is the TP4056 powered?

did it, not helps.

did it, no changes.

I connected now DFPlayer to 3.3V. No changes. So with TP4056 has the same problems.
After i diconnected DFPlayer, no changes.

After that I have try, to give 5V directly to my controller. Only after disconnecting RFID it has works, but speacker make strange voices. After 1-2 min controller make reboot, and not always starting after.

yes, 5V from PC-USB connected to the dev board USB.
TP4056 has no power connection, at that case.

Some boards call it EN some RST.
So will the board work properly after you push the RST button?

Many of thes boards are not designed properly and will not reset properly when connected to an external power source but will always work when connected to a PC.

unfortunately, no.

Not sure you mean 5v from the MT3608, but if so, then it looks like your MT3608 module does not provide sufficient current. An ESP32 can be quite power hungry.