Arduino Projects

Car Parking System Using Arduino

Car Parking project

Introduction

In this article, we will explore how to create a car parking system using an Arduino microcontroller board, an I2C 20×4 LCD display, an MG955 servo motor, and an IR sensor. The parking system will help automate the process of parking a car by providing real-time information and guiding the driver through the parking space. We will discuss the components used, their functionalities, and how they work together to create an efficient parking system.

Components Needed

S.N

Component's

Quantity

Link To Buy

1

Arduino Uno

1

2

20x4 LCD Display

1

3

IR Sensor

6

4

MG995 Servo Motor

1

5

Wire

20

6

Zero PCB

1

7

9V Power Supply

1

Circuit Diagram

  • Connect the VCC and GND pins of the IR sensors to the 5V and GND pins of the Arduino board, respectively.
  • Connect the signal pins of the IR sensors (ir_enter, ir_back, ir_car1 to ir_car4) to any available digital input pins on the Arduino ( pins 2, 4, 5, 6, 7, 8).
  • Connect the signal wire of the servo motor to a digital output pin on the Arduino (pin 3).
  • Connect the SDA and SCL pins of the LCD display module to the corresponding SDA and SCL pins on the Arduino (A4 and A5 for most Arduino boards).
  • Connect the VCC and GND pins of the LCD display module to the 5V and GND pins of the Arduino board, respectively.

 

circuit diagram 21

Once the circuit connections are made, you can upload the provided code to the Arduino board using the Arduino IDE. The code initializes the sensors, servo motor, and LCD display in the setup() function. The loop() function continuously reads the sensor inputs, updates the LCD display, and controls the servo motor based on the sensor readings.

Source Code

Libraries Required

GitHub

1

Setup Function

    • The setup() the function is called once at the beginning of the program.
    • It initializes the serial communication, sets the pin modes for the sensors, attaches the servo motor, and initializes the LCD display.
    • The LCD display shows introductory messages for a few seconds and then calculates the initial number of available slots.

Loop Function

    • The loop() a function is called repeatedly after the setup() function.
    • It starts by calling the Read_Sensor() function to update the slot occupancy variables (S1, S2, S3, and S4).

Video

Conclusion

  • By integrating an I2C 20×4 LCD display, an MG955 servo motor, an IR sensor, and an Arduino, we can create a car parking system that automates the process of parking and enhances the overall user experience. Such a system not only provides real-time information to drivers but also improves parking space management and reduces the need for manual intervention.
  • With further enhancements, this system can be expanded to handle multiple parking spaces, integrate with mobile applications, or incorporate advanced features like automatic payment systems.

More Arduino Tutorial

Prateek

Hi, Prateek Here I’m interested in Electronics That's why I Make Soo Many Projects, I’m currently Pursuing M Tech.. if you Relay Like To My Blog Plz Comment Below...Thanks To All Electronics Lover...❤️

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button