My purpose for the circuit is to detect when the electricity is coming from mains and when from power backup. The circuit will be switched on, on mains power and by default led will glow green and when electricity goes off, and then comes back on power backup, the circuit will restart but this time led will glow in red colour.Either a bi colour led could be used or one green and one red. Please help me in making a appropriate circuit
Thanks
Thanks