Introduction: Smart Street Light Using Ir Sensor With Arduino

Please SUBSCRIBEto my channel for more projects.

This project is about Smart street light, street light will turn on while vehicle is passing through it.
here we are using 4 IR sensors that senses the position of the vehicle,each IR sensor controls 3 LED's. When vehicle passes by a particular IR sensor it senses the position of vehicle and gives its signal to the arduino board and it will turn on the LED's.

ADVANTAGES:

If we uses this idea and implement to it in our society it will be helpful in saving enough amount of electricity and off-course money.

Step 1: Components Required

  1. arduino uno
  2. ir sensor (4)
  3. 10mm LEDs (6)
  4. connecting wire
  5. foam board

Step 2: Upload the Program

download and upload the program in arduino uno

Step 3: Connect the Circuit

Connect all the components as given in the circuit diagram.

ir sensor 1 ---> 2

ir sensor 2 ---> 3

ir sensor 3 ---> 4

ir sensor 4 ---> 5

connect all ir sensor's to +5v and ground.

the positive pin of leds are connected to these pins of arduino.

led 1 ------> 6

led 2 ------> 7

led 3 ------> 8
led 4 ------> 9

led 5 ------> 10

led 6 ------> 11

and finally all ground pins of led connect to the ground of arduino.

Step 4: Build Suitable Structure

To make these poles as given in above picture, use foam board and glue.

and you may also use black chart to make a road and wooden board for the base of pole.

Comments

author
SwastikD3 (author)2017-07-28

Sir u have written connect all leds/ir sensors to ports and ground. What does ground mean??

author

Ground means arduino's ground.... That is negative

author
SwastikD3 (author)2017-07-28

Sir is the project working perfectly with the same code??

I have Science exhibition in school (Class XI) and I want to make it

Can u plz tell me something if it is 100% correct

author

Yes, it is 100% correct....
Where is your school...

author
Tytyraa (author)2017-06-30

Sir. Can i know. Did you use a code to make this project? I'm new to this ? and can i used 4 led only, lcd,pir sensor,arduino uno, breadboard, wire and ldr?

author
reuben daniel (author)2017-05-29

Sir,

may I know how to change the light intensity instead of turning the LED on and off?

ex: when vehicle is detected ,the LED is at full brightness.
when there is no vehicle, the LED is at lower level of light intensity.

Thanks.

author

Chang your LED output pins to PWM pins or analog pins

Then Chang "digital write to

author
dussarahul360hertz (author)2017-04-21

Leds are responding only when light falls on receiver of IR sensor...
Sir can you please explain how to make led work only when an obstacle comes infront of IR sensor

author

IR sensor consist of TRANSMITTER & RECEIVER.

The transmitter transmits infrared ray.

The receiver receives the infrared ray.

Ex: When there is a vehicle, the infrared ray transmitted gets deflected by the vehicle . These deflected rays then comes in contact with the receiver.

When there is no vehicle, the infrared ray doesn't get deflected. hence no IR is received by the receiver.


author
Parthapratimd2 (author)2017-04-29

sir, i have an error

Simulation is not running in real time due to excessive CPU load.

author

I don't understand ....what type of error is that ......just attach a photo of error.

author
dussarahul360hertz (author)2017-04-21

Sir, will ir sensor detect the vehicle movement only in dark..??

author

Ir sensor will detect any type of object .......but make sure it is away from sun light .........
It will not work in sun light , better work in room light .

author
SimpleG3 (author)2017-04-10

Arduino: 1.8.0 (Windows 10), Board: "Arduino/Genuino Uno"

Sketch uses 1272 bytes (3%) of program storage space. Maximum is 32256 bytes.

Global variables use 17 bytes (0%) of dynamic memory, leaving 2031 bytes for local variables. Maximum is 2048 bytes.

avrdude: ser_open(): can't open device "\\.\COM5": Access is denied.

please help .... this erroer occures when i try to upload

author
vishalsoniindia (author)SimpleG32017-04-11

Insert the arduino in other USB port.
Than go to
Tools >> port >>

Select the port that you have connected.


If it not work then try with windows 7 because some time windows 10 not support.

author
dussarahul360hertz (author)2017-04-06

sir can you please explain the idea behind using green and red in code....what are they actually

author

I forgot to remove that Red and green led in video , that led is to test circuit for me there is no use in project .
Download the code from 2nd stape ,in that I removed red and green LEDs.

author
RizwanK37 (author)2017-03-28

Please go through the circuit diagram once again. I had to make a little change while implementing the circuit.

Instead of shorting the negative side of the leds, i ended up shorting the positive terminals of the led,and then connected it to the arduino Vcc. Basically,the arduino has 2 Vcc,one supplying the led and the other supplying the IR sensors.

I havnt come up with a schematic diagram yet. Do let me know what you think.

Thanks. :)

author

GOOD ......, This is also correct.....
:)
One of the side will be short ,doesn't matter which one either positive or negative.

If short the positive side then change all "HIGH" into "LOW" and "LOW" into "HIGH".

author
Brucesmith50 (author)2017-03-20

Many outdoor lamps are metal halide, mercury vapor, low pressure sodium, etc., because they throw a lot of light with less power (still several hundred watts). They also need time to 'warm up' and fire to the on state from a very wimpy glow. We had a parking garage that presented a problem after a power failure because it went black for 30 to 45 (60?) seconds before the lights were back to burning bright. The time delay depends on the individual lamp... Age & condition.

It's a good idea, but there is a lot to think about. On a freeway, you would want a light a half mile ahead to light the road, but if pedestrians might use the area, they would need to stay on, or at least sense differently. Freeways may have enough traffic to render them only semi used. Also, costs are high for 'control boards' supplied to maintenance people by wholesalers, and it introduces another way for the lighting to 'fail', and may keep a long stretch of road completely dark while it is out of service. Not insurmountable, but needs to be thought about... Should fail to an 'on' state if possible.

author
tytower (author)2017-03-16

The other observation is that it is good for 30cm max so how could you have used this in the real world?

author
vishalsoniindia (author)tytower2017-03-17

You can use "ultrasonic sensor" to extend the range.

author
tytower (author)2017-03-16

I will have a play with this thanks but what stops the lights turning on during the day?

author
vishalsoniindia (author)tytower2017-03-17

Use "LDR" that will stop turning on light during day.

author
MESHprj (author)2017-03-16

Cool project!

author
vishalsoniindia (author)MESHprj2017-03-17

Thank you .... @MESHprj

author
Swansong (author)2017-03-16

That's a neat idea :) It could potentially save a lot of energy and lessen light pollution.

author
vishalsoniindia (author)Swansong2017-03-17

Thank u...... @Swansong

About This Instructable

4,155views

39favorites

License:

Bio: i am 20 year old electrical engineer from india.
More by vishalsoniindia:DIY Build QUADCOPTER || Drone || Cc3d || Flight Controller Board (fcb) || in Only 13 Step || Simple & EasyAudio Player Using Arduino With Micro SD CardDIY Build BB-8 in India || Android Controlled and Talkative || Life-size
Add instructable to: