I would use a 12v lead-acid battery and a suitable trickle charger that could be left on all the time. If the power goes off the Arduino won't notice until the battery runs flat.
You can buy a 5V UPS (like the zillions used for cell phones) and add a 12V boost regulator -- either on the output or directly from the batteries. Pololu.com has some nice boost regulators.
I have heard of (and have a couple of) "power banks" used to charge them, which shut down as soon as they are charged and the load falls below a critical current.
A 12 V "UPS" is a gel cell, with a constant voltage 13.2V fully regulated and current limited supply, incorporating a diode to prevent back-discharge through the charging supply.
A solar cell and load controller would be one option. If you have access to mains (line 2) and a 12V adapter (also line 2) then why not use the smallest possible off-the-shelf mains UPS? Nothing special, nothing to design. $19.95 (maybe less) and you're done. Just saying.
Does your computer have a UPS? If so, in most units, it uses a 12 volt lead-acid storage battery for operation. Just connect to the battery terminals and you have a 12 volt UPS. You may have to make a hole in the case to allow your new wires to exit the case.
Paul_KD7HB:
Does your computer have a UPS? If so, in most units, it uses a 12 volt lead-acid storage battery for operation. Just connect to the battery terminals and you have a 12 volt UPS. You may have to make a hole in the case to allow your new wires to exit the case.
Paul
You can do that just remember to unplug the battery if you have to remove the outer case.
Paul_KD7HB:
Does your computer have a UPS? If so, in most units, it uses a 12 volt lead-acid storage battery for operation. Just connect to the battery terminals and you have a 12 volt UPS. You may have to make a hole in the case to allow your new wires to exit the case.
Not necessarily a good idea.
The internal circuits may possibly be simplified by having the battery directly connected to one mains terminal. You would have to check the wiring very carefully.
OTOH, a SMPS providing regulated 13.8 V with a diode feeding to a gel cell will do the job just fine. (Note the diode drops 0.6 V, making it 13.2 V)
I baught a Richroc 12V mini ups for about $35US. It keeps my arduino powered for 20 hours with no mains power supply (15wh). It works great, and you just plug the 2.5mm jack into it and it comes with an output jack that you plug into the arduino.
But I am still looking for a cheaper option for my next one, and I don't need such a big battery.
I have seen the Mini-box UPS 100 12v but that is no cheaper at $30US + I'll need to buy the battery and wire it up.
There must be some electronics manufacturer that sells a 1A UPS on a board for cheap. In China or something. Then I just connect u 1 or 2 rechargeable 9v batteries.
I have seen the circuit online but I havn't got time to make it myself, especially in this day n age when you can get stuff from china for so cheap.