I have to design an electronic circuit that must be supplied from an AC/DC, when the AC is present, and from a 12V lead-acid battery, when the AC is absent (blackout). The circuit will need 1-2A maximum.
When the AC is present, the battery should be charged. A protection against polarity inversion of the battery should be present, at least with a fuse.
I normally use a simple circuit. The output voltage of AC/DC is around
14.0V, so it's greater than battery voltage. So a couple of diodes select the power source, with priority on AC/DC.The battery charger is a simple small high-power resistor that gives to the battery the current it needs (lower when the battery reaches the full-charge).
I'd like to improve this, because it has many disadvantages.
- The charger isn't optimal
- During AC present, I'd like to test the battery to show a warning to the user when the battery must be replaced, because on the next blackout the battery will not be capable to supply the system
Mostly important is the second point. By measuring only the battery voltage isn't enough to understand if the battery is good. I have seen many batteries that shows a good voltage on open-circuit, but it decreases very fast when connected to the load.
Do you have any suggestions?