Bidirectional Visitor Counter using Arduino

Share This

Hello friends! Welcome back to ElectroDuino. This blog is based on the Bidirectional Visitor Counter with Automatic Gate Control System. Here we will discuss Introduction to Bidirectional Visitor Counter Using Arduino, Project Concept, Block Diagram, Components Required, Circuit Diagram, working principle, and Arduino code.

Introduction

Many times, we have seen a gatekeeper in a shopping mall, hall, large restaurant, office, or parking area holding a 4-digit hand tally counter to manually count the number of visitors to these places. But this is a very tedious task and there is a possibility of many calculation errors in this process.

 To overcome this problem, in this project we will be going to build a Bidirectional Digital Visitor Counter. It is used to count the number of Visitors entering a shopping mall, hall, large restaurant, office, or parking area at the entrance gate. This system counts the total number of visitors/people entering through the entry gate and also the total number of visitors/people leaving through the exit gate. Also, it counts the total number of visitors/people currently present inside the place.

 

Project Concept/Overview

This is an Arduino based very simple project, a few major components are needed to build this project. These major components are Arduino, two IR sensors, and an LCD display. Here we are using an Arduino board which acts as the main microcontroller to control this system. A pair of IR sensors are used to detect the visitor from both directions, i.e., it detects the number of entering visitors and the number of exiting visitors. The LCD Display is used to display the total number of entering visitors, the total number of exiting visitors, And also shows the total number of visitors currently present inside the place.

Block Diagram of Bidirectional Visitor Counter using Arduino

Block Diagram of Bidirectional Visitor Counter Using Arduino, Project Concept, Block Diagram, Components Required, Circuit Diagram, working principle, and Arduino code.
Block Diagram of Bidirectional Visitor Counter using Arduino

Components Required

Components NameQuantity
Arduino NANO1
IR Sensor Module2
16×2 LCD Display Module1
220 ohm Resistor (R1, R2)2
10K ohm Potentiometer (VR1)1
Red LED 1
5v Buzzer1
9v Power Supply1
Rocker Switch1
PCB board1
Connecting wiresAs required in the circuit diagram

Tools Required

Tools NameQuantity
Soldering Iron1
Soldering wire1
Soldering flux1
Soldering stand1
Multimeter1
Desoldering pump1
Wirecutter1

Software Required

Arduino IDE (Integrated Development Environment)

Arduino IDE (Integrated Development Environment)

Circuit Diagram of Bidirectional Visitor Counter using Arduino

Circuit Diagram of Bidirectional Visitor Counter Using Arduino, Project Concept, Block Diagram, Components Required, Circuit Diagram, working principle, and Arduino code.
Circuit Diagram of Bidirectional Visitor Counter using Arduino

Working Principle

First of all, we need to set one IR sensor (IR sensor-1) at the entry gate and another one (IR sensor-2) set at the exit gate. Normally when IR sensors do not detect any obstacle, it produces a HIGH (1) output value from the Output Pin.

When a visitor enters through the entry gate the IR sensor-1 detects the visitor (obstacle) and produces a Low (0) output value from the Output Pin. Then the Arduino read this value and counts 1+ using the code. Similarly, When the IR sensor-1 detects another visitor (obstacle), the Arduino increment the counting by 1+. In this way every time the Arduino adds +1 in the count when a visitor passes through this gate and calculates the total number of entering visitors.

 In the same way, when a visitor leaves through the exit gate the IR sensor-2 detects the visitor (obstacle) and produces a Low (0) output value from the Output Pin. Then the Arduino read this value and counts 1+ using the code. Similarly, When the IR sensor-2 detects another visitor (obstacle), the Arduino increment the counting by 1+. In this way every time the Arduino adds +1 in the count when a visitor passes through this gate and calculates the total number of exiting visitors.

Every time Arduino Subtracts the total number of entering visitors from the total number of exiting visitors to calculate the total number of visitors currently present inside the place.

After counting and calculating all numbers the Arduino sends data to the 16×2 LCD Display. The LCD Display shows the total number of entering visitors, the total number of exiting visitors, and the total number of visitors currently present inside the place. The LED starts glowing when no one is present inside that place.

Arduino Code

 

Share This

Leave a Reply

Your email address will not be published.