Hi, I'm trying to make a PCB(esp32 and some 5V and 3.3V sensors) that is able to be powered by a USB, a battery, and both connected together.
My problem here is the DC-DC step down have a dropout voltage of about 1V, which when connected to a battery, doesn't output the right 3.3V I aim to.
The 5V boost circuit works fine.
I'm looking for a better overall solution, can start over if need to.
Thanks
One solution to the 3.3V problem is to use a much better regulator. You might look at the MCP1700. Its dropout voltage is around 0.2V, which would work for a battery voltage down to about 3.5V. And even then, it will follow the battery voltage on down. The downside is that it's a 250mA regulator. If that's not enough, you'd have to find a higher current LDO with similar very low dropout, or use two MCP1700s in parallel.
An alternative would be to drive the 1117 from the 5V output of the boost converter instead of from VBUS. But that's very inefficient.
In any case, speaking of inefficient, the boost converter should be powered from VBUS, not from 3.3V.
A more fundamental question is whether you really need 5V. Are there no 3.3V equivalents of the 5V sensors?
I think it's better to use a logic level converter instead. You can convert 5V to 3.3V with a logic level converter.
As you already know, dropout has little to do with the input voltage required in order to meet the voltage regulation specification. There are very few regulators that can stay in regulation with an input voltage of less than 1V+output voltage.
You can use a different 3.3V regulator for the sensors if they don't draw to much current but the best you can do for the ESP is boost it to about 4.5V then use an LDO to drop to 3.3V or use two batteries in series and a 3.3V buck
Using two batteries in series is going to complicate charging.
I know that dropout specs are very much subject to "some restrictions may apply", but I think there's a reasonable chance that the ESP32 would work with a single regulator like the MCP1700. I think the ESP32 is rated as low as 3V, and if you're on battery power there won't be a lot of noise, so not a lot of regulation to do because of that. Of course we don't know how much current is required for the ESP32 and the 3.3V sensors, but dropout voltage is very much a function of current, so using two or three LDOs in parallel to divide the current load can work pretty well. One LDO will supply all of the current until it starts to sag, and then the next one kicks in. And so on, but all within a limited voltage range. You could even mount two or three of the TO92 parts in the same through-holes, and maybe beef up the capacitor values a bit.
I don't think multiple AMS1117s would give you much because they require so much dropout at almost zero current. The MCP1700 is just a lot better, but has the current limitation.
But I'll say again that the boost converter needs to be powered from VBUS, not 3.3V.
Thanks for all the comments and thoughts.
What about this form?
I moved VBUS to be before the 5V Boost so when USB and 3.7V goes in it will get 5V out(if I understand correctly).
And took the regulated 5V to the AMS1117 so I can handle the drop.
I'm not looking for efficiency at this stage nor low current usage.
I have a circuit which is powered from either a Li-ion or USB.
It charges the battery when USB is plugged in and uses load sharing so that the system runs off the 5V USB and the battery is disconnected from the system and can charge without interruption. Pulling the USB switches it immediately back over to the battery.
I'm using a simple LTH7 battery charge chip for the charging @ 303mA.
I don't need 5V (using an ESP32C3 module and connecting to the 5VIN pin), but there's plenty of tiny modules available that would take the battery voltage up to 5V. In particular I use an ME2108 module. They're very small, very few components and work well enough for what I use them for.
If I need to take either the 5V USB input, or the battery voltage down to 3.3V then I use SPX3189-3.3 LDO regulator. These work adequately for my requirements and are in a space saving SOT23 package. Or I use LF33 in DPAK if I need a little more power dissipation. These are just what I happen to have in my arsenal, but there's plenty of other LDO regulators out there.
Cheers,
Matt
I think your new circuit in post #9 should work, and dropout voltage won't be a problem.
Your original circuit had a charger, but I didn't see a protection circuit. Does your battery have protection built in?
Yes it has a protection circuit. It is a standart lipo 3.7V battery
Great discussion! For your PCB, you might consider using a low-dropout (LDO) regulator for the 3.3V line to ensure stable output even with battery input. Alternatively, a buck-boost converter could handle voltage variations more efficiently. Experts often recommend integrating a power management IC, like the MCP73871, for seamless switching between USB and battery power without voltage drops. This could simplify your design and improve reliability.


