Light Activated Day Night Switch Circuit

Not rated 18,523

Circuit Image

This circuit diagram illustrates a light-activated switch utilizing the National Semiconductor comparator IC LM311 and a light-dependent resistor (LDR). The configuration is based on a voltage comparator circuit centered around IC1. The non-inverting input of IC1 receives a reference voltage of 6V through resistors R3 and R4. The inverting input is connected to the voltage across the LDR, which varies with light exposure. In darkness, the resistance of the LDR is high, resulting in a high voltage across it. Consequently, the voltage at the inverting input exceeds the reference voltage at the non-inverting input, causing the output of the comparator to be low (approximately 0V). Conversely, when the LDR is illuminated, its resistance decreases, lowering the voltage across it. This results in the voltage at the inverting input falling below that at the non-inverting input, leading to a high output from the comparator (approximately 12V). This output activates transistor Q1, which drives the relay, enabling relay switching based on the light intensity incident on the LDR. Potentiometer R1 can be adjusted to set the desired light intensity for relay activation. To calibrate, illuminate the LDR with the target light intensity, and the relay will either engage or disengage. Adjusting POT R1 gradually will facilitate the relay state transition, effectively configuring the circuit for the specified light intensity.

The circuit operates based on the principle of light intensity detection using an LDR, which changes its resistance depending on the amount of light it receives. The LM311 comparator plays a critical role in comparing the reference voltage with the voltage derived from the LDR. The reference voltage is established through a voltage divider formed by resistors R3 and R4, ensuring that the non-inverting input maintains a steady 6V under varying conditions.

When the ambient light level is low, the high resistance of the LDR results in a voltage drop that keeps the inverting input above the reference voltage. The output of the LM311 remains low, signaling that the relay should remain off. In contrast, as the light intensity increases, the resistance of the LDR decreases, leading to a drop in voltage at the inverting input. Once this voltage falls below the 6V reference, the comparator's output transitions to a high state, providing sufficient voltage to turn on transistor Q1.

Transistor Q1 acts as a switch that controls the relay. When activated, the relay can be used to control various loads, such as lights or alarms, providing a practical application for the circuit in automatic lighting systems or security devices. The inclusion of the adjustable potentiometer R1 allows for fine-tuning of the sensitivity of the circuit, enabling users to set the threshold at which the relay activates based on ambient light conditions. This feature enhances the versatility of the circuit in different environments and applications.This is the circuit diagram of a light activated switch based on National Semiconductors comparator IC LM 311 and a LDR. The circuit is based on a voltage comparator circuit wired around IC 1. The non inverting in put of IC1 is given with a reference voltage of 6V using resistors R3 and R4. The input to the inverting input will be the voltage acros s the LDR that is light dependent. At darkness the resistance of the LDR will be high and so do the voltage across it. At this condition the voltage at the inverting input will be higher than the reference at non inverting pin and the out put of the comparator will be low(~o V). When the LDR is illuminated, its resistance drops and so do the voltage across it. Now the voltage at inverting input will be lower than that at non inverting input and the out put of the comparator goes high (~12 V).

This makes transistor Q1 on and it drives the relay. As a result we get a relay switching according to the intensity of the light falling on the LDR. Adjust POT R1 to set the desired light intensity for switching the relay. For this illuminate the LDR with the desire intensity light. The relay will be either on or off. Adjust POT R1 slowly so that the state of the relay changes. That`s it. Now the circuit is set for the given intensity of light. 🔗 External reference