Bi-Directional People Counter Using Arduino UNO
The Bi-Directional People Counter is a smart occupancy monitoring system that counts the number of people entering and exiting a room using two PIR motion sensors. The system is built around an Arduino Uno, which processes the sensor signals and updates the count in real time.
This project is ideal for classrooms, labs, shops, libraries, and offices where monitoring room occupancy is important.
Working Principle
The system uses two PIR sensors placed at the entrance:
-
Entry Detection:If Sensor 1 triggers first and then Sensor 2, the system detects a person entering → Count increases (+1).
-
Exit Detection:If Sensor 2 triggers first and then Sensor 1, the system detects a person leaving → Count decreases (−1).
The Arduino checks the sequence of sensor activation to determine direction.
Display System
A 16×2 LCD display (Non-I2C) is connected in 4-bit mode to the Arduino.
The LCD continuously displays:
People In Room:Count: X
Where X is the live number of people currently inside.
Components Required
-
1 × Arduino UNO
-
2 × PIR Motion Sensors
-
1 × 16×2 LCD Display (Non-I2C)
-
1 × 10k Potentiometer (for LCD contrast)
-
Breadboard
-
Jumper Wires
-
5V Power Supply
Circuit Overview
-
PIR Sensor 1 → Arduino Digital Pin (e.g., D2)
-
PIR Sensor 2 → Arduino Digital Pin (e.g., D3)
-
LCD RS, EN, D4–D7 → Arduino Digital Pins
-
VSS → GND
-
VDD → 5V
-
RW → GND
-
Potentiometer → LCD Contrast
-
All GNDs connected together
Key Features
Applications
-
Smart classrooms
-
Office attendance monitoring
-
Library occupancy control
-
Shopping stores
-
Lab safety management
Advantages
-
Hands-free operation
-
Improves room management
-
Can be upgraded with buzzer alert when room is full
-
Can be extended to IoT for online monitoring
This project can be further enhanced by:
-
Adding a buzzer alert when maximum capacity is reached
-
Integrating automatic light control when room is occupied
-
Uploading occupancy data to a cloud platform for smart building automation
BEGINNER PROJECTS (Foundation Skills)
- Ultrasonic Distance Measurement
- Traffic Light Simulation with 7-Segment Display
- 7-Segment Display Counter
- Kids Piano Circuit (8-Key Version)
- 16×2 LCD Display with Text Output
- LCD I2C to Arduino UNO
- Temperature Measurement using Arduino UNO
- LDR Controlled Street Light
INTERMEDIATE PROJECTS (Build Your Skills)
- Servo Motor Control Using Potentiometer
- DC Motor Speed Control
- Temperature Controlled Fan
- PIR Based Theft Alert System
- LPG Gas Leakage Detection System
- Automatic Door Locking System
- Soil Moisture Based Automatic Watering System
- Simple Digital Clock using Arduino UNO
- Automatic Voting Machine (EVM)
- Joystick Control using Arduino Uno
- RGB Lamp Control using Arduino Uno
ADVANCED PROJECTS (Master Level)
- Home Automation Using Arduino UNO
- Bluetooth RC Car using Arduino Uno
- Obstacle Avoiding Robot
- Line Follower Robot
- Radar System Using Arduino UNO
- Automatic Parking System
- Bi-Directional People Counter using Arduino Uno
- Automatic Plant Watering System
- NeoPixel LED Ring Control using Arduino Uno
- Smart Gloves for Bedridden People

Comments
Post a Comment