What I want is a ESP that I can power using a 5v ac adapter, but I also want to connect a battery (3.7v lipo) that is getting charged when the ac adapter is plugged in. Plugging or unplugging the adapter should not affect the running state of the ESP.
It seems like the TP4056 should be suitable to take care of this. I have bought a few of these boards that also include overcharge protection: https://www.aliexpress.com/item/5pcs-lo ... 12b8bb0acd
When I hook it up to the AC 5v adapter, I get about 4v out of it on the output pins, whether the battery is connected or not, so that should be good enough for the 3.3v the esp needs.
When I use a esp with ac adapter, I use a HT7333 to convert the 5v to 3.3v. I thought I would also need to do that with battery power (since 4v is more than 3.3v), but when I hook up the output pins of the TP4056 to the HT7333, I only get 3.11v out of it.
When I hook up the esp, I see it drops to below 3v, and the esp is just spitting out exceptions.
When I hook the esp up directly to the output of the TP4056, it is actually booting successful, but it seems to me that feeding the ESP with a too high voltage is not really a stable long-term solution...
I was wondering if anyone can give me some advice on how to best regulate the power that's going into the esp. Seems like I'm not going in the right direction with the HT7333.
Is there any other kind of solution for this? when I google around, I see a lot of projects directly feeding the ESP with a 3.7v lipo, but it seems to me that that is not a proper solution, since the power going into the ESP can be too high that way.