This circuit automatically turns on a night lamp when bedroom light is switched off. The lamp remains ‘on’ until the light sensor senses daylight in the morning. A super-bright white LED is used as the night lamp. It gives bright and cool light in the room. When the sensor detects the daylight in the morning, a melodious morning alarm sounds.
The circuit is powered from a standard 0-9V transformer. Diodes D1 through D4 rectify the AC voltage and the resulting DC voltage is smoothed by C1. Regulator IC 7806 gives regulated 6V DC to the circuit. A battery backup is provided to power the circuit when mains fails.
When mains supply is available, the 9V rechargeable battery charges via diode D5 and resistor R1 with a reasonably constant current. In the event of mains failure, the battery automatically takes up the load without any delay. Diode D5 prevents the battery from discharging backwards following the mains failure and diode D6 provides current path from the battery.