Dark and Light Indicator Circuit

Published  September 1, 2015   10
S Saddam
Dark and Light Indicator Circuit using IC LM358

In this project, we are going to make a day and night indicator (or dark and light indicator) which will indicate if there is a dark or light in the surroundings. Some applications of this circuit, are street light controlling, home/office light controlling, day and night indicators, etc.


Components Required

  1. IC LM358 -1
  2. 150 Ohm Resistor -2
  3. 10 K POT -2
  4. LDR -1
  5. Bread board -1
  6. 9 Volt Battery                                   
  7. Battery Connector -1
  8. LED -2


IC LM358

LM358 is a Dual Low Noise Operational Amplifier which have two Op Amp in a single chip. This is a general purpose op amp which can be configured in many modes like comparator, summer, integrator, amplifier, differentiator, inverting mode, non- inverting mode and many more.


Circuit Diagram and Working Explanation

Day Night Indicator Circuit Diagram

In this circuit we have used two LM358 Dual Comparator ICs for comparing voltages coming from variable resistor and LDR. Comparator U1:B is configured as non-inverting mode and 10 K potentiometer is connected at its inverting terminal and Comparator U2:A is configured as inverting mode and same potentiometer is connected at its non-inverting terminal. An LDR is used for detecting light or darkness with respect to ground through a 10K variable resistor. And the midpoint of LDR and resistor is directly connected to inverting terminal of U1:A and non-inverting terminal of U1: B comparator. A red led is connected at output pin of comparator U1: B for indicating Night and a yellow LED is connected at output pin of comparator for indicating Day. And a 9 volt battery is used for powering the circuit. Rest of connections are shown in the above dark and light indicator circuit diagram.


In this circuit we have set reference voltages for both comparators by using potentiometer we can say this sensitivity of the circuit. Both comparators are configured in opposite mode. Means at a time only single LED will glowing. In non-inverting mode when we apply positive voltage greater then reference voltage to its non-inverting pin it gives a positive output else 0 volt. And in inverting mode when we apply same voltage at its inverting pin it will give a 0 volts at its output pin else gives positive voltage. Means both configurations give opposite output.

Dark and Light Indicator Block Diagram

Main component of this dark circuit is LDR which detect day and light. LDR is a light dependent resistor which changes his resistance according to the light. When light falls on the LDR surface, it reduces its resistance and when dark resistance of LDR become Maximum. During the daytime there are enough light so when this light falls on LDR it reduces its resistance and due to this a potential difference generated at comparators respected pin.  Now both comparators compare this input voltage with reference voltage, if this input voltage is greater than reference voltage then day LED will glow otherwise night LED will Glow.

Have any question realated to this Article?

Ask Our Community Members


Submitted by Zubair Khalid on Fri, 02/05/2016 - 02:07


I have constructed the circuit according to diagram but it is working in reverse process. On light fall Nigth indicator LED glows while on light off day indicator LED glows

Submitted by Kay on Thu, 03/16/2017 - 23:16


Hello sir,
I must firstly appreciate this post. I wanna ask if its possible to use a 12Volts DC supply to this circuit. If yes, do I need to change any components? Thank you.

Submitted by Justin on Sat, 04/22/2017 - 20:21


What exact LDR are you using? I have constructed the circuit and it's not working..