Building an Arduino-based Car Parking System

Building an Arduino-based Car Parking System

Introduction to the Car Parking System Project

Overview of the Project

  • The project is introduced as a "Car Parking System," with a previous video available for reference.
  • The current video presents modifications made to the original system, starting with a simulation demonstration.

Simulation Setup

  • The simulation utilizes Proteus 8 software, featuring an 'Arduino UNO', '20x4 LCD', and an 'I2C MODULE' for LCD control.
  • Two 'IR SENSORS' are implemented alongside a 'SERVO MOTOR' that operates the parking barrier based on car presence.

Functionality of the Parking System

Slot Management

  • Six parking slots are monitored by IR sensors; filled slots display "fill" while empty ones show "empty" on the LCD.
  • When a car approaches, the barrier opens; it closes once the car passes in front of the back sensor.

Real-Time Updates

  • As cars park, their respective slots update on the LCD. For example, if slot 5 is occupied, it shows "fill", reducing available slots accordingly.
  • After parking six cars, if another car arrives, it displays "Sorry Parking Full" and does not open the barrier.

Removing Cars from Slots

Sensor Interaction

  • When a parked car leaves, its corresponding IR sensor resets to indicate availability.
  • The system allows for multiple cars to exit sequentially while updating slot statuses dynamically.

Circuit Diagram Overview

Hardware Components

  • A circuit diagram is presented showing connections including a power source and components like Arduino UNO and I2C module.
  • Each component's role is explained: power supply for sensors and motors, along with their integration into the overall system design.

Code Explanation

Libraries and Initialization

  • Various libraries are called in code: servo motor library, wire library for I2C communication, and LiquidCrystal_I2C for LCD management.
  • Pins are initialized for each IR sensor corresponding to different slots as well as entrance/exit sensors.

Main Logic Flow

  • In void setup(), serial communication is established at 9600 baud rate; pins are set up in INPUT mode for sensors.
  • The main loop continuously checks sensor states and updates slot availability displayed on the LCD based on real-time data from IR sensors.

Final Steps in Code Execution

Closing Mechanism

  • After both entrance and back sensors detect passage of a vehicle, flags reset allowing new entries or exits without interference.

This structured summary captures key elements from your transcript while adhering strictly to your formatting guidelines.

Turn any video into a summary like this

YouTube links, meetings, lectures. With transcripts, search, and chat.

Video description

How to make Car Parking System using Arduino and i2c lcd display | Automatic Car Parking System Code, Schematics and Proteus Simulation Download link:- https://marobotic.com/2023/10/18/how-to-make-car-parking-system-using-arduino-and-i2c-lcd-display-automatic-car-parking-system/ Components Details () { Arduino Uno:- https://marobotic.com/product/arduino-uno-r3-dip-board-with-usb-cable/ 20×4 LCD Display:- https://marobotic.com/product/20x4-lcd-display/ I2C LCD Module:- https://marobotic.com/product/i2c-lcd-module/ Male Header:- https://marobotic.com/product/2-54mm-1x40-pin-male-header-180-degrees/ Female Header:- https://marobotic.com/product/2-54mm-1x40-pin-female-header-180-degrees/ IR Sensor:- https://marobotic.com/product/ir-infrared-obstacle-avoidance-sensor-module/ Mini Servo Motor SG-90:- https://marobotic.com/product/mini-servo-motor-sg-90/ Female DC Power Jack:- https://marobotic.com/product/female-dc-power-jack/ 5v 2Amp Power Adapter:- https://marobotic.com/product/5v-2amp-power-adapter/ } We regularly uploads exciting videos like this Suscribe us For More Videos Muhammad Ansar +923378655465 Visit My Website:- https://marobotic.com/projects/