In this project we developed user programmable automatic night light using Microchip's 8bit MCU – PIC12F675. In this design user may be able to program and store the time duration of the master light. Compared with other designs this circuit use transformerless power supply, and TRIAC to control the master light.
Complete MCU software source code, operating guides and circuit diagram of this project is available to download at here.
To get more information about transformerless power supply please refer the Microchip application note AN954, and ST application note AN438 for MCU and TRIAC interfacing.