Bidirectional Visitor Counter – Arduino Project

Bidirectional visitor counter is one of the most useful and important application based project which can be made using Arduino.

Bidirectional Visitor counters are most commonly used at Mall, stadium or event entrances to count the footfall of the people entering or exiting the place.

It can also be used for automation by controlling the appliances on the basis of no. of people entering/exiting a location. 

This project also features in our Top 10 Minor Projects for ECE/EEE students list.

Step 1 : Components required for Bidirectional Visitor Counter

First we’ll arrange the components required for this project and we have prepared a list below. This project can be made on Arduino Uno board as well as any Arduino based development board as shown in the video. 

Components required :
1) 1 x Arduino Uno R3 Board (Buy here) or 1 x Arduino Development Board (Buy here)
2) 1 x 16×2 LCD with Breakout Board (Buy here)
3) 2 x IR Sensor Module (Buy here)

Optional
1) Power Source (Battery with Snapper/DC Adapter) : 9-12V DC (Buy here)
2) Tools (Buy here)
3) Jumper Wires (Buy here)

Step 2 : Connect the LCD & IR Sensors 

Once we have arranged the components, we’ll start connecting them as per the circuit diagram given below. Personally speaking, we prefer to connect the LCD to Arduino first and then connect any sensor or module. 

Once LCD is connected, adjust the contrast as per requirement and upload the code given below. If the connections are correct, the LCD should show a title of the project (which you can customize). 

Congratulations, you have successfully uploaded the code for Bidirectional Visitor counter. If LCD shows boxes, double check your connections for errors. 

Next you can connect the IR sensors as in the circuit diagram.

Download Codes & Circuit Diagram.  

Step 3 : Understanding the Algorithm of Bidirectional Visitor Counter 

To understand the algorithm, let’s first understand how an IR sensor work. 
IR Sensor consists of a IR LED and IR Receiver and the signal change occurs when IR Light falls on the IR Receiver.

This is based on the reflection from any non black surface. This is calibrated as presence of a person/object and count is accordingly implemented. 

IR-Sensor-Working

Now we use flags and alternately detect whether the person is entering or exiting based on which sensor is detected first. This way we can increment or decrement the count and complete the algorithm of our Bidirectional Visitor Counter Project. 

In case of any questions or queries, feel free to post below.

Subscribe to our YouTube Channel and check out other tutorials of DIY projects.

Watch on YouTube : DIY Arduino Bidirectional Visitor Counter

 

4 thoughts on “Bidirectional Visitor Counter – Arduino Project

  1. lokesh says:

    i am make a BIDIRECTIONAL VISITOR COUNTER – ARDUINO using two ulrasonic sensor but coding not to done so plzz help and provide th code

    • Mandeesh Singh says:

      Hello Lokesh,
      We can work on Ultrasonic based Visitor Counter and fix the code. Please mail us for the service charges.

Leave a Reply

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