Street Lights Automation | How to Use LDR With Arduino



At some point in our lives, we have wondered how the Street Lights work? Is there a person controlling these lights? Is it timed according to the duration of the day?

All of this happens with the help of an LDR (Light Dependent Resistor). In this article, we will be making a project to automate street lights with LDR. So read the article till the end.  

Required Components:

To make the project you need the following components:

1.      Arduino Circuit Board

2.      LDR (Light Dependent Resistor)

3.      5 LEDs

4.      5 220Ω Resistors

5.      1 10k Ω Resistor

6.      Breadboard

7.      Jumper Wires

Circuit Diagram:

Follow this circuit diagram to patch the circuit.

1.      Digital Pin 4 Positive End of LEDs

2.      Ground → Negative End of LEDs

3.      Arduino 3.3V Terminal → One End of LDR

4.      Arduino A0 Pin → Other End of LDR, that has connected to 10k Ω Resistor

5.      Ground → Other Terminal of 10k Ω Resistor

Project Code:

Hardware Setup:

Watch this complete video to get a better understanding of circuit patching and code.



We hope you enjoyed this article. Share it with your friends, and peers. Subscribe to our newsletter to get an email notification every time we upload an article.

We value your constructive feedback, in case you have any queries or suggestions, email us at or join us on Social Media. Happy Learning!


Popular Posts

How To Make Line Follower Using Three IR Sensor | Arduino Line Following Car

How to Make Traffic Lights Using Arduino Uno | Make Traffic Control System