Automatic Street Light Controller Circuit Using LDR and Relay


BySaddam 9

Automatic Street Light Circuit Using Relay and LDR

You have seen street light which automatically gets turned on in the night and gets turned off in the morning or day time, there are sensors who senses the light and control the light accordingly. These Street lights are an important project in smart cities.


So here in this project, we are going to make a Simple Automatic Street Light Circuit using LDR and Relay, which will turn on and off the light bulb based on the lights in surroundings. This circuit is quite simple and can be built with Transistors and LDR, you don’t need any op-amp or 555 IC to trigger the AC load. Here we have used an AC bulb as street light. Some applications of this circuit are street light controlling, home/office light controlling, day and night indicators, etc.


Components Required:

  1. Transistor BC547 -2
  2. LDR (Light Dependent Resistor)
  3. Relay
  4. Resistor 1k
  5. 100k Potentiometer
  6. Power Supply 12v -1
  7. Connecting wires
  8. Jumper wires
  9. Screw terminal Block 2 pin or 3 pin
  10. Bread Board or Perf Board
  11. 1n4007 Diode
  12. AC supply
  13. AC Load or Bulb


What is LDR?

LDRs are made from semiconductor materials to enable them to have their light sensitive properties. There are many types but one material is popular and it is cadmium sulphide (CdS). These LDRs or PHOTO REISTORS works on the principle of “Photo Conductivity”. Now what this principle says is, whenever light falls on the surface of the LDR (in this case) the conductance of the element increases or in other words the resistance of the LDR falls when the light falls on the surface of the LDR. This property of the decrease in resistance for the LDR is achieved because it is a property of semiconductor material used on the surface.


LDR (Light Dependent Resistor)


Previously we have built many useful circuits using the LDR, you can find few of the popular LDR circuit projects below.


Circuit Diagram and Explanation:

Below is the circuit diagram of this Light sensing Street Light project.

Automatic Street Light circuit diagram

In this project, we have used an LDR (Light Dependent Resistor) which is responsible for detecting light and darkness. The resistance of LDR increases in darkness and reduces in presence of light. This circuit is same as a Dark Detector or Light Detector Circuit, only here we have replaced simple LED with a AC load, using a Relay. Two BC547 NPN transistors are used to drive the relay.

Automatic Street Light circuit using LDR and relay

Automatic Street Light circuit on perfboard backside

Whenever light falls over LDR its resistance get decreased and transistor Q1 turns ON and collector of this transistor goes LOW, and this makes the second transistor turns OFF due to getting a LOW signal at its base, so relay also remain turned OFF due to second transistor.

Now whenever LDR senses Darkness, mean no light, then transistor Q1 turned ON due to increase in the resistance of LDR which is responsible for voltage drop at the base of Q1. Due to a LOW signal at the Q1 base, Q2 transistor gets a HIGH signal from the collector of Q1 and turns ON the relay. Relay turned ON the AC load that is connected to relay. A 10K pot is also used for setting up the sensitivity of the circuit.


So this is how automatic Street Lights turns on in the night and turn off in the day, check the Demonstration Video below.


Get Our Weekly Newsletter!

Subscribe below to receive most popular news, articles and DIY projects from Circuit Digest


  • Pius 's picture
    Sep 20, 2017

    Can I use 2n2222 transistor instead of bc547

  • laarnie jane viernes's picture
    laarnie jane viernes
    Nov 08, 2017

    Sir, can I copy this in my project please?? ineed ur code ....please help me..

  • Laarnie Jane Viernes's picture
    Laarnie Jane Viernes
    Nov 09, 2017

    Can u pls show me the code?

  • AISHA's picture
    Nov 14, 2017

    This project does not have any code. You can use the circuit diagram above and make the connections and it will start working straight away 

  • USMAN MUKHTAR's picture
    Apr 09, 2021

    Please, AISHA.
    I'm a student of electrical engineering in Kano University of science and technology, wudil. In Nigeria. If you can please help me send me the full write-up of this project "automatic street light control system module using ac source"
    Thank you here is my email address:

  • SA RAHAMAN's picture
    Dec 29, 2017

    it goes light on while making power on.

  • Swami nilesh baswaraj's picture
    Swami nilesh ba...
    Feb 03, 2018

    Can I use their LM358 or comperator.if I can do that then how is it works?

  • Shagun shakya's picture
    Shagun shakya
    Jun 16, 2018

    Automatic street light

  • Rhison Sapam's picture
    Rhison Sapam
    Aug 05, 2018

    Please tell me the details about the relay we use in this circuit.

Log in or register to post Comment