I have a PCB design that is powered by mains electricity via an 9V adapter. When there is no electricity, I want it to switch to li-ion battery mode and provide energy. When there is electricity, the battery must not provide energy. At the same time, I want the battery to be charged from the circuit when not in use.
The battery will be embedded, it cannot be taken out and charged. How to split battery voltage and adaptor voltage?
I didn't know how to do this.
If you have any information, I would like your help.
I moved your topic to an appropriate forum category @hdhdhd1.
In the future, please take some time to pick the forum category that best suits the subject of your topic. There is an "About the _____ category" topic at the top of each category that explains its purpose.
I may not have explained it fully. I added the flowchart of the system. hope you understand from there.
I can say that it works like computers power system.
That is, if the system is working with the adapter, there must be no voltage coming from the battery to the system.
If there is no mains electiricity, the battery must be activated and the system must be operated.
The battery should only be activated automatically when there is no mains electricity.
Isn't this just the standard load sharing (power path) circuit? In the schematic below, you would have 9V from mains instead of 12V. That's assuming the TP5100 will charge 2S cells from 9V.
Note that the AC adapter must be able to supply enough current to power the load and charge the battery at the same time. Also, if you need a manual on/off switch for the device, it should go just before the regulator. That way, the battery can still be charged while the device is switched off.