Simple Little Nightlight Circuit Diagram

Here we describe a very simple, economical and light-weight automatic nightlight that runs on 230V AC mains and can be used as a deluxe gizmo in the sleeping room of your kids. The arrangement proposed by the author is shown in Fig. 1. Circuit diagram for the nightlight is shown in Fig. 2. It is built around three resistors (R1 through R3), two light-emitting diodes (LED1 and LED2), a light-dependent resistor (LDR1), a BC548 transistor (T1) and a capacitor (C1). Here LED1 is blue and LED2 is RGB with rainbow effect. Little Nightlight Circuit Diagram The circuit operates off 230V AC, consuming very little current. The generic 5mm LDR drives the rainbow LED (LED2) through npn transistor T1. Series resistor R3 (150-ohm) limits the current through LED2. The sensor circuit ensures that the rainbow light switches on when it gets dark and off when there is ambient light. If desired, you can change its detection threshold by varying the value of 47-kilo-ohm resistor R2. Resistor R1 (100...