CIRCUIT DIAGRAM
CODE
Components Used :
Arduino UNO
LDR (Light Dependent Resistor)
10kΩ Resistor (for voltage divider)
Bulb(as street light)
220Ω Resistor (for LED current limiting)
Breadboard
This project demonstrates how to automatically control a street light using an LDR (Light Dependent Resistor) and an Arduino UNO. The system simulates a smart lighting solution where the street light (represented by an LED) turns ON in the dark and OFF in the presence of light. The entire system is built and simulated using Tinkercad, an online circuit design and simulation tool.
Working Principle:
The LDR senses the amount of ambient light.
It forms a voltage divider circuit with a 10kΩ resistor, providing a variable voltage based on light intensity.
The Arduino reads this voltage as an analog signal (0 to 1023) on pin A0.
When the analog value drops below a set threshold (indicating darkness), the Arduino switches ON the LED (street light).
When the light level increases (above the threshold), the LED turns OFF.