• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Circuit Ideas for You

Get free circuit ideas online.

  • Home
  • Privacy Policy
  • About
Home » Arduino Based Smart Car Parking Sensor Circuit

Arduino Based Smart Car Parking Sensor Circuit

Last updated on 1 July 2026 by Admin-Lavi Leave a Comment

Today parking is big problem everywhere, so here, parking become easy with this Arduino idea; we made small Arduino Based Smart Car Parking Sensor Circuit.

This system detects car and display free or busy slot automatic, then Arduino brain tell LCD which slot is free.

Therefore, there is no confusion, no searching, just smart slot information, as this is a simple circuit with smart working and great for beginners.

Arduino Code:

#include <Wire.h>
#include <LiquidCrystal_I2C.h>
#include <Servo.h>

LiquidCrystal_I2C lcd(0x27, 16, 2);
Servo gate;

int sensor1 = 2;
int sensor2 = 3;

int s1 = 0;
int s2 = 0;

void setup() {
lcd.begin(16,2);
lcd.backlight();
gate.attach(9);

pinMode(sensor1, INPUT);
pinMode(sensor2, INPUT);

lcd.print("Parking System");
delay(1500);
lcd.clear();
}

void loop() {
s1 = digitalRead(sensor1);
s2 = digitalRead(sensor2);

int busy = 0;

if(s1 == LOW) busy++;
if(s2 == LOW) busy++;

int freeSlot = 2 - busy;

lcd.setCursor(0,0);
lcd.print("Busy:");
lcd.print(busy);
lcd.print(" Free:");
lcd.print(freeSlot);

if(freeSlot > 0) {
lcd.setCursor(0,1);
lcd.print("Gate Open ");
gate.write(90);
} else {
lcd.setCursor(0,1);
lcd.print("Gate Closed ");
gate.write(0);
}

delay(300);
}

Coding Explanation:

  • Include libraries.
  • Create LCD object.
  • Create servo object.
  • Set pin modes for IR sensors.
  • Read sensor values.
  • Count how many slots is busy.
  • Calculate free slots.
  • Show values on LCD.
  • If free slot is available then servo turns 90 degree (open).
  • If no free slot then servo goes 0 degree (closed).

Circuit Working:

Arduino Based Smart Car Parking Sensor Circuit Diagram

Parts List:

ComponentsQuantity
Arduino Uno1
IR Sensor2
Servo Motor1
LCD 16×21
I2C Module1

To begin with, Arduino gets power from the circuit, IR sensors turn ON and then sensors check for car.

If the beam remains unblocked, the slot stays free; the Arduino then detects the free slot, the LCD displays a “Free” message, and the servo gate remains closed.

After that, car comes and beam breaks and sensor output changes and Arduino reads busy slot and then LCD shows busy.

Now servo opens gate if any slot is free and if all slots are busy then Arduino closes the gate and then LCD shows no space.

When car leaves then beam becomes clear again and then Arduino updates slot as free, and finally, system repeats this continuously.

Formulas:

IR sensor works like simple digital switch, its output is either 0V or 5V and servo angle uses pulse width.

Angle = (pulseWidth − 1000) × 0.18

Example:

Pulse 1500µs

Angle = (1500 – 1000) * 0.18

Angle = 500 * 0.18 = 90 degree

Slot formula:

FreeSlots = TotalSlots − BusySlots.

Example:

BusySlots = 1

Hence, free slots = 2 – 1 = 1

How to Build:

To build a Arduino Based Smart Car Parking Sensor Circuit follow the below steps:

  • First, take all the parts as shown in circuit diagram.
  • After that, IR Sensor1 VCC pin connect to Arduino 5V, GND pin go to Arduino GND and OUT pin go to Arduino D2
  • Then IR Sensor2 VCC pin connect to Arduino 5V, GND pin go to Arduino GND and then OUT pin go to Arduino D3
  • Further, Servo Motor VCC pin connect to (red) wire to 5V, GND pin (brown) wire to GND and Signal pin (yellow) wire to D9
  • Now I2C LCD Module VCC pin goes to Arduino 5V, GND pin go to Arduino GND, SDA pin go to A4 and SCL pin go to A5

Conclusion:

To conclude, Arduino Based Smart Car Parking Sensor Circuit is very easy and useful, also IR sensors detect vehicles.

Then LCD show slot status and finally, servo act like gate.

Moreover, this circuit works well for a car parking model and uses simple logic, low cost components and an easy to learn design.

Filed Under: Arduino Projects, Automation Circuits, Automobile Circuits, Hobby Circuits, Sensors and Detectors

About Admin-Lavi

Lavi is a B.Tech electronics engineer with a passion for designing new electronic circuits. Do you have questions regarding the circuit diagrams presented on this blog? Feel free to comment and solve your queries with quick replies

Previous Post: « Arduino Air Pressure Circuit with Sensor HX710B
Next Post: Simple Arduino OLED Display Circuit »

Reader Interactions

Leave a Reply Cancel reply

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

Primary Sidebar




Categories

  • 555 Timer Projects (137)
  • Alarm Circuits (81)
  • Amplifier Circuits (94)
  • Arduino Projects (103)
  • Audio Circuits (190)
  • Automation Circuits (150)
  • Automobile Circuits (40)
  • Battery Charger Circuits (89)
  • DIY Projects (437)
  • Free Energy (12)
  • Heater and Temperature Controllers (32)
  • High Voltage (24)
  • Hobby Circuits (244)
  • Indicator Circuits (63)
  • Inverter Circuits (17)
  • IoT projects (12)
  • LDR Circuits (47)
  • LED and Lamps (201)
  • Meters and Testers (44)
  • Mini Projects (392)
  • Motor Controllers (26)
  • Oscillator Circuits (70)
  • Power Supply Circuits (245)
  • Radio Frequency (8)
  • Remote Control Circuits (12)
  • Renewable energy (20)
  • Security and Protection (128)
  • Sensors and Detectors (236)
  • Solar Circuits (31)
  • Timer Circuits (63)
  • Transistor Circuits (178)
  • Transmitter Circuit (19)
  • Tutorials (33)
  • Voltage Regulator (67)
  • Water Level Controller (10)

Recent Posts

  • Low Current Controlled Battery Charger Circuit using LM723 IC
  • 741 Op-Amp Treble Booster Circuit
  • Simple Diode and Transistor Based Audio Limiter Circuit
  • Simple 500mW Speaker Driver Circuit
  • Easy DIY LM386 Audio Amplifier Circuit

Recent Comments

  1. Admin-Lavi on High Voltage Fence Charger Circuit
  2. etere on High Voltage Fence Charger Circuit
  3. Admin-Lavi on High Voltage Fence Charger Circuit
  4. egidio grzinic on High Voltage Fence Charger Circuit
  5. Logic OR Gate Circuit using Transistors - Circuit Ideas for You on Automatic Street Light Circuit using LDR

Copyright © 2026 | New Circuit Ideas