0% found this document useful (0 votes)
16 views6 pages

Automatic Street Light Control System

This document describes an automatic street light project using an LDR that was developed by two students. The project uses an LDR to sense light levels and turn LED street lights on when it is dark and off when it is light to save energy. The circuit diagram and code for the microcontroller are provided, as well as applications and results of the project which demonstrate that it is an effective way to automatically control street lights and conserve power.

Uploaded by

Tayyaba Parveen
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views6 pages

Automatic Street Light Control System

This document describes an automatic street light project using an LDR that was developed by two students. The project uses an LDR to sense light levels and turn LED street lights on when it is dark and off when it is light to save energy. The circuit diagram and code for the microcontroller are provided, as well as applications and results of the project which demonstrate that it is an effective way to automatically control street lights and conserve power.

Uploaded by

Tayyaba Parveen
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

0|P age

Department of Electrical

EngineeringEE-252L

Introduction to Embedded Systems

Lab (Report) – Semester Project

“Automatic Street Light Using LDR”

1. Submitted by: Tayyaba Parveen(BSEE-2020-05)


Muhammad Umair Hassan(BSEE-2020-37)

2. Submitted to: Engr. Awais Yaqoob


Dr. Hamza Zad Gul

Namal Institute, Mianwali


1|P a ge

Contents
1. Introduction ..................................................................................................................................... 2
2. Objective ......................................................................................................................................... 2
3. Equipment Required: ...................................................................................................................... 2
4. Circuit Diagram .............................................................................................................................. 2
5. Project Working Explanation .......................................................................................................... 3
6. Code: ............................................................................................................................................... 4
7. Hardware Picture ............................................................................................................................ 4
8. Applications and Future scop .......................................................................................................... 4
9. Result .............................................................................................................................................. 5
2|P a ge
 Intro
1. Automatic control of streetlights is condescended to turn on and turn off streetlamps
consequently. This venture actually take a look at how much light. In dark it will turn
on and in light it will be turned off automatically rather than doing it manually.
2. LDR is a light dependent resistor, in light it’s resistance is low and in dark it’s
resistance is high.

 Objective
1. The fundamental point behind making this automatic streetlight using LDR is to
save the power. As the light turns ON and OFF as per the prerequisite it saves the
power and additionally diminishes our work.
2. This task of automatic street light using LDR is a savvy, reasonable, ecofriendly
and the most secure method for saving energy. It plainly handles the two issues
that world is confronting today, saving of energy and furthermore removal of
incandescent lights, proficiently.

 Equipment required:

Hardware:
1. Atmega328p
2. LDR
3. LEDs
4. Breadboard
5. Wires
6. Cutter(for wires)
Software:
1. Microchip Studio
2. Proteus

 Circuit Diagram:
 OFF Condition
3|P a ge

 ON Condition

 Project Working Explanation


1. First of all code is written on microchip studio and burnt on atmega328p.
2. Then microcontroller is put on breadboard and further connections are made.
3. PORTB is declared output and PORTC as input.
4. LDR is connected on PC0 and is grounded similarly another 10k ohm resistor
along is connected.
5. Three LEDs are connected on PB0, PB1 and PB2 with 220 ohms resistors and
grounded.
6. When LDR is in light it’s resistance will be low and most of the current from
power source will go towards it and LEDs won’t light up.
4|P a ge

7. When LDR is in dark it’s resistance will be high and most of the current from
power source will go towards LEDs and they will light up.
8. When light falls on LDR electrons from valence band jump to conduction band
and increase conductivity whereas:
conductivity 1/ resistivity

 Code:
 INCLUDE "[Link]"
 START:
 . LDI R16, 0xFF
 OUT DDRB, R16 ; DECLARE AS OUTPUT
 LDI R17, 0x00
 OUT DDRC, R17 ; DECLARE AS INPUT
 OUT PORTB, R16 ; ON ALL THE LEDs AT PORTB
 HERE:SBIC PINC, 0
 RJMP HERE
 OUT PORTB, R17 ; OFF ALL THE LEDs AT PORTB
 RJMP START
 Hardware Implementation:

 Applications and Future Scope:


1. Being Lethargic enough to turn on or switch off the streetlamp physically and
5|P a ge

neglect to turn it on or off every day. So this task can be effectively utilized to
save your power and consequently your cash.
2. In developing nations, load shedding issue can be settled to some degree by
saving however much you can. By utilizing automatic streetlamps, we can
save most extreme measure of energy which is helpful for your country and
furthermore gainful for people as well.
3. Some more applications are:
 Very flexible
 Easy to manufacture
4. It tends to be utilized to advance security in metropolitan regions and to
expand the personal satisfaction by misleadingly broadening the hours in
which it is light so movement can occur.
5. Automatic street lighting additionally further develops wellbeing for drivers,
riders, and people on foot.

 Results
1. The Streetlight controller utilizing ldr based Light force, in the todays up
developing nations will be more compelling if there should arise an
occurrence of cost, labor and security as contrast and the present running
convoluted and complex light controlling frameworks.
2. Automatic Street Light Controlling Framework sets up an extremely easy to
understand approach and could expand the power.
3. The project has been effectively constrained by microcontroller.
4. With orders from the microcontroller the lights will be ON in the spots of the
development when it's dull and vice versa depending on principle of LDR
making our lives easier.

Common questions

Powered by AI

Future improvements for the LDR-based streetlight system include enhancing sensor accuracy and range to accommodate varying urban lighting conditions such as adjoining artificial lights. Integration with IoT systems could facilitate remote diagnostics and data collection for predictive maintenance, optimizing energy use further by adjusting lighting based on real-time urban occupancy data . Additional features like dimming flexibility during low traffic periods, integration of solar power to minimize grid dependence, and expanded smart city applications through inter-communicative systems, could significantly enhance effectiveness and user engagement .

The automatic street light system contributes to energy efficiency by ensuring lights are only on during necessary periods, thus reducing wasted energy in well-lit conditions . This reduction in energy use not only saves electricity but also extends the life cycle of the lights, decreasing the environmental impact of maintenance and replacements. Furthermore, the system enhances safety by providing consistent lighting in dark areas, which improves visibility for drivers, riders, and pedestrians, thereby reducing accidents . It promotes security by discouraging criminal activities under well-lit streets, thus benefiting urban areas both economically and socially .

Implementing the LDR-based streetlight system in urban infrastructure faces multiple challenges. Calibration of the LDR sensors must be precise to ensure accurate light detection under varying environmental conditions such as fog or pollution, which may affect the LDR's performance. Connectivity issues might arise in large-scale implementations if not properly designed, requiring robust infrastructure to support communication between sensors and controllers. Maintenance becomes crucial as sensor failures could lead to areas being unintentionally left dark, compromising safety. Additionally, integration with existing systems requires careful planning to ensure compatibility without disrupting current operations .

The project's potential to reduce carbon footprint is significant, as it directly addresses energy efficiency by minimizing electricity consumption in street lighting—a major urban energy drain. By automatically adjusting lighting based on environmental conditions, it enables substantial energy savings, reducing reliance on fossil fuels for power generation, thereby lowering carbon emissions. In sustainable urban planning, such technologies are crucial as they contribute to greener cities by optimizing resource use, reducing operational costs, and promoting renewable energy integration, setting the foundation for future sustainable infrastructures .

The system exemplifies smart technology by automating energy management based on real-time environmental inputs, thus demonstrating self-regulation and optimization—a core feature of smart tech . Its core advantages include reducing human intervention in energy management, enhancing efficiency through precise control, and adapting to changing conditions without additional infrastructure modifications. Smart technology also facilitates integration with IoT (Internet of Things) systems, allowing for potential remote monitoring and maintenance, increasing system reliability and ease of management in modern tech environments .

Programming is central to the functionality of the automatic streetlight control system as it dictates the behavior of the microcontroller in response to the LDR's input. The specific code allows the Atmega328p microcontroller to interpret signals from the LDR, which varies its resistance with light intensity, and accordingly controls the LEDs. The code includes instructions to declare PORTB as output for LEDs and PORTC for input from the LDR. It uses a loop structure to continuously check the state of the LDR and switch the LEDs on or off, ensuring that the system responds dynamically to changing light conditions .

The project is eco-friendly as it minimizes unnecessary energy consumption by ensuring streetlights are only active during the absence of natural light. This targeted lighting reduces carbon emissions associated with electricity production, leading to lower environmental impact compared to manual systems which may often be left on unnecessarily . The system also supports the shift from incandescent to more efficient lighting technologies, further cutting energy use. This conservation aids in resource management and reduces pollutants associated with energy generation .

The primary components needed are an Atmega328p microcontroller, LDR (Light Dependent Resistor), LEDs, a breadboard, resistors, and connecting wires. The Atmega328p is programmed using the Microchip Studio to control the LEDs based on LDR input . The LDR, which is connected to input PORTC, changes its resistance based on the light intensity; it has low resistance in light and high resistance in dark. This resistance change allows the microcontroller to detect ambient light levels and accordingly turn the LEDs on or off .

Current limitations of the LDR-based automatic streetlight system include the potential for inaccurate readings under adverse weather conditions, limited response to sudden changes in light conditions (e.g., lightning), and dependence on the precise placement of LDR sensors for optimal function . These factors might impact large-scale deployment by causing inconsistent lighting control, necessitating frequent maintenance and recalibration. Additionally, integration with existing infrastructures may require significant investments in upgrading control systems for compatibility, potentially hindering widespread adoption in cost-constrained environments .

The LDR-based street light project addresses several issues in developing countries by offering a cost-effective and labor-saving solution to street lighting . It reduces the dependency on human intervention for switching lights, saving manpower for other essential services. The project alleviates frequent load shedding problems by conserving energy through automatic control of lighting based on environmental light conditions . This conservation can significantly contribute to solving energy crises faced by many developing nations, reducing costs and enhancing both security and public safety .

You might also like