Arduino Street Light Project:


 Smart Street Light System using Arduino

Street lights are very important for road safety as well as for saving energy. Street lights are normally turned on manually or by time switch, which results in unnecessary wastage of electricity as lights remain on during daylight. To eradicate this issue, we can make an automatic street light system based on Arduino and LDR (Light Dependent Resistor).

Introduction

The concept behind this project is straightforward: street lights should be automatically turned ON at night and OFF during the day without any manual intervention. This conserves energy and provides adequate light when required.

Components Used

1)Arduino Uno (or any Arduino board)
2) LDR (Light Dependent Resistor)
3) LEDs (for street lights)
4) 10kΩ Resistor
5) Breadboard & Jumper wires
6) Working Principle

The intensity of ambient light is detected by the LDR.

When it is light (day) → LDR's resistance is low → Arduino detects a higher voltage → street light (LED) stays OFF.

When it is night → LDR's resistance is high → Arduino detects a lower voltage → street light (LED) turns ON.

It replicates the actual working of an automatic street light system.

Circuit Diagram

  • Connect the LDR in series with a 10kΩ resistor to form a voltage divider.

  • One end of the LDR goes to 5V, the other end connects to A0 (analog input) and the resistor.

  • The other end of the resistor connects to GND.

  • LEDs are connected to Arduino digital pins via resistors.

Arduino Code

int LDR = A0;       // LDR connected to A0
int LED = 9;        // LED connected to pin 9
int value = 0;      // variable to store LDR value

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

void loop() {
  value = analogRead(LDR);   // Read LDR value
  Serial.println(value);     // Print value for testing
  
  if (value < 500) {         // Adjust threshold based on environment
    digitalWrite(LED, HIGH); // Turn ON LED
  } else {
    digitalWrite(LED, LOW);  // Turn OFF LED
  }
  
  delay(200);
}

Output

  • In a bright room (daytime) → LED remains OFF.

  • In a dark room (night) → LED automatically turns ON.

Applications

  • Smart street lighting in cities.

  • Garden and home automation lighting.

  • Energy-saving campus/stadium lighting.

Conclusion

This project is a simple yet effective example of how Arduino can be used to automate everyday tasks. By combining an LDR and Arduino, we can design a cost-effective and energy-efficient street light system that helps reduce wastage of electricity and ensures safety at night.

Setup 




Comments