Introduction: BI - DIRECTIONAL VISITOR COUNTER USING 8051 (AT89S52)

The objective of this project is to count the number of visitors entering and leaving a room and update the details to an LCD display.

This project consists of AT89S52 microcontroller, two IR sensors and LCD display. The IR sensors detects the external events and the output signals are sent to the microcontroller. The microcontroller uses these signals for the counting operation based on the algorithm written in it. The counter values are then displayed using a 16×2 LCD display.

Supplies

AT82S52 ......................... 1

IR Sensor ........................ 2

16*2 LCD Display ........... 1

Step 1: Step 1: Getting Started!

*If you have the 8051 development board then skip this step

The basic bare metal programming configuration is explained in my another instructable. You can access it by clicking the link : PROGRAMMING-AT89S52-USING-ARDUINO

Step 2: Stem 2: Circuit Conncetions

Connect the IR sensors as shown in the circuit diagram.

Step 3: Step 3: Programming the Microcontroller

As mentioned above see my previous instructable to know how to program AT89S52 using Arduino.

download the attached code and upload it to the microcontroller.

Step 4: Step 4: and the Final Circuit....

This this final output of the Bi-directional visitor counter