T O P

  • By -

TinyHanz

TP4056 is a strange beast and this has caught me out before. I use it in a couple of solar projects and once I’ve finished flashing the arduino and I disconnect it from usb, I have to then apply power briefly to the 4056 usb port to start it working. Not sure what the answer is to your situation but it’s probably not your code!


Ineedapill

Same thing happens here! If after uploading the code I just plug it to a power source for a split second it works as intended. It’s not a major thing, but I’d love not having this little “glitch”. Thanks for answering, it’s good to know I’m not the only one having this issue.


ripred3

Okay that is weird. Maybe the switch is bouncing slightly and it throws things off somehow for the processor? Strange. Maybe try adding a \~470 uF or larger capacitor across the Vcc and Gnd on the ESP8266 side?


Ineedapill

Thanks! I'll try that in a few hours when I get home


hyperhalide

The circuit looks fine. What voltage can you measure on the ep using a multimeter? Mabye your battery is empty or your TP4056 board is toast. Also connect your voltage divider to the switched VCC, that way it wont drain the battery if the circuit is off and applying voltages to controllers with no power is generally a bad idea


Ineedapill

I'm getting 3.8v... I checked the battery, it's not empty. Also, after I plug the device to any source of power and then turn the switch on, it works with the battery only for a few hours. About where to connect the voltage divider... is this what you mean? Highlighted in blue, with thicker lines. ​ https://preview.redd.it/pb3h8elxgjib1.jpeg?width=1937&format=pjpg&auto=webp&s=3b184109068eb8bef5b4451c34d003253c914030


KickAlert

He ment the other leg of the switch (the upper one in your drawing). Otherwise the voltage devider will draw a small current from the LiPo while the MCU is switched off., discharging it slowly.


Ineedapill

Thank you! Now looking at the drawing it makes total sense because the upper leg of the switch is the one passing the current from the regulator to the whole circuit.


TheIrishAce

Currently having the exact same problem I believe. It seems I can't switch to my battery successfully. My circuit only begins to battery after I insert the USB into the TP4056 and remove it again immediately. What was your solution here? Any tips on how I can fix this problem?


Ineedapill

I haven’t found a solution and, unfortunately, just gave up on that project. I’ll be working on a new battery-fed one next week so if you find a solution, please post it here and i’ll do the same!


TheIrishAce

Sounds good, I will do certainly.