• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Circuit Ideas for You

Get free circuit ideas online.

  • Home
  • Privacy Policy
  • About
Home » Automatic Street Light Circuit using Arduino

Automatic Street Light Circuit using Arduino

Last updated on 29 June 2026 by Admin-Lavi Leave a Comment

This project for Automatic Street Light Circuit using Arduino show street light can think smart.

Light will turn ON when night come and light will turn OFF when sun come; therefore no need of a human to press a switch.

Arduino and LDR do all work automatic and it also save power and make street more smart; simple idea but very useful for city and village both.

Arduino Code:

int sensorPin = A0;
int ledPin = 13;
int sensorValue = 0;

void setup() {
pinMode(ledPin, OUTPUT);
Serial.begin(9600);
}

void loop() {
sensorValue = analogRead(sensorPin);
Serial.println(sensorValue);
if(sensorValue < 500) {
digitalWrite(ledPin, HIGH);
} else {
digitalWrite(ledPin, LOW);
}
delay(100);
}

Coding Explanation:

  • A0 pin reads value from LDR sensor.
  • If value is less than 500 means dark and LED turns ON.
  • If value is more than 500 means light and LED turns OFF.
  • Serial monitor shows light level in number.
  • Delay gives small pause between readings.

Circuit Working:

Automatic Street Light Circuit Diagram using Arduino

Parts List:

ComponentsQuantity
Resistors 10k and 330Ω1 each
LDR1
Arduino UNO1
LED any color1

In the above circuit diagram, LDR changes its resistance with light.

In bright light resistance is low and gives high voltage to Arduino and in dark the resistance is high and voltage becomes low.

Then Arduino reads this change and controls LED and LED now has one extra resistor 330Ω and this resistor just controls LED brightness and saves it from damage.

Lastly, when it is night the light glows and when it is day the light goes OFF automatically.

Formula with Calculation:

LDR and resistor make a voltage divider.

Vout = (R2 / (R1 + R2)) × Vin

here,

  • R1 is LDR
  • R2 is 10k resistor.

This formula gives voltage at A0 pin and for LED we can calculate resistor value using:

R = (Vsource – Vled) / Iled

here,

  • Vsource is 5V
  • Vled is 2V for red LED
  • Iled is 10mA is 0.01A

R = (5 – 2) / 0.01 = 300Ω

So nearest standard resistor used in this circuit is 330Ω.

How to Build:

To build a Automatic Street Light Circuit using Arduino follow the below steps:

  • First, gather all the parts as shown in circuit diagram.
  • Then LDR one end connect to 5V of Arduino and other end of LDR connect to A0 pin and one side of 10k resistor.
  • Also, other side of 10k resistor goes to GND.
  • After that, LED positive leg connect to pin 13 through 330Ω resistor and LED negative leg goes to GND.
  • Finally, Arduino powered by USB or adapter.

Conclusion:

To conclude, Automatic Street Light Circuit using Arduino saves power, as it works without human help.

Also, it is useful for highways, gardens and streets and then Arduino makes control simple and automatic; furthermore, system works day and night based on light sensor.

Filed Under: Arduino Projects, Automation Circuits, LDR Circuits, LED and Lamps, Mini Projects, Sensors and Detectors

About Admin-Lavi

Lavi is a B.Tech electronics engineer with a passion for designing new electronic circuits. Do you have questions regarding the circuit diagrams presented on this blog? Feel free to comment and solve your queries with quick replies

Previous Post: « Smart Street Light Control Circuit
Next Post: IR Transmitter and Receiver Circuit using 555 and 4017 IC »

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar




Categories

  • 555 Timer Projects (137)
  • Alarm Circuits (81)
  • Amplifier Circuits (94)
  • Arduino Projects (103)
  • Audio Circuits (190)
  • Automation Circuits (150)
  • Automobile Circuits (40)
  • Battery Charger Circuits (89)
  • DIY Projects (437)
  • Free Energy (12)
  • Heater and Temperature Controllers (32)
  • High Voltage (24)
  • Hobby Circuits (244)
  • Indicator Circuits (63)
  • Inverter Circuits (17)
  • IoT projects (12)
  • LDR Circuits (47)
  • LED and Lamps (201)
  • Meters and Testers (44)
  • Mini Projects (392)
  • Motor Controllers (26)
  • Oscillator Circuits (70)
  • Power Supply Circuits (245)
  • Radio Frequency (8)
  • Remote Control Circuits (12)
  • Renewable energy (20)
  • Security and Protection (128)
  • Sensors and Detectors (236)
  • Solar Circuits (31)
  • Timer Circuits (63)
  • Transistor Circuits (178)
  • Transmitter Circuit (19)
  • Tutorials (33)
  • Voltage Regulator (67)
  • Water Level Controller (10)

Recent Posts

  • Low Current Controlled Battery Charger Circuit using LM723 IC
  • 741 Op-Amp Treble Booster Circuit
  • Simple Diode and Transistor Based Audio Limiter Circuit
  • Simple 500mW Speaker Driver Circuit
  • Easy DIY LM386 Audio Amplifier Circuit

Recent Comments

  1. Admin-Lavi on High Voltage Fence Charger Circuit
  2. etere on High Voltage Fence Charger Circuit
  3. Admin-Lavi on High Voltage Fence Charger Circuit
  4. egidio grzinic on High Voltage Fence Charger Circuit
  5. Logic OR Gate Circuit using Transistors - Circuit Ideas for You on Automatic Street Light Circuit using LDR

Copyright © 2026 | New Circuit Ideas