In this circuit an electricity supply (domestic or industrial) is continually monitored. Should the supply be interrupted then an alarm will sound for the duration of the interruption. It has battery backup and overcharge protection.
T1 is a transformer that monitors the electric supply. It is rectified by a bridge rectifier and smoothed by C2 giving a 15 Volt DC supply. The 15V supply is the input to the LM317 regulator. The regulator output is set by R1 and R7 to
Should the supply fail, then C1 rapidly discharges, there is no more positive bias for Q2 base and the transistor goes into cut-off. Now Q3 saturates via R5 and the piezo sounder operates. There is no way to stop this alarm so a series switch can be added if desired to disable the sounder.
As long as power is applied battery B1 will continually charge. Should the voltage reach 14 Volts then Zener D2 will avalanche. This then activates Q1 and the input voltage at R7 wiper will be reduced and the charging supply for the battery will be cut off. Battery B1 will then continually monitor Q2, Q3 and the sounder.