SlideShare ist ein Scribd-Unternehmen logo
1 von 12
55
PROJECT 6 : Automatic street light Controller
What we are making
Have you ever wondered, who switches ON the street lights in evening ?
And who switches them OFF in the morning ?
At most places, a human is employed whose job is to turn the street lights
ON and OFF.
In this project, we will build a system that automatically switches
ON lights when there is darkness, and switches OFF the lights
when there is brightness !
PROJECT 6
Parts Required:
56Pause a moment and think how such a system will help
the society ?
Well, such a system:
- Saves time for a human. No one needs to go anywhere to operate.
- Works even when human is on a leave.
- Is always punctual.
- Saves electricity as it switches ON only when needed,
and switches OFF as soon as the Sun comes up.
PROJECT 6 : AUTOMATIC STREET LIGHT CONTROLLER
PARTS :
+ This section lists the parts you
will need to complete the project.
150
RESISTOR
LED JUMPER
WIRES
x 1 x 2 x 4 x 1
Ω LDR
57Step 1:
Connect a Black jumper wire: UNO GND pin <-------> - line on Breadboard
Connect a Red jumper wire: UNO 5V pin <-------> + line on Breadboard.
PROJECT 6 : AUTOMATIC STREET LIGHT CONTROLLER
58Step 2:
Take an LDR ( Light Dependent Resistor - sometimes also
called Photo-resistor).
Connect one end to 10-i.
Other end to + line on breadboard. (Just like normal Resistors,
LDR has no polarity - so you can connect any end to 10-i)
PROJECT 6 : AUTOMATIC STREET LIGHT CONTROLLER
59Step 3:
Take a 150 Ohm Resistor.
Connect one end to 10-f.
Other end to Negative (-) line.
PROJECT 6 : AUTOMATIC STREET LIGHT CONTROLLER
60Step 4:
Take a Yellow Jumper wire.
One end in A0 pin on UNO board.
Other end in 10-h on Breadboard
PROJECT 6 : AUTOMATIC STREET LIGHT CONTROLLER
61Step 5:
Take a Green jumper wire.
One end in Pin 7 in UNO board.
Other end in 20-j on Breadboard.
PROJECT 6 : AUTOMATIC STREET LIGHT CONTROLLER
62Step 6:
Take a red LED.
Connect longer side to 20-f.
Connect shorter side to 20-e.
PROJECT 6 : AUTOMATIC STREET LIGHT CONTROLLER
63Step 7:
Take a 150 Ohm Resistor.
Connect one end to 20-c.
Connect other end to Negative (-) line on Breadboard.
This completes our circuit !
PROJECT 6 : AUTOMATIC STREET LIGHT CONTROLLER
64Step 8:
Open Arduino software (IDE) on your computer and write below code in it:
Now press the upload button in Arduino software.
Note: Try changing the number 50 to 10 if the LED is always ON in your
room. If the LED is always OFF, then change 50 to 500 and try.
BINGO !!
Explanation:
65
PROJECT 6 : AUTOMATIC STREET LIGHT CONTROLLER
You should see your LED switched ON when you enter a dark room. You
can also test this by covering the top of the LDR with your fingers.
The LED should switch OFF automatically when there is
light in the room.
In order to detect the intensity of light, we use a sensor called
LDR (Light Dependent Resistor).
The LDR is a special type of resistor which allows higher current to pass
through it whenever there is a high intensity of light, and passes a low
current whenever it is dark.
66
Since the LDR gives out an analog output, it is connected to the
analog input pin on the Arduino (A0 in our case).
Thus, the LDR gives out an analog output which varies in magnitude in
direct proportion to the input light intensity on it.
The greater the intensity of light, the greater the value coming
from LDR.
The Arduino, with its built-in Analog to Digital Converter, converts the
analog value coming from LDR into a digital value in the range of 0 - 1023.
This value is read by our code using the function analogRead(A0).
int sensorValue = 0; In our code, we declare a variable called
sensorValue and assign initial value 0 to it.
pinMode(7, OUTPUT); In the setup() function, we set pin 7 as OUTPUT
so that later in the program we can pass current in pin 7 to light the LED.
sensorValue = analogRead(A0);
In the loop() function, we read the value of LDR into sensorValue.
If the sensorValue is less than 50, it means its dark - so we pass
current to the LED using digitalWrite(7, HIGH).
Otherwise, we switch off the LED using digitalWrite(7, LOW)

Weitere ähnliche Inhalte

Was ist angesagt?

AUTOMATIC RAILWAY GATE CONTROL SYSTEM
AUTOMATIC RAILWAY GATE CONTROL SYSTEMAUTOMATIC RAILWAY GATE CONTROL SYSTEM
AUTOMATIC RAILWAY GATE CONTROL SYSTEMJOLLUSUDARSHANREDDY
 
Automatic street light using ldr
Automatic street light using ldrAutomatic street light using ldr
Automatic street light using ldrNikhil Sharma
 
Automatic railway gate control
Automatic railway gate controlAutomatic railway gate control
Automatic railway gate controlMohamed Magdy
 
Automatic emergency light using led ppt
Automatic emergency light using led pptAutomatic emergency light using led ppt
Automatic emergency light using led pptRitik Joshi
 
Automatic railway gate control
Automatic railway gate controlAutomatic railway gate control
Automatic railway gate controlAtchyuth Sonti
 
Automatic street light control system
Automatic street light control systemAutomatic street light control system
Automatic street light control systemmundaa
 
Automatized railway gate controller
Automatized railway gate controllerAutomatized railway gate controller
Automatized railway gate controllerAakash Varma
 
Wireless charging
Wireless chargingWireless charging
Wireless chargingashwin106
 
automatic streetlight control using ldr ppt
automatic streetlight control using ldr pptautomatic streetlight control using ldr ppt
automatic streetlight control using ldr pptanand kumar maurya
 
Sinusoidal Response of RC & RL Circuits
Sinusoidal Response of RC & RL CircuitsSinusoidal Response of RC & RL Circuits
Sinusoidal Response of RC & RL CircuitsSachin Mehta
 
Rain Alarm Using 555 Timer IC with Report
Rain Alarm Using 555 Timer IC with ReportRain Alarm Using 555 Timer IC with Report
Rain Alarm Using 555 Timer IC with ReportUzair Ahmad
 
Ppt on automatic street light control using ir sensors
Ppt on automatic street light control using ir sensorsPpt on automatic street light control using ir sensors
Ppt on automatic street light control using ir sensorsVikram Emmidi
 
Fault Location of Overhead Transmission Line
Fault Location of Overhead Transmission LineFault Location of Overhead Transmission Line
Fault Location of Overhead Transmission LineCHIRANJEEB DASH
 

Was ist angesagt? (20)

AUTOMATIC RAILWAY GATE CONTROL SYSTEM
AUTOMATIC RAILWAY GATE CONTROL SYSTEMAUTOMATIC RAILWAY GATE CONTROL SYSTEM
AUTOMATIC RAILWAY GATE CONTROL SYSTEM
 
EMI Unit 3 CRO
EMI Unit 3 CROEMI Unit 3 CRO
EMI Unit 3 CRO
 
Automatic street light using ldr
Automatic street light using ldrAutomatic street light using ldr
Automatic street light using ldr
 
Automatic railway gate control
Automatic railway gate controlAutomatic railway gate control
Automatic railway gate control
 
Automatic emergency light using led ppt
Automatic emergency light using led pptAutomatic emergency light using led ppt
Automatic emergency light using led ppt
 
Clap Switch
Clap SwitchClap Switch
Clap Switch
 
Automatic railway gate control
Automatic railway gate controlAutomatic railway gate control
Automatic railway gate control
 
Autotransformers
AutotransformersAutotransformers
Autotransformers
 
Smart street light system
Smart street light systemSmart street light system
Smart street light system
 
Automatic street light control system
Automatic street light control systemAutomatic street light control system
Automatic street light control system
 
Automatized railway gate controller
Automatized railway gate controllerAutomatized railway gate controller
Automatized railway gate controller
 
Wireless charging
Wireless chargingWireless charging
Wireless charging
 
automatic streetlight control using ldr ppt
automatic streetlight control using ldr pptautomatic streetlight control using ldr ppt
automatic streetlight control using ldr ppt
 
Sinusoidal Response of RC & RL Circuits
Sinusoidal Response of RC & RL CircuitsSinusoidal Response of RC & RL Circuits
Sinusoidal Response of RC & RL Circuits
 
Network Theorems.ppt
Network Theorems.pptNetwork Theorems.ppt
Network Theorems.ppt
 
Ups
UpsUps
Ups
 
Rain Alarm Using 555 Timer IC with Report
Rain Alarm Using 555 Timer IC with ReportRain Alarm Using 555 Timer IC with Report
Rain Alarm Using 555 Timer IC with Report
 
Ppt on automatic street light control using ir sensors
Ppt on automatic street light control using ir sensorsPpt on automatic street light control using ir sensors
Ppt on automatic street light control using ir sensors
 
Automatic Night Light
Automatic Night LightAutomatic Night Light
Automatic Night Light
 
Fault Location of Overhead Transmission Line
Fault Location of Overhead Transmission LineFault Location of Overhead Transmission Line
Fault Location of Overhead Transmission Line
 

Ähnlich wie Project 6: Automatic Street Light Controller

Power generation through speed breaker and footsteps
Power generation through speed breaker and footstepsPower generation through speed breaker and footsteps
Power generation through speed breaker and footstepsRabail khan
 
Arduino Workshop (3).pptx
Arduino Workshop (3).pptxArduino Workshop (3).pptx
Arduino Workshop (3).pptxHebaEng
 
Automatic railway gate control using arduino uno
Automatic railway gate control using arduino unoAutomatic railway gate control using arduino uno
Automatic railway gate control using arduino unoselvalakshmi24
 
AUTOMATIC ENGINE LOCKING SYSTEM.pptx
AUTOMATIC ENGINE LOCKING SYSTEM.pptxAUTOMATIC ENGINE LOCKING SYSTEM.pptx
AUTOMATIC ENGINE LOCKING SYSTEM.pptx19A51A04J3SASALABHAR
 
Robotics Report final.compressed (1)
Robotics Report final.compressed (1)Robotics Report final.compressed (1)
Robotics Report final.compressed (1)Kael Kristjanson
 
AUTONOMOUS LPG GAS SENSOR BOT USING ARDUINO ppt
AUTONOMOUS LPG GAS SENSOR BOT USING ARDUINO pptAUTONOMOUS LPG GAS SENSOR BOT USING ARDUINO ppt
AUTONOMOUS LPG GAS SENSOR BOT USING ARDUINO pptRavi Shankar
 
Arduino comic v0004
Arduino comic v0004Arduino comic v0004
Arduino comic v0004DO!MAKERS
 
Obstacle detection Robot using Ultrasonic Sensor and Arduino UNO
Obstacle detection Robot using Ultrasonic Sensor and Arduino UNOObstacle detection Robot using Ultrasonic Sensor and Arduino UNO
Obstacle detection Robot using Ultrasonic Sensor and Arduino UNOSanjay Kumar
 
Arduino Based Collision Prevention Warning System
Arduino Based Collision Prevention Warning SystemArduino Based Collision Prevention Warning System
Arduino Based Collision Prevention Warning SystemMadhav Reddy Chintapalli
 
International Journal of Engineering Research and Development
International Journal of Engineering Research and DevelopmentInternational Journal of Engineering Research and Development
International Journal of Engineering Research and DevelopmentIJERD Editor
 
Fire Fighting Robot
Fire Fighting RobotFire Fighting Robot
Fire Fighting RobotSaadullah74
 
Ram minor project PPT..pptx
Ram minor project PPT..pptxRam minor project PPT..pptx
Ram minor project PPT..pptxsaiproject
 
Notes arduino workshop_15
Notes arduino workshop_15Notes arduino workshop_15
Notes arduino workshop_15Faiz Lazim
 

Ähnlich wie Project 6: Automatic Street Light Controller (20)

Power generation through speed breaker and footsteps
Power generation through speed breaker and footstepsPower generation through speed breaker and footsteps
Power generation through speed breaker and footsteps
 
Line Follower Robot
Line Follower RobotLine Follower Robot
Line Follower Robot
 
EESS.pptx
EESS.pptxEESS.pptx
EESS.pptx
 
Arduino Workshop (3).pptx
Arduino Workshop (3).pptxArduino Workshop (3).pptx
Arduino Workshop (3).pptx
 
Automatic railway gate control using arduino uno
Automatic railway gate control using arduino unoAutomatic railway gate control using arduino uno
Automatic railway gate control using arduino uno
 
AUTOMATIC ENGINE LOCKING SYSTEM.pptx
AUTOMATIC ENGINE LOCKING SYSTEM.pptxAUTOMATIC ENGINE LOCKING SYSTEM.pptx
AUTOMATIC ENGINE LOCKING SYSTEM.pptx
 
ARDUINO.pptx
ARDUINO.pptxARDUINO.pptx
ARDUINO.pptx
 
Dark sensor
Dark sensorDark sensor
Dark sensor
 
Robotics Report final.compressed (1)
Robotics Report final.compressed (1)Robotics Report final.compressed (1)
Robotics Report final.compressed (1)
 
AUTONOMOUS LPG GAS SENSOR BOT USING ARDUINO ppt
AUTONOMOUS LPG GAS SENSOR BOT USING ARDUINO pptAUTONOMOUS LPG GAS SENSOR BOT USING ARDUINO ppt
AUTONOMOUS LPG GAS SENSOR BOT USING ARDUINO ppt
 
Arduino Comic-Jody Culkin-2011
Arduino Comic-Jody Culkin-2011Arduino Comic-Jody Culkin-2011
Arduino Comic-Jody Culkin-2011
 
Arduino comic v0004
Arduino comic v0004Arduino comic v0004
Arduino comic v0004
 
Obstacle detection Robot using Ultrasonic Sensor and Arduino UNO
Obstacle detection Robot using Ultrasonic Sensor and Arduino UNOObstacle detection Robot using Ultrasonic Sensor and Arduino UNO
Obstacle detection Robot using Ultrasonic Sensor and Arduino UNO
 
Summer training project
Summer training projectSummer training project
Summer training project
 
Arduino Based Collision Prevention Warning System
Arduino Based Collision Prevention Warning SystemArduino Based Collision Prevention Warning System
Arduino Based Collision Prevention Warning System
 
International Journal of Engineering Research and Development
International Journal of Engineering Research and DevelopmentInternational Journal of Engineering Research and Development
International Journal of Engineering Research and Development
 
Fire Fighting Robot
Fire Fighting RobotFire Fighting Robot
Fire Fighting Robot
 
Ram minor project PPT..pptx
Ram minor project PPT..pptxRam minor project PPT..pptx
Ram minor project PPT..pptx
 
Notes arduino workshop_15
Notes arduino workshop_15Notes arduino workshop_15
Notes arduino workshop_15
 
Animatronic hand controller
Animatronic hand controllerAnimatronic hand controller
Animatronic hand controller
 

Kürzlich hochgeladen

Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 

Kürzlich hochgeladen (20)

Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 

Project 6: Automatic Street Light Controller

  • 1. 55 PROJECT 6 : Automatic street light Controller What we are making Have you ever wondered, who switches ON the street lights in evening ? And who switches them OFF in the morning ? At most places, a human is employed whose job is to turn the street lights ON and OFF. In this project, we will build a system that automatically switches ON lights when there is darkness, and switches OFF the lights when there is brightness ! PROJECT 6
  • 2. Parts Required: 56Pause a moment and think how such a system will help the society ? Well, such a system: - Saves time for a human. No one needs to go anywhere to operate. - Works even when human is on a leave. - Is always punctual. - Saves electricity as it switches ON only when needed, and switches OFF as soon as the Sun comes up. PROJECT 6 : AUTOMATIC STREET LIGHT CONTROLLER PARTS : + This section lists the parts you will need to complete the project. 150 RESISTOR LED JUMPER WIRES x 1 x 2 x 4 x 1 Ω LDR
  • 3. 57Step 1: Connect a Black jumper wire: UNO GND pin <-------> - line on Breadboard Connect a Red jumper wire: UNO 5V pin <-------> + line on Breadboard. PROJECT 6 : AUTOMATIC STREET LIGHT CONTROLLER
  • 4. 58Step 2: Take an LDR ( Light Dependent Resistor - sometimes also called Photo-resistor). Connect one end to 10-i. Other end to + line on breadboard. (Just like normal Resistors, LDR has no polarity - so you can connect any end to 10-i) PROJECT 6 : AUTOMATIC STREET LIGHT CONTROLLER
  • 5. 59Step 3: Take a 150 Ohm Resistor. Connect one end to 10-f. Other end to Negative (-) line. PROJECT 6 : AUTOMATIC STREET LIGHT CONTROLLER
  • 6. 60Step 4: Take a Yellow Jumper wire. One end in A0 pin on UNO board. Other end in 10-h on Breadboard PROJECT 6 : AUTOMATIC STREET LIGHT CONTROLLER
  • 7. 61Step 5: Take a Green jumper wire. One end in Pin 7 in UNO board. Other end in 20-j on Breadboard. PROJECT 6 : AUTOMATIC STREET LIGHT CONTROLLER
  • 8. 62Step 6: Take a red LED. Connect longer side to 20-f. Connect shorter side to 20-e. PROJECT 6 : AUTOMATIC STREET LIGHT CONTROLLER
  • 9. 63Step 7: Take a 150 Ohm Resistor. Connect one end to 20-c. Connect other end to Negative (-) line on Breadboard. This completes our circuit ! PROJECT 6 : AUTOMATIC STREET LIGHT CONTROLLER
  • 10. 64Step 8: Open Arduino software (IDE) on your computer and write below code in it: Now press the upload button in Arduino software. Note: Try changing the number 50 to 10 if the LED is always ON in your room. If the LED is always OFF, then change 50 to 500 and try.
  • 11. BINGO !! Explanation: 65 PROJECT 6 : AUTOMATIC STREET LIGHT CONTROLLER You should see your LED switched ON when you enter a dark room. You can also test this by covering the top of the LDR with your fingers. The LED should switch OFF automatically when there is light in the room. In order to detect the intensity of light, we use a sensor called LDR (Light Dependent Resistor). The LDR is a special type of resistor which allows higher current to pass through it whenever there is a high intensity of light, and passes a low current whenever it is dark.
  • 12. 66 Since the LDR gives out an analog output, it is connected to the analog input pin on the Arduino (A0 in our case). Thus, the LDR gives out an analog output which varies in magnitude in direct proportion to the input light intensity on it. The greater the intensity of light, the greater the value coming from LDR. The Arduino, with its built-in Analog to Digital Converter, converts the analog value coming from LDR into a digital value in the range of 0 - 1023. This value is read by our code using the function analogRead(A0). int sensorValue = 0; In our code, we declare a variable called sensorValue and assign initial value 0 to it. pinMode(7, OUTPUT); In the setup() function, we set pin 7 as OUTPUT so that later in the program we can pass current in pin 7 to light the LED. sensorValue = analogRead(A0); In the loop() function, we read the value of LDR into sensorValue. If the sensorValue is less than 50, it means its dark - so we pass current to the LED using digitalWrite(7, HIGH). Otherwise, we switch off the LED using digitalWrite(7, LOW)