• 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 20 November 2025 by Admin-Lavi Leave a Comment

Today parking is big problem everywhere.

Parking become easy with this Arduino idea.

So we made small Arduino Based Smart Car Parking Sensor Circuit.

This system detects car and display free or busy slot automatic.

Arduino brain tell LCD which slot free.

No confusion, no searching, just smart slot information.

Simple circuit with smart working and great for beginners.

Arduino Coding:

#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:

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

Arduino gets power from the circuit.

IR sensors turn ON.

Sensors check for car.

If beam is not blocked then slot is free.

Arduino reads free slot and LCD shows free message.

Servo gate stays closed.

Car comes and Beam breaks.

Sensor output changes and Arduino reads busy slot.

LCD shows busy.

Servo opens gate if any slot is free.

If all slots are busy then Arduino closes the gate.

LCD shows no space.

When car leaves then beam becomes clear again.

Arduino updates slot as free.

System repeats this continuously.

Formulas:

IR sensor works like simple digital switch.

Its output is either 0V or 5V.

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

FreeSlots = 2 – 1 = 1

How to Build:

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

  • Take all the parts as shown in circuit diagram.
  • IR Sensor1 VCC pin connect to Arduino 5V
  • GND pin to Arduino GND
  • OUT pin to Arduino D2
  • IR Sensor2 VCC pin connect to Arduino 5V
  • GND pin to Arduino GND
  • OUT pin to Arduino D3
  • Servo Motor VCC pin connect to (red) wire to 5V
  • GND pin (brown) wire to GND
  • Signal pin (yellow) wire to D9
  • I2C LCD Module VCC pin goes to Arduino 5V
  • GND pin to Arduino GND
  • SDA pin to A4
  • SCL pin to A5

Conclusion:

Arduino Based Smart Car Parking Sensor Circuit is very easy and useful.

IR sensors detect vehicles.

LCD show slot status.

Servo act like gate.

Good for car parking model.

Simple logic with low cost parts and easy to learn.

References:

Smart Car Parking System using Arduino UNO

Filed Under: Arduino Projects, 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

  • Alarm Circuits (45)
  • Amplifier Circuits (67)
  • Arduino Projects (99)
  • Audio Circuits (114)
  • Automobile Circuits (19)
  • Battery Charger Circuits (65)
  • Free Energy (13)
  • Heater and Temperature Controllers (13)
  • High Voltage (1)
  • Indicator Circuits (45)
  • Inverter Circuits (20)
  • IoT projects (1)
  • LDR Circuits (26)
  • LED and Lamps (148)
  • Meters and Testers (30)
  • Motor Controllers (22)
  • Oscillator Circuits (39)
  • Power Supply Circuits (104)
  • Remote Control Circuits (10)
  • Security and Protection (29)
  • Sensors and Detectors (126)
  • Solar Circuits (29)
  • Timer Circuits (41)
  • Transistor Circuits (87)
  • Transmitter Circuit (17)
  • Tutorials (8)
  • Water Level Controller (6)

Recent Posts

  • 12V Battery Low Voltage Alarm Circuit
  • Low Voltage Alert Circuit for 9V Battery
  • Digital Code Lock Circuit using IC 4017
  • Darkness Activated LED Circuit
  • Fan Start 10 Second Delay Timer Circuit

Recent Comments

  1. TDHofstetter on DIY Variable Power Supply Circuit using Arduino
  2. feathbuff on Simple Micro Ampere Meter Circuit
  3. Admin-Lavi on Simple School Project Multimeter Circuit
  4. choke on Simple School Project Multimeter Circuit
  5. Admin-Lavi on Analog to Digital Converter Circuit using IC 555

Copyright © 2026 | New Circuit Ideas