BI - DIRECTIONAL VISITOR COUNTER USING 8051 (AT89S52)

by Kavinchakkaravarthi in Circuits > Microcontrollers

2283 Views, 1 Favorites, 0 Comments

BI - DIRECTIONAL VISITOR COUNTER USING 8051 (AT89S52)

TITLE CARD.jpg

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: Getting Started!

Slide2.JPG

*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

Stem 2: Circuit Conncetions

Slide4.JPG
Slide3.JPG

Connect the IR sensors as shown in the circuit diagram.

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: and the Final Circuit....

bdvc.jpg

This this final output of the Bi-directional visitor counter