ArduinoArduino Projects

Car Parking Monitoring System using Arduino and programming


Car parking- this tutorial is about the monitoring system for car parking slot using software programming in visual, also known as it’s an infrared sensor project based on Arduino and this car parking project uses a minimum of six IR sensors. This parking space is split into two parking spaces, parking1 and parking2. Infrared sensors are used in each parking slot for car detection. The box next to the slot is tested or unchecked depending on the car’s detection. If the box is checked, a car will fill the slot.

This Tutorial covers

  1. Car Parking Sensors installation
  2. Car Parking Circuit diagram
  3. Interfacing
  4. Car parking Arduino programming
  5. Computer
  6. Car Parking application designing and programming finally
  7. Car Parking Testing

Amazon Purchase links:

Infrared sensor:
Arduino Uno:
Mega 2560:
lm7805 Voltage Regulator: 
330-ohm resistors pack: 
female DC power jack socket:
470uf capacitors:
5×7 cm Vero board:
female headers: 
connection wires: 
Super Starter kit:
Jumper Wires:
Bread Board:
12v Adaptor:
PCB plate:
Variable Supply: 
Digital Multimeter:
Vero Board / stripboard:
Soldering iron kit: 
Solder wire: 
Wire Stripper: 
PCB drill machine: 


Please Note: these are affiliate links. I may make a commission if you buy the components through these links. I would appreciate your support in this way!

Car parking Circuit Diagram:

car parking

This is the complete parking monitoring system circuit diagram. The circuit diagram is designed in version 9.1.0 of the cadsoft eagle. Those are the six sensors for infrared.That infrared sensor is a slot.The Vcc of all the infrared sensors is paired and wired to the 5v of the Arduino. Likewise, the ground pins of all the infrared sensors are linked together and attached to the base of the Arduino. While the infrared sensors are  connected to the out pins

 pin  4

pin  5

pin  6

pin 7

pin  8 and

pin 9

Car parking Arduino Programming:

First I began with the definition of pins for infrared sensors. Then I set up 6 String type variables with sensor1 names to sensor6. Finally,I defined a type String variable cdata to store the entire message.

Turns on serial communication, the buad rate is 9600. 

Set all infrared sensors as input using the pinmode function. Pinmode function is built-in function that requires two arguments such as the input, the pin number or pin name, and the status that can be input or output.

created functions for individual monitoring of each infrared sensor. So these are the six functions calling.

P1slot1 is a function defined by the user, it has no type of return and it takes no argument as the input.  If there’s a car in front of the sensor that gives digital logic 0, and if there’s no car that gives digital logic 1, then p1s1on or p1s1off is stored.  All other infrared sensors are using the same mechanism.

Car parking Computer application Designing and Programming:

car parking

That’s how it feels like the software program. We use only one serial port and only one-timer in this program. You will have access to the programming when you double-click on the application form.

First I began by importing system and framework.

Then I defined a type integer variable that is value1.

Double-click the form and add the Serial port code. Currently, the name of the port is com19, the same as that of my laptop. You can check from the device manager the port number of your Arduino. Change  com19  to your laptop or computer’s number.

Defines the form string variable s. This line of code is intended to store the entire message in variable s. This is the message that Arduino receives.

Then these instructions are used to set the comma-like delimiter form in my case, the entire message will be split into six strings with the aid of a comma, then each string will be displayed in its corresponding text box, each text box represents an infrared sensor.

Data received function, I used this function in so many projects, and I explained this in detail already. This function is intended to read the serial port and store the data in the textbox1.

Watch Video Tutorial

Related Articles

Leave a Reply

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

Back to top button