Title: Need help designing a DC UPS for a 3S Li-ion battery – Automatic switching, simultaneous charging and stable 12V output
Hi everyone!
I'm working on a portable billing machine project that uses a thermal printer and an ESP32. I want to implement a DC UPS system where the machine runs from an external adapter when available, while simultaneously charging the battery. When the adapter is disconnected, the battery should automatically take over without interrupting the load or resetting the printer/ESP32.
My requirements:
When the adapter is connected, the load should run directly from the adapter.
At the same time, the 3S lithium-ion battery should charge.
When the adapter is disconnected, the battery should automatically power the load.
Switching should be seamless, without voltage drops that cause the thermal printer or ESP32 to reset.
I need a stable regulated 12V output in both adapter and battery modes.
My existing components:
3S2P Li-ion battery pack (5200mAh).
3S BMS.
15V 5A adapter (I also have a 12V 5A adapter).
12.6V CC/CV charging module.
YX850 automatic switching module.
Thermal printer: RP203, 12V, up to 3A.
ESP32 and other electronics.
The problem I'm facing:
I previously tried using a YX850 module with a CC/CV charging circuit, but the system is unstable when switching to battery power. When the load is connected, the UPS module sometimes resets, and the printer doesn't receive sufficient power.
I've also tried looking for ready-made DC UPS modules, but I'm unsure which ones can handle this load reliably.
My questions:
Is there a dedicated DC UPS or power-path management module that supports a 3S Li-ion battery, simultaneous charging and load operation, and automatic adapter/battery switching?
Can I achieve this using my existing 12.6V CC/CV charger and YX850 module?
Would a buck-boost converter combined with an ideal-diode OR-ing circuit be a better solution?
If I build a custom circuit, what modules or ICs would you recommend?
How can I maintain a stable 12V output when the battery voltage varies from approximately 9V to 12.6V?
I'm looking for a reliable solution that can handle the thermal printer's current spikes without shutting down or resetting.
I'd really appreciate any circuit diagrams, module recommendations, or practical experiences with similar DC UPS projects.
Thanks in advance!