Smit Babariya
Published

smart parking system

An empty place indicator or monitor for car parking.

IntermediateProtip251
smart parking system

Things used in this project

Hardware components

Arduino UNO & Genuino UNO
Arduino UNO & Genuino UNO
×1
IR Proximity Sensor
Digilent IR Proximity Sensor
this sensor Quantity Is depend upon Your requirement in this project i use 4
×4
5 mm LED: Red
5 mm LED: Red
led lights quantity is depend upon proximity sensor
×4
9V battery (generic)
9V battery (generic)
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

simulation file proteous

Code

arduino code

Arduino
const int led1=10,led2=11,led3=12,led4=13;
int one,two,three,four;
void setup() {
  
pinMode(led1,OUTPUT);
pinMode(led2,OUTPUT);
pinMode(led3,OUTPUT);
pinMode(led4,OUTPUT);
pinMode(4,INPUT);
pinMode(5,INPUT);
pinMode(6,INPUT);
pinMode(7,INPUT);
}

void loop() {

  while(1){
  if(digitalRead(4)==1)
  {
    digitalWrite(led1,HIGH);
  }
    else 
    {
      digitalWrite(led1,LOW);
    }

 if(digitalRead(5)==1)
  {
    digitalWrite(led2,HIGH);
  }
    else 
    {
      digitalWrite(led2,LOW);
    }
if(digitalRead(6)==1)
  {
    digitalWrite(led3,HIGH);
  }
    else 
    {
      digitalWrite(led3,LOW);
    }
if(digitalRead(7)==1)
  {
    digitalWrite(led4,HIGH);
  }
    else 
    {
      digitalWrite(led4,LOW);
    }


  }
    
}

Credits

Smit Babariya

Smit Babariya

8 projects • 3 followers

Comments

Add projectSign up / Login