logologo

HOMEABOUTSERVICESBLOGSBOOKSSHOPCONTACT

+977 9803661701support@nepatronix.orgLokanthali, Bhaktapur

© 2025 NepaTronix all rigths reserved

Smart Parking Using IR,Servo motor and Arduino Uno(Automation Project)

  Back To Blogs

The Automated Parking System using Arduino is a project designed to efficiently manage parking spaces. It uses IR sensors to detect the presence of vehicles, a servo motor to control the parking barrier, and an LCD display to provide real-time updates on the availability of parking slots. This system aims to optimize the parking process, ensuring that users are informed about slot availability and the barrier operates automatically based on the sensor inputs.

Project : 6


Description

The Automated Parking System using Arduino is a project designed to efficiently manage parking spaces. It uses IR sensors to detect the presence of vehicles, a servo motor to control the parking barrier, and an LCD display to provide real-time updates on the availability of parking slots. This system aims to optimize the parking process, ensuring that users are informed about slot availability and the barrier operates automatically based on the sensor inputs.


Required Components

  1. Arduino Board: The main microcontroller to process the data from the sensors and control the servo motor and LCD.

  2. IR Sensors: Detects the presence of vehicles at the entrance and exit.
    • IR1: Entrance sensor (connected to pin 4)
    • IR2: Exit sensor (connected to pin 7)

  3. Servo Motor: Controls the parking barrier (connected to pin 9).
  4. LiquidCrystal_I2C Display: Displays the number of available slots and status messages.
  5. Connecting Wires: For establishing connections between components.
  6. Power Supply: Adequate power supply for the Arduino and sensors.

Working Principle

  1. Initialization:
    • The Arduino initializes the LCD display, IR sensors, and servo motor.
    • A welcome message is displayed on the LCD.

  2. Slot Detection and Barrier Control:
    • When a vehicle is detected by IR1 (entrance sensor), the system checks if slots are available.
    • If slots are available, the servo motor moves to open the barrier, and the slot count decreases.
    • If no slots are available, a "Parking Full" message is displayed.
    • When a vehicle is detected by IR2 (exit sensor), the slot count increases, and the servo motor opens the barrier for exit.
    • The system ensures the barrier opens only when both entry and exit conditions are met, then resets the flags and closes the barrier after a delay.

  3. Real-Time Slot Update:
    • The LCD displays the number of available slots in real-time.
    • If the parking is full, an appropriate message is shown to inform the user.

Circuit Diagram:

Code

#include <Wire.h>

#include <LiquidCrystal_I2C.h>

#include <Servo.h>

 

LiquidCrystal_I2C lcd(0x27, 16, 2);

Servo myservo1;

int IR1 = 4; // IR Sensor 1

int IR2 = 7; // IR Sensor 2

int Slot = 4; // Enter Total number of parking Slots

int flag1 = 0;

int flag2 = 0;

 

void setup() {

  lcd.init();

  lcd.backlight();

  pinMode(IR1, INPUT);

  pinMode(IR2, INPUT);

  myservo1.attach(9);

  myservo1.write(100);

  lcd.setCursor(0, 0);

  lcd.print("   ARDUINO  ");

  lcd.setCursor(0, 1);

  lcd.print(" PARKING SYSTEM ");

  delay(2000);

  lcd.clear();

}

 

void loop() {

  if (digitalRead(IR1) == LOW && flag1 == 0) {

    if (Slot > 0) {

      flag1 = 1;

      if (flag2 == 0) {

        myservo1.write(0);

        Slot = Slot - 1;

      }

    } else {

      lcd.setCursor(0, 0);

      lcd.print("  SORRY :(  ");

      lcd.setCursor(0, 1);

      lcd.print(" Parking Full ");

      delay(3000);

      lcd.clear();

    }

  }

 

  if (digitalRead(IR2) == LOW && flag2 == 0) {

    flag2 = 1;

    if (flag1 == 0) {

      myservo1.write(0);

      Slot = Slot + 1;

    }

  }

 

  if (flag1 == 1 && flag2 == 1) {

    delay(1000);

    myservo1.write(100);

    flag1 = 0;

    flag2 = 0;

  }

 

  lcd.setCursor(0, 0);

  lcd.print("  WELCOME!  ");

  lcd.setCursor(0, 1);

  lcd.print("Slot Left: ");

  lcd.print(Slot);

}


Conclusion

The Automated Parking System using Arduino is an efficient and user-friendly solution for managing parking spaces. By utilizing IR sensors to detect vehicle presence and a servo motor to control the barrier, the system automates the entry and exit processes. The real-time updates on the LCD display keep users informed about slot availability, making parking management easier and more efficient. This system can be further enhanced with additional features such as remote monitoring, mobile notifications, and integration with payment systems for a complete automated parking solution.


 




Total likes : 4

Comments







Read More Blogs!

Combination of Resistance Parallel Connection(STEAM Education)

To understand the effect of resistance in parallel connection on circuit behavior, that we will observe from LED intensity.


1.8k03

Solar LED with Button(STEAM Education)

To understand the conversion of solar light energy into electrical energy and its application in powering a LED light with the control of a push button.


1.4k04

FIRE DETECTION THROUGH ESP32 MOBILE APP (IoT Project in Nepal)

This project is designed to detect fire using an ESP32 microcontroller and a flame sensor. The system monitors the flame sensor's readings and sends data to a mobile app via the Blynk platform. Additionally, it displays the status on an LCD screen. If fire is detected, an alert message is displayed on both the mobile app and the LCD. This project demonstrates how IoT can be leveraged for fire detection and safety systems.


2.6k04

To turn ON/OFF LED using Button(STEAM Education)

To understand the basics of circuitry and electronic components by creating a simple project where a LED is controlled by a button


1.4k04