I live in a area with frequent power failures lasting up to 5 hours. During this time I would like to power my router so that I can still use the internet with my phone/PC.
I've looked at UPS solutions, but they are quite expensive and not very efficient. I've decided that I want to build my own battery backup solution that uses a 12V 7 AH AGM sealed lead acid battery to directly power the router when the power is off (my router requires 12V DC)
The question is how do I charge the battery while there is mains power and how do I then seamlessly switch to battery power when the mains power fail.
I'll first need a charging circuit. Can I create a simple charging circuit using a regulator such as the LM317 of L200C or should I go for something more advanced such as TI's UC2906? Or what's the recommend way a charging one of those batteries? I assume I'll also need a small transformer and rectifier circuit to power the charging circuit. I would also like to see the battery's remaining capacity and an indicator to show that it is fully charged. Not sure of any of these options will make it easier?
Next, how do I set it up so that the battery goes from charge mode to supply mode when the power goes out? Can I simply connect the battery to the router and that way the charger both charges the battery and powers the router? Then when the power goes off the battery powers the router. Or would I need a switching circuit that senses when the power is off and switches to battery power (through a relay or some other means)?
Lastly, does the output of the battery need to go through a regulator to ensure it is exactly 12V or can I connect it directly to the router?
I've found this product, but I think I can make it my own battery backup for under $30 (plus it's a lot more fun)