Project tutorial
Smart Street Light Using IR Sensor with Arduino

Smart Street Light Using IR Sensor with Arduino

This project is about smart street light, street light will turn on while vehicle is passing through it.

  • 13,506 views
  • 2 comments
  • 4 respects

Components and supplies

Apps and online services

About this project

Please SUBSCRIBEto my channel for more projects.

This project is about Smart street light, street light will turn on while vehiclhe 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

  • arduino uno
  • ir sensor (4)
  • 10mm LEDs (6)
  • connecting wire
  • foam board

Step 2: Upload the Program

download and upload the program in arduino uno

Attachments

📷smartstreetlight.ino

Download

📷smart street light.txt

Download

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 ------> 8led 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.

Code

Smart Street Light codeArduino
int ir1=2;
int ir2=3;
int ir3=4;
int ir4=5;

int led1=6;
int led2=7;
int led3=8;
int led4=9;
int led5=10;
int led6=11;

int proxy1=0;
int proxy2=0;
int proxy3=0;
int proxy4=0;
void setup() 
{
  pinMode(ir1,INPUT);
  pinMode(ir2,INPUT);
  pinMode(ir3,INPUT);
  pinMode(ir4,INPUT);

  pinMode(led1,OUTPUT);
  pinMode(led2,OUTPUT);
  pinMode(led3,OUTPUT);
  pinMode(led4,OUTPUT);
  pinMode(led5,OUTPUT);
  pinMode(led6,OUTPUT);
}


void loop(){
  proxy1=digitalRead(ir1);
  proxy2=digitalRead(ir2);
  proxy3=digitalRead(ir3);
  proxy4=digitalRead(ir4);

if(proxy1==HIGH)
{
  digitalWrite(led1,HIGH);
  digitalWrite(led2,HIGH);
  digitalWrite(led3,HIGH);
}
else
{
  digitalWrite(led1,LOW);
  digitalWrite(led2,LOW);
  digitalWrite(led3,LOW);
}

if(proxy2==HIGH)
{
  digitalWrite(led2,HIGH);
  digitalWrite(led3,HIGH);
  digitalWrite(led4,HIGH);
}
else
{
  digitalWrite(led2,LOW);
  digitalWrite(led3,LOW);
  digitalWrite(led4,LOW);
}

if(proxy3==HIGH)
{
  digitalWrite(led3,HIGH);
  digitalWrite(led4,HIGH);
  digitalWrite(led5,HIGH);
}
else
{
  digitalWrite(led3,LOW);
  digitalWrite(led4,LOW);
  digitalWrite(led5,LOW);
}

if(proxy4==HIGH)
{
  digitalWrite(led4,HIGH);
  digitalWrite(led5,HIGH);
  digitalWrite(led6,HIGH);
}
else
{
  digitalWrite(led4,LOW);
  digitalWrite(led5,LOW);
  digitalWrite(led6,LOW);
}
}

Schematics

Smart Street Light circuit
Ir's right is "+" and left negative.
Arduino pins start from 2,3,4, 5
Then +5v and gnd
Then 11,10,9,8,7,6 led pins
Fpzqobkj08ejo6v large t3xmxzojzk

Comments

Similar projects you might like

IoT-Based Smart Street Light System

Project tutorial by Sagnik Ghosh

  • 42,498 views
  • 19 comments
  • 27 respects

Ambient Light Sensor Using Photo Resistor and LED Lights!

Project tutorial by DCamino

  • 43,571 views
  • 9 comments
  • 34 respects

How to Make an IR Sensor

Project tutorial by Manikant savadatti

  • 26,694 views
  • 0 comments
  • 20 respects

Arduino DIY Light Meter With BH1750 Sensor

Project tutorial by Nick Koumaris

  • 13,767 views
  • 2 comments
  • 7 respects

Using IR Sensor (TCRT 5000) With Arduino

Project tutorial by abhilash_patel

  • 9,479 views
  • 0 comments
  • 1 respect

IOT - Smart Jar Using ESP8266, Arduino and Ultrasonic Sensor

Project tutorial by Team Smazee

  • 16,968 views
  • 5 comments
  • 18 respects
Add projectSign up / Login