I want to use an AC to DC 14.4v adapter to supply both my circuit and its battery. The circuit works with 12v and I used a battery during power outage(blackout time). I have prepared the below circuit for switching between adapter and battery but I need to recharge the battery when power comes again. Assume the dip switch as main power key.
And another problem is: suppose we are in blackout time and battery voltage level decreased to for example 9 volts. How can i disconnect the battery? Is it possible to use a MOSFET transistor something like IRF510 between battery and circuit?