I want to power my esp with a 5v power supply. I also want to have a lipo battery as a back up so the esp will always have power. So in theory I want to charge my lipo battery with the main voltage of 5 volt. I can do this with the TP4056 Board. But still take the mains 5 volt supply to the vin of the esp board. Can this be done?
Thanks for the help
Ray
Hello Ray. Yes, it’s possible to do that, but unfortunately I don’t have any tutorial on that subject…
I only have an ESP32 powered with LiPo batteries and I use solar panels to re-charge it: https://rntlab.com/lora-long-range-sensor-monitoring-and-data-logging-part-1/
I’ve found this Forum topic where the users discuss how to implement a circuit that does what you’re looking for: https://forum.arduino.cc/index.php?topic=496727.0
If you search for “Battery Backup circuit TP4056” or “Power failure battery backup”, you’ll find some results that might be able to help you implement that circuit.