Auotmatic Street Lights Control Using LDR and Arduino

Automating street lights with LDRs and Arduino offers a sustainable solution for urban lighting. By intelligently adjusting lighting based on ambient light levels, this project reduces energy waste and operational expenses. It enhances safety and visibility while promoting environmental sustainability. Harnessing the power of Arduino technology, this system represents a cost-effective and eco-friendly approach to modernizing urban infrastructure.

Controlling street lights automatically using an LDR (Light Dependent Resistor) and Arduino is a great project for conserving energy and optimizing street lighting. Here’s a basic overview of how you can implement it:

Required Component

Sr. NoComponent/ MaterialQuantity
1LDR Sensor Module1
2Arduino Uno1
3LAMP (Bulb)1
4Male-Female Jumper Wire5-6
5Arduino Programming Cable1
6Two Pin Plug1
7Wire 
8Bulb Holder 

Circuit Diagram

Connections

Arduino UnoLDR Sensor
+5VVCC
GNDGND
A0AO
Arduino UnoRelay
13IN
+5VVCC
GNDGND
RelayBulb
CommonAC Source (Phase)
NOOne terminal of Bulb

Steps

  1. Connect the +5V pin of the Arduino Uno to the VCC pin of the LDR Module.
  2. Connect the GND (ground) pin of the Arduino Uno to the GND pin of the LDR Module.
  3. Connect the AO (Analog output) or OUT pin of the LDR Module to the Analog A0 pin of the Arduino Uno.
  4. Connect the +5V pin of the Arduino Uno to the VCC pin of the Relay Module.
  5. Connect the GND (ground) pin of the Arduino Uno to the GND pin of the Relay Module.
  6. Connect the IN pin of the Relay Module to Digital Pin 13 of the Arduino Uno.
  7. Connect the NO (normally open) terminal of the Relay Module to one terminal of the Bulb. Connect Another terminal of Bulb to Neutral terminal of Ac power supply.
  8. Connect the Common (COM) terminal of the Relay Module to AC Power Supply (Phase Terminal).
  9. Launch the Arduino IDE on your computer.
  10. Write a program on sketch. And verify it.
  11. Connect the Arduino Uno to your computer using a USB cable.
  12. Select Board (Tools>> Board>> Arduino Uno) and Port (Tools>> Ports>> Com. (Arduino Uno)). And upload program in Arduino Uno Board.

Program

#define ldrPin A0   // LDR Module connected to Analog A0 pin
#define relayPin 13  // Relay Module connected to Digital Pin 13
void setup() {
  pinMode(ldrPin, INPUT);
  pinMode(relayPin, OUTPUT);
}
void loop() {
  int ldrValue = analogRead(ldrPin);  // Read LDR value (0-1023)
  if (ldrValue > 500) {
    digitalWrite(relayPin, HIGH);  
  } else {
    digitalWrite(relayPin, LOW);   
  }
}

In conclusion, the integration of LDRs and Arduino in street light control exemplifies a forward-thinking approach to urban development. By prioritizing energy efficiency and sustainability, this innovative solution not only enhances safety and visibility on the streets but also contributes to a greener, more resilient environment. As cities continue to evolve, embracing smart technologies like this will be key to creating vibrant, eco-friendly urban spaces that benefit both present and future generations. Let’s illuminate the path to a brighter, more sustainable future, one street light at a time.