This circuit is a simple form of the commercial UPS, the circuit provides a constant regulated 5 Volt output and an unregulated 12 Volt supply. In the event of electrical supply line failure the battery takes over, with no spikes on the regulated supply. Circuit Diagram: Notes: This circuit can be adapted for other regulated and unregulated voltages by using different regulators and batteries. For a 15 Volt regulated supply use two 12 Volt batteries in series and a 7815 regulator. There is a lot of flexibility in this circuit. Circuit Diagram: TR1 has a primary matched to the local electrical supply which is 240 Volts in the UK. The secondary winding should be rated at least 12 Volts at 2 amp, but can be higher, for example 15 Volts. FS1 is a slow blow type and protects against short circuits on the output, or indeed a faulty cell in a rechargeable battery. LED 1 will light ONLY when the electricity supply is present, with a power failure the LED will go out and output voltage is maint...