SlideShare a Scribd company logo
Bidirectional Visitor Counter
using Arduino
Author
Yogeshwaran
Build a Bidirectional Counter Using
Arduino and IR Sensors
An RFID (Radio Frequency
Identification) door lock system
allows access control using RFID
cards or tags.
When an authorized tag is
scanned, the door unlocks, and
for unauthorized tags, access is
denied.
This system is commonly used
in homes, offices, and restricted
areas to enhance security.
Understanding the Bidirectional Counter
A bidirectional counter tracks movement
in both directions using two IR sensors.
When an object or person moves past both
sensors in a specific order, the system
determines the direction and updates the
count accordingly.
The working principle relies on detecting
which IR sensor is triggered first to
determine whether the count increases or
decreases.
Components Needed for the Project
The key components for building this
project include:
Arduino Uno – Controls the counting
logic.
Two IR Sensors – Detect movement and
direction.
16x2 LCD with I2C Module – Displays
the count.
Resistors, Wires, and Power Supply –
For proper circuit operation.
Each component plays a crucial role in
ensuring accurate bidirectional counting.
Once these components are gathered,
the next step is wiring them together
following the circuit diagram.
Connecting the Components
The IR sensors are placed
in sequence at a fixed
distance.
When an object moves past
the sensors, they send
signals to the Arduino.
The LCD is connected via
the I2C interface for
displaying the count.
The circuit is powered using
a 5V supply from the
Arduino board.
Code Overview
The Arduino code performs the
following tasks:
Detects IR sensor signals using
interrupts.
Determines movement
direction based on which
sensor is triggered first.
Updates the count accordingly
and displays it on the LCD.
The LCD updates dynamically
with the latest count.
For a more in-depth tutorial,
check out this article:
https://circuitdigest.com/microcontroll
er-projects/how-to-build-a-
bidirectional-counter-using-arduino-
and-ir-sensors
www.circuitdigest.com
Robotics Projects|Arduino Projects|Raspberry Pi
Projects| ESP32 Projects | AI Projects | IoT Projects

More Related Content

PDF
How to Make an RFID Door Lock System using Arduino
PDF
How to Build a Speed Sensor using Arduino?
PPT
Smart Sensor
PPT
Smart sensors
PPTX
Light Automation System Using Bidirectional Visitor Counter
PPTX
Light Automation System Using Bidirectional Visitor Counter
PPT
1693579833307_Sensors.ppt
PPTX
Automatic Railway Gate Control System with Arduino
How to Make an RFID Door Lock System using Arduino
How to Build a Speed Sensor using Arduino?
Smart Sensor
Smart sensors
Light Automation System Using Bidirectional Visitor Counter
Light Automation System Using Bidirectional Visitor Counter
1693579833307_Sensors.ppt
Automatic Railway Gate Control System with Arduino

Similar to How to Build a Bidirectional Counter Using Arduino and IR Sensors (20)

PDF
PDF
SLIDE PROJECT final.pdfxjnvkjsdhkjchsjkfnczxjkc
PPTX
SLIDE PROJECT prsentaion for free dfsdfsdf
PPTX
PPT For Attendance System.pptx using micro
PPTX
Internet of things
PPTX
Internet of things for smart cities
PPTX
Bi directional visitor counter
PPTX
Automated-Entry-and-Attendance-Counter_FINAL.pptx
PPTX
Robotics and Automation Using Arduino
PPTX
IoT based weather monitoring system.pptx
PDF
Arduino Based Smart Home Automation System
DOCX
ir sensor.docx
DOCX
A bi directional visitors counter
PPTX
Industry 4.0 PPT showing use of digitalT
PDF
IRJET-Arduino Based Voice Controlled System
PPTX
Automatic_room_light_controller_ PPT.pptx
PDF
Automatic Door Opener using PIR Sensor
PPTX
Distribution System and Monitoring
PDF
Biometric Identification using Opencv Based on Arduino
PDF
IRJET- PC Controlled Wireless Robot for Detecting Human Presence
SLIDE PROJECT final.pdfxjnvkjsdhkjchsjkfnczxjkc
SLIDE PROJECT prsentaion for free dfsdfsdf
PPT For Attendance System.pptx using micro
Internet of things
Internet of things for smart cities
Bi directional visitor counter
Automated-Entry-and-Attendance-Counter_FINAL.pptx
Robotics and Automation Using Arduino
IoT based weather monitoring system.pptx
Arduino Based Smart Home Automation System
ir sensor.docx
A bi directional visitors counter
Industry 4.0 PPT showing use of digitalT
IRJET-Arduino Based Voice Controlled System
Automatic_room_light_controller_ PPT.pptx
Automatic Door Opener using PIR Sensor
Distribution System and Monitoring
Biometric Identification using Opencv Based on Arduino
IRJET- PC Controlled Wireless Robot for Detecting Human Presence
Ad

More from CircuitDigest (20)

PDF
Set a Static IP on Raspberry Pi TutorialPPT
PDF
Interfacing the A7672S GNSS Module With Arduino PDF
PDF
Arduino GPS Tracker Using SIM800L and NEO6M PPT
PPTX
Arduino Based Gas Leakage Detector Project
PDF
RFID based Attendance System Using Arduino
PDF
Understanding Amplitude Modulation : A Guide
PDF
Flip-Flop in Digital Electronics: Types, Truth Table, Logic Circuit and Pract...
PDF
DIY Gesture Control ESP32 LiteWing Drone using Python
PDF
Build an IoT-based Weather Monitoring System Using Arduino?
PDF
Build a Smart Helmet using Arduino
PDF
ESP32 Air Mouse using Bluetooth and MPU6050
PDF
Hand Gesture Recognition using ESP32 and Python
PDF
How to Build a Desktop Weather Station Using ESP32 and E-ink Display
PDF
Interfacing PMW3901 Optical Flow Sensor with ESP32
PDF
Send SMS with Arduino UNO R4 via Internet
PDF
How to use nRF24L01 module with Arduino
PDF
Complete Overview of Current Transformer Types
PDF
How to build Blind Stick using Arduino Nano and Ultrasonic sensor
PDF
How to Control Servo Motor using Arduino
PDF
How to use L298N Motor Driver with Arduino?
Set a Static IP on Raspberry Pi TutorialPPT
Interfacing the A7672S GNSS Module With Arduino PDF
Arduino GPS Tracker Using SIM800L and NEO6M PPT
Arduino Based Gas Leakage Detector Project
RFID based Attendance System Using Arduino
Understanding Amplitude Modulation : A Guide
Flip-Flop in Digital Electronics: Types, Truth Table, Logic Circuit and Pract...
DIY Gesture Control ESP32 LiteWing Drone using Python
Build an IoT-based Weather Monitoring System Using Arduino?
Build a Smart Helmet using Arduino
ESP32 Air Mouse using Bluetooth and MPU6050
Hand Gesture Recognition using ESP32 and Python
How to Build a Desktop Weather Station Using ESP32 and E-ink Display
Interfacing PMW3901 Optical Flow Sensor with ESP32
Send SMS with Arduino UNO R4 via Internet
How to use nRF24L01 module with Arduino
Complete Overview of Current Transformer Types
How to build Blind Stick using Arduino Nano and Ultrasonic sensor
How to Control Servo Motor using Arduino
How to use L298N Motor Driver with Arduino?
Ad

Recently uploaded (20)

DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PDF
Digital Logic Computer Design lecture notes
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
Construction Project Organization Group 2.pptx
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PPTX
CH1 Production IntroductoryConcepts.pptx
PPTX
UNIT 4 Total Quality Management .pptx
PPTX
web development for engineering and engineering
PPT
Project quality management in manufacturing
PPT
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Digital Logic Computer Design lecture notes
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Construction Project Organization Group 2.pptx
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Operating System & Kernel Study Guide-1 - converted.pdf
Foundation to blockchain - A guide to Blockchain Tech
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
CH1 Production IntroductoryConcepts.pptx
UNIT 4 Total Quality Management .pptx
web development for engineering and engineering
Project quality management in manufacturing
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
CYBER-CRIMES AND SECURITY A guide to understanding

How to Build a Bidirectional Counter Using Arduino and IR Sensors

  • 1. Bidirectional Visitor Counter using Arduino Author Yogeshwaran
  • 2. Build a Bidirectional Counter Using Arduino and IR Sensors An RFID (Radio Frequency Identification) door lock system allows access control using RFID cards or tags. When an authorized tag is scanned, the door unlocks, and for unauthorized tags, access is denied. This system is commonly used in homes, offices, and restricted areas to enhance security.
  • 3. Understanding the Bidirectional Counter A bidirectional counter tracks movement in both directions using two IR sensors. When an object or person moves past both sensors in a specific order, the system determines the direction and updates the count accordingly. The working principle relies on detecting which IR sensor is triggered first to determine whether the count increases or decreases.
  • 4. Components Needed for the Project The key components for building this project include: Arduino Uno – Controls the counting logic. Two IR Sensors – Detect movement and direction. 16x2 LCD with I2C Module – Displays the count. Resistors, Wires, and Power Supply – For proper circuit operation. Each component plays a crucial role in ensuring accurate bidirectional counting. Once these components are gathered, the next step is wiring them together following the circuit diagram.
  • 5. Connecting the Components The IR sensors are placed in sequence at a fixed distance. When an object moves past the sensors, they send signals to the Arduino. The LCD is connected via the I2C interface for displaying the count. The circuit is powered using a 5V supply from the Arduino board.
  • 6. Code Overview The Arduino code performs the following tasks: Detects IR sensor signals using interrupts. Determines movement direction based on which sensor is triggered first. Updates the count accordingly and displays it on the LCD. The LCD updates dynamically with the latest count.
  • 7. For a more in-depth tutorial, check out this article: https://circuitdigest.com/microcontroll er-projects/how-to-build-a- bidirectional-counter-using-arduino- and-ir-sensors www.circuitdigest.com Robotics Projects|Arduino Projects|Raspberry Pi Projects| ESP32 Projects | AI Projects | IoT Projects