Site icon Circuit Ideas for You

Automatic Street Light Circuit using Arduino

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

Light will turn ON when night come.

Light will turn OFF when sun come.

No need of a human to press switch.

Arduino and LDR do all work automatic.

It save power and make street more smart.

Simple idea but very useful for city and village both.

Arduino Coding:

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:

Circuit Working:

Parts List:

Component NameQuantity
Resistors 10k and 330Ω1 each
LDR 1
Arduino UNO1
LED any color 1

In the above circuit diagram.

LDR changes its resistance with light.

In bright light resistance is low and gives high voltage to Arduino.

In dark the resistance is high and voltage becomes low.

Arduino reads this change and controls LED.

LED now has one extra resistor 330Ω.

This resistor just controls LED brightness and saves it from damage.

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,

This formula gives voltage at A0 pin.

For LED we can calculate resistor value using:

R = (Vsource – Vled) / Iled

here,

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:

Conclusion:

Automatic Street Light Circuit using Arduino saves power.

It works without human help.

Its useful for highways, gardens and streets.

Arduino makes control simple and automatic.

System works day and night based on light sensor.

References:

AUTOMATIC STREET LIGHT CONTROLLING ARDUINO SYSTEM USING LDR

Exit mobile version