Zbotic Logo Zbotic Logo
  • Home
  • Shop
  • Sale
  • 3D Print Service
  • PCB Service
  • B2B
  • Blogs
  • Contact Us
0 0

View Wishlist Add all to cart

0 0
0 Shopping Cart
Shopping cart (0)
Subtotal: ₹0.00

View cartCheckout

  • Shop
  • About Us
  • Contact Us
  • Reseller
  • Blogs
020 69134444
1800 209 0998
[email protected]
Help Desk
Facebook Twitter Instagram Linkedin YouTube
Zbotic Logo Zbotic Logo
0 0

View Wishlist Add all to cart

0 0
0 Shopping Cart
Shopping cart (0)
Subtotal: ₹0.00

View cartCheckout

All departments
  • 3D Print Service
  • 3D Printer
  • Batteries & Chargers
  • Development Boards
  • Drone Parts
  • EBike parts
  • Sensor Modules
  • Electronic Components
  • Electronic Modules
  • IoT and Wireless
  • Mechanical Parts and Workbench Tools
  • Motors & Drivers & Pumps & Actuators
  • DIY and Robot Kits
  • Show more
  • Home
  • Shop
  • Sale
  • 3D Print Service
  • PCB Service
  • B2B
  • Blogs
  • Contact Us
Return to previous page
Home Security & Surveillance

Parking Lot Security: IR Barrier Beam and Counter System

Parking Lot Security: IR Barrier Beam and Counter System

March 11, 2026 /Posted byJayesh Jain / 0

Table of Contents

  • IR Barrier Beam Concept
  • Components
  • Entry-Exit Counter Logic
  • Arduino Counter Code
  • Gate Integration
  • Indian Parking Context
  • FAQ

IR Barrier Beam Concept

An IR barrier beam system uses an infrared transmitter on one side of a lane and IR receiver on the other. When a vehicle passes, it breaks the beam, triggering a counter or alarm. Unlike PIR sensors that detect heat, IR beams are directional and immune to ambient temperature changes – ideal for outdoor Indian parking lots in summer heat (40-45 degrees C). Two beams placed 2-3m apart in the same lane allow direction detection: the beam that breaks first determines whether the vehicle is entering or exiting.

Recommended: MH-SR602 Mini Motion Sensor Detector Module For Arduino – MH-SR602 PIR Motion Sensor – combine with IR beam for dual-technology vehicle detection that reduces false triggers from stray animals or debris.

Components

  • 940nm IR LED emitter + IR phototransistor pairs (Rs 5-15 per pair)
  • LM393 comparator IC for reliable threshold detection
  • Arduino Uno or ESP32
  • 16×2 LCD with I2C for space count display
  • 3-colour LED or WS2811 LED strip for Full/Available indicator
  • Relay module for gate barrier control (Rs 20-50)
  • IP65+ weatherproof enclosure for outdoor transmitter/receiver units

Entry-Exit Counter Logic

Place two IR beam pairs 2m apart: Beam A (outer/road-side) and Beam B (inner/parking-side). Entry: Beam A breaks first, then Beam B within 3 seconds = count +1. Exit: Beam B breaks first, then Beam A = count -1. Timeout resets the sequence if only one beam triggers (stationary vehicle, debris, animal).

Arduino Counter Code

#define BEAM_A 2
#define BEAM_B 3
#define GATE   8
int count=0, maxSpaces=20;
bool aTriggered=false;
unsigned long aTime=0;
void setup(){
  pinMode(BEAM_A,INPUT_PULLUP);
  pinMode(BEAM_B,INPUT_PULLUP);
  pinMode(GATE,OUTPUT);
}
void loop(){
  bool a=(digitalRead(BEAM_A)==LOW);
  bool b=(digitalRead(BEAM_B)==LOW);
  if(a && !aTriggered){ aTriggered=true; aTime=millis(); }
  if(aTriggered && b && (millis()-aTime)<3000){
    count=min(count+1,maxSpaces);
    aTriggered=false;
    if(count<maxSpaces) openGate();
  }
  if(aTriggered && (millis()-aTime)>3000) aTriggered=false;
}
void openGate(){ digitalWrite(GATE,HIGH); delay(5000); digitalWrite(GATE,LOW); }

Gate Integration

Connect relay to parking barrier gate control input. Most Indian parking barriers have a 12V trigger input: apply 12V for 500ms to open. The relay NO/COM contacts bridge to this input. Add a separate exit loop at the exit lane for automatic exit without pressing a button. Once the exit beam breaks, keep gate open for 6 seconds before closing to allow the full vehicle to pass.

Indian Parking Context

  • Two-wheelers vs four-wheelers: Indian parking lots accommodate both. Mount IR beams at 30-40cm height for two-wheelers or 50-70cm for cars only. For mixed parking, use two beams at different heights.
  • Monsoon flooding: Ground-level IR transceivers flood during heavy monsoon. Mount in IP65 weatherproof boxes at 20cm+ above typical flood level.
  • Dust and pollution: Indian roads generate high dust levels. Clean IR lens surfaces monthly. Enclosed transceivers with sealed glass window reduce cleaning frequency significantly.

Frequently Asked Questions

What is the maximum beam distance for IR barrier sensors?

Standard 5mm IR LED/phototransistor pairs work reliably up to 2-5m outdoors. Beyond 5m, use focused IR beam modules with lens (commercial photoelectric beams) that reach 20-100m. For a typical parking lane (3-6m wide), standard pairs are sufficient.

How do I prevent false counts from slow-moving motorcycles?

Add minimum break duration filter: count as valid vehicle only if both beams trigger in sequence within 0.5-10 seconds. If a beam stays broken for more than 15 seconds continuously, assume a stationary object blocking the beam and reset without counting.

Can I connect this to an apartment management app?

Yes – replace Arduino with ESP32 and add a web server with JSON API returning current count and available spaces. Most Indian apartment management apps (NoBrokerHood, MyGate, Apna Complex) offer API integration for third-party sensors.

Why does my counter over-count large trucks?

Large vehicles with complex shapes can create multiple beam-break events. Add a holding time filter: after first valid entry sequence, ignore all triggers for 5 seconds before counting again. This prevents multi-counting of articulated vehicles or vehicles with roof racks.

Shop Security & Surveillance at Zbotic

Tags: IR barrier beam counter, parking counter Arduino, parking gate automation India, parking lot security, vehicle counter sensor
Share Post
  • Facebook
  • Linkedin
  • Whatsapp
Smart Agriculture Project for ...
blog smart agriculture project for engineering students india 599777
blog panic button circuit wireless emergency alert system build 599784
Panic Button Circuit: Wireless...

Related posts

Svg%3E
Read more

Trail Camera: Wildlife and Property Monitoring India

April 1, 2026 0
Table of Contents Trail Cameras for Indian Wildlife PIR-Triggered Camera Design ESP32-CAM Configuration for Trail Use Night Vision with IR... Continue reading
Svg%3E
Read more

Solar Powered Security Camera: Off-Grid Surveillance

April 1, 2026 0
Table of Contents Off-Grid Surveillance Needs in India Solar Panel and Battery Sizing Power Management Circuit ESP32-CAM Low Power Optimisation... Continue reading
Svg%3E
Read more

Remote Viewing Setup: Access Cameras from Anywhere

April 1, 2026 0
Table of Contents Remote Viewing Options P2P Cloud vs Port Forwarding Dynamic DNS Setup VPN for Secure Access Mobile App... Continue reading
Svg%3E
Read more

Motion Detection Zones: Reduce False Alarms

April 1, 2026 0
Table of Contents The False Alarm Problem How Motion Detection Works in Cameras Setting Detection Zones Sensitivity Adjustment Object Size... Continue reading
Svg%3E
Read more

Security Camera Placement: Best Positions for Coverage

April 1, 2026 0
Table of Contents Camera Placement Principles Height and Angle Guidelines Coverage Overlap Strategy Indian Home Layouts Commercial Property Placement Avoiding... Continue reading

Add comment Cancel reply

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

Facebook Twitter Instagram Pinterest Linkedin Youtube

Get the latest deals and more.

Download on Google Play Download on the App Store

Call us: 020 69134444 / 1800 209 0998

Monday - Saturday 09:30 AM - 06:00 PM
For Technical Supports Email: [email protected]
For Sales / Enquiries Email: [email protected]

  • My Account

    • Cart

    • Wishlist

    • Checkout

    • My Orders

    • Track Order

    • My Account

  • Information

    • FAQs

    • Blogs

    • Career

    • About Us

    • Contact Us

    • Payment Options

  • Policies

    • Privacy Policy

    • Terms & Conditions

    • GST Input Tax Credit

    • Shipping Return Policy

    • E-Waste Collection Points

    • Our Sitemap

© Zbotic.in is registered trademark of Moxie Supply Pvt Ltd – All Rights Reserved
Login
Use Phone Number
Use Email Address
Not a member yet? Register Now
Reset Password
Use Phone Number
Use Email Address
Register
Already a member? Login Now