Smart Street Light Project Using Arduino UNO
Smart Street Light Project Using Arduino UNO
All ideas and plans get executed at home or the workplace in the beginning. It's time to learn how to develop or
design a smart system and control the devices. So, let's begin with the hardware requirement.
Hardware Requirements
1.Arduino UNO Board.
Develop a stronger concept in Arduino through this article:- What is Arduino?
Arduino UNO
#Arduino board is a microcontroller that is used to accept
inputs from sensors connected and provide an output
action on the desired device connected to it. The sensor
inputs can be from light-detecting sensors, motion sensors
(Ultrasonic or IR), temperature sensors, etc. The output
from this device can be received through other output
devices such as LED, Buzzer, Serial monitor, etc.
2. Resistors
Resistors are passive devices that restrict the flow of current or divide the
voltage through the circuit. The input power passes through these
resistors and then to the sensors to avoid damage.
Buy Resistors from here.
3. Jumper Wires
Jumper Wires
1|Page
These are the main components that are used to establish the connections between different devices of the
circuit.
LDR
LDR is a #photoresistor that works on the principle of
#photoconductivity. The surface of the LDR is made with a layer of
semiconducting material that is responsible for measuring the light
intensity. The principle states that when light falls on the surface of
the semiconducting material, the electrons receive energy, and
movement is caused inside the material.
When those electrons reach the valence band, electron-hole pairs are
formed. This in turn reduces the resistance of the material and the
corresponding voltage is given as the output of the device.
Buy LDR from here.
5. Bulb
Bulb
Electric bulbs, otherwise called incandescent bulbs are electrical components that emit
light when a certain amount of power is given to them. Usually, bulbs are manufactured
in a wide range of sizes based on the input power capacity. Ex. 1.5V, 13 Watts, etc.
6. Power supply
Power supply
DC Power supply is used for electricals components like the electrical bulb.
Alternatively, Power supply modules can be used to connect electrical
components. In this circuit, we will be using the DC power supply
component in the simulation software.
7. NPN Transistor
NPN Transistor
It is a low-power amplifying #transistor. A common NPN Bipolar
Junction transistor (#BJT). This transistor is usually used for Switching
purposes as we have used in our circuit. When no current flows through
the base, a very small amount of current flows through the emitter and
2|Page
collector. this means the base current allows the transistor to switch off. This is the switching function of the
transistor.
NOTE: The description of the electrical components is given for reference. We don't need the physical
components for this project. The circuit simulation is done in the TinkerCad software.
Software Requirements
TinkerCad circuit simulation software.
TinkerCad Logo
It is an online simulation software used for circuit design. It has all the electrical components required to built
circuits and runs them.
Circuit Connections
3|Page
Circuit Diagram
The circuit connections are as follows.
Terminal one of the #LDR is connected to the 5V supply pin of the Arduino board. the second terminal of the
LDR is connected to the analog pin of the LDR (A5) which is the input. The same terminal is also connected to
the Ground terminal of Arduino through the resistor.
The positive terminal of the power supply is connected to one of the terminals of the Bulb. The negative
terminal of the power supply is connected to the ground terminal of the Arduino Board. The second terminal of
the bulb is connected to the #Emitter pin of the Transistor.
The #collector terminal of the #Transistor is then connected to the ground terminal of the power supply device.
Finally, the base terminal of the transistor is connected to any of the Digital pins (D3) of the Arduino Board
through the resistor.
working
LDR is the photoresistor, a sensor that has semiconducting material on its surface. When light strikes on the
4|Page
surface of the LDR, the electrons present in the valence bond of the material are excited to the conduction band.
This in turn will generate a voltage that will be given as output based on the input light #intensity.
When the LDR gives output to the analog pin A5 of Arduino, the value is stored by the board itself. (It has a
Flash memory). The transistor acts as a switch in this circuit. It will control the Light bulb based on the sensor
output value. The #collector is connected to the Ground.
The base terminal of the Transistor is connected to the digital pin of Arduino through which the bulb will be
controlled. That means, whenever there is a change done to the pin 3, there is a change in the status of the bulb
as the emitter of the transistor goes further to connect to the second terminal of the light bulb.
Hence to summarise the working, the LDR sensor receives input based on the input light intensity. Those
#voltage values are displayed on the power supply device panel. The transistor acts as a switch that is connected
to the Arduino board through which it will control the bulb.
Watch the below-given project video for the practical explanation of designing the circuit and to know how the
simulation #software works.
One of the brilliant project You would like to read about is automatic
street light project
In today's rapidly advancing world, smart technology has the power to transform our daily lives and contribute
to a more sustainable future. One such innovative application is the automatic street light project, which utilizes
the LDR (Light-Dependent Resistor) sensor and Arduino microcontroller to create an intelligent lighting
system. This project aims to enhance energy efficiency, reduce carbon emissions, and provide safer and well-lit
streets for pedestrians and motorists alike. In this article, we will explore the concept of this project and delve
into its working, components, and benefits.
Understanding LDR Sensor and Arduino:
The core components of the automatic street light project are the LDR sensor and Arduino microcontroller. The
LDR sensor, also known as a photoresistor, reacts to changes in light intensity. When exposed to light, the
resistance of the LDR decreases, and conversely, it increases in the absence of light. This property makes it an
ideal candidate for detecting ambient light levels.
On the other hand, Arduino, a versatile and popular microcontroller, acts as the brain of the system. It is capable
of processing inputs from various sensors, such as the LDR, and accordingly, it can trigger specific actions
through its output pins. By utilizing these features, we can develop an automated street lighting system that
turns on and off based on the surrounding light conditions.
Working Principle:
The working principle of the automatic street light project revolves around the LDR's ability to sense light
intensity and the Arduino's decision-making capabilities. During the day, when natural light is sufficient, the
5|Page
LDR sensor detects the high light intensity and, as a result, exhibits low resistance. This information is
conveyed to the Arduino board, which interprets it and ensures that the street lights remain turned off,
conserving energy.
As the evening approaches and the natural light diminishes, the LDR sensor detects the drop in light intensity,
causing an increase in resistance. This change is communicated to the Arduino, prompting it to take action. The
Arduino activates the street lights by energizing the relay or switching on a solid-state relay (SSR) connected to
the power supply.
Components Used:
1. LDR Sensor: To detect ambient light levels and produce corresponding resistance changes.
2. Arduino Board: To process LDR sensor data and control the street lights.
3. Solid-State Relay (SSR) or Mechanical Relay: To control the power supply to the street lights.
4. Power Supply: To provide the necessary electrical power for the street lights.
5. LED Street Lights: High-efficiency and low-energy consumption lighting solution.
Benefits of the Automatic Street Light Project:
Energy Efficiency: The automated system ensures street lights are only activated when required,
leading to substantial energy savings.
Reduced Carbon Footprint: By optimizing lighting based on ambient conditions, the project
contributes to reduced carbon emissions and a greener environment.
Cost Savings: Lower energy consumption translates to reduced electricity bills and cost savings
for municipalities and local authorities.
Safety and Security: Well-lit streets enhance pedestrian and vehicular safety, reducing the risk
of accidents and promoting a safer community.
Maintenance Convenience: Automated lighting reduces the need for manual switching, easing
maintenance efforts.
Automatic street light project explanation :
The automatic street light project is an innovative and eco-friendly initiative aimed at revolutionizing urban
lighting systems. This cutting-edge project utilizes advanced technology, including Light-Dependent Resistors
(LDRs) or photocells, and microcontrollers to create an intelligent and energy-efficient solution. The system's
primary goal is to automatically control the activation and deactivation of street lights based on the surrounding
ambient light conditions. During the day, when natural light is sufficient, the LDRs detect the high light
intensity, triggering the microcontroller to keep the street lights off, conserving energy. As dusk descends and
the natural light diminishes, the LDRs sense the decrease in light intensity, prompting the microcontroller to
activate the street lights, ensuring well-lit and safe thoroughfares for pedestrians and motorists. This automatic
street light project showcases the power of technology in enhancing sustainability, reducing energy
consumption, and providing enhanced safety and security in our urban environments.
Conclusion:
The automatic street light project, employing an LDR sensor and Arduino, demonstrates the power of smart
technology in creating sustainable and efficient urban lighting solutions. By harnessing the potential of
renewable resources and employing intelligent automation, this project showcases how small steps can lead to
significant positive impacts on energy consumption and environmental preservation. As we move towards a
brighter future, embracing such innovative projects is key to building smart cities that prioritize sustainability
and improve the quality of life for all.
6|Page
Implementing Light Sensing Algorithm with LDR Sensor and Arduino:
To enhance the functionality of our smart lighting project, we focus on the integration of the LDR sensor
Arduino. The LDR sensor, also known as the Light-Dependent Resistor, exhibits a change in resistance based
on the amount of incident light. By interfacing the LDR sensor with Arduino, we can implement a sophisticated
light sensing algorithm that dynamically adjusts the lighting based on changing environmental conditions.
Using the analogRead() function in Arduino, we continuously monitor the LDR sensor's analog readings, which
directly correspond to the light intensity. Analyzing these readings allows us to create a responsive lighting
system that adapts to different lighting scenarios. For example, during the transition from day to night, the
algorithm can gradually adjust the brightness of the connected LED or light bulb, providing a smooth and
natural change in illumination levels.
A dedicated mobile application allows users to adjust light intensity, turn the lights on/off, or even schedule
lighting patterns based on their preferences. This connectivity also opens up possibilities for smart city
applications, as data from the LDR sensor and other sensors can be sent to a cloud server for further analysis
and monitoring.
Incorporating a real-time clock (RTC) module allows us to program the Arduino to turn on the lights only
during specific time frames, such as dusk to dawn. This feature ensures that the smart lighting system operates
precisely when needed, further optimizing energy usage and promoting sustainability.
Through this advanced approach, our smart lighting system can learn from historical data to anticipate peak
7|Page
activity times and automatically adjust lighting accordingly. This optimized approach not only saves energy but
also ensures a comfortable and safe environment for users.
Conclusion:
By integrating a light sensing algorithm, adding Bluetooth or Wi-Fi connectivity, incorporating hysteresis for
stability, maximizing energy efficiency with motion sensors and real-time clocks, and exploring machine
learning and AI, we can elevate our smart lighting project that combines LDR sensor Arduino to new heights.
Embracing these advanced technologies and techniques allows us to create a truly intelligent and energy-
efficient smart lighting solution. As we continue to innovate and explore new ideas, the future of smart cities
will benefit from these advancements, leading to a sustainable and interconnected urban environment for
generations to come.
8|Page