Project showcase
Smart Parking

Smart Parking © GPL3+

A system that tells you about the parking slots of an area.

  • 52,242 views
  • 16 comments
  • 50 respects

Components and supplies

Ph a000066 iso (1) ztbmubhmho
Arduino UNO
×1
Adafruit Arduino Ethernet Shield
×1

Apps and online services

About this project

This system represents a parking lot. Only three slots are considered for Simplification.

The system consists of Arduino Uno, Ethernet Shield, Blynk App, and IR sensors. Sensors are used to detect the presence of a Vehicle. As soon as a vehicle is detected in a particular slot and the corresponding led on the App goes high.


The Blynk app can be downloaded from the play store as well as the IOS.

Video demonstrating the project.



Code

Smart Parking.inoArduino
#define BLYNK_PRINT Serial
#include <SPI.h>
#include <Ethernet.h>
#include <BlynkSimpleEthernet.h>
char auth[] = "";    // Write your Blynk project key here
WidgetLED led1(V1);   // Virtual LED to show status on App
WidgetLED led2(V2);
WidgetLED led3(V3);
int sensor1 = 2;      // IR Sensors
int sensor2 = 3;
int sensor3 = 4;

void setup()
{
  Serial.begin(9600);
  Blynk.begin(auth);         // Starting Blynk server and connecting to the cloud
  
  pinMode(sensor3,INPUT);    // Setting sensors to input
  
  pinMode(sensor2,INPUT);
  
  pinMode(sensor1,INPUT);

  while (Blynk.connect() == false) {
    // Wait until connected
  }
}
 void loop() {  
   int sensorval1 = digitalRead(sensor1); // Saving Values os sensors
   int sensorval2 = digitalRead(sensor2);
   int sensorval3 = digitalRead(sensor3);
   Serial.println(sensorval1);            // printing values 
   Serial.println(sensorval2);
   Serial.println(sensorval3);
   delay(1000);
   if (sensorval1 == 1)
   {
led1.on();                                 // Setting virtual led on the app
}
   if (sensorval2 == 1)
   {
led2.on();
}
   if (sensorval3 == 1)
   {

led3.on();}
    if (sensorval1 == 0)
   {

led1.off();
}
   if (sensorval2 == 0)
   {
led2.off();
}
   if (sensorval3 == 0)
   {
led3.off();
}   
    
    Blynk.run();
    
     }

Schematics

Smart Parking
Fritzing

Comments

Similar projects you might like

Smart Parking System

Project in progress by Md. Khairul Alam

  • 81,268 views
  • 38 comments
  • 147 respects

Smart Parking System

Project tutorial by Husinul

  • 24,572 views
  • 18 comments
  • 41 respects

Smart Battery Charger Multiplexer with Smart Display

Project tutorial by leonzak

  • 11,615 views
  • 10 comments
  • 25 respects

Smart Doorbell

Project showcase by Kaustubh Agarwal

  • 82,305 views
  • 23 comments
  • 150 respects

Smart Bicycle

Project showcase by Vikram Tokala

  • 11,432 views
  • 0 comments
  • 27 respects

Parking Radar Sensor

Project tutorial by SurtrTech

  • 20,191 views
  • 12 comments
  • 64 respects
Add projectSign up / Login