Bidirectional Count using 8051 Microcontroller

Published on . Written by

Bidirectional Count using 8051 Microcontroller
The IR Sensor finds its application in many application fields, in industries the mass production count of the product is done by human beings. And other is meeting hall or public meeting where the visitor count is essential and difficult to count. So IR sensor is implemented to count the production in industries and also the visitor count who enters and exit.

Read more..
You need the Microcontroller to control the operation of the input and output is to be connected to it, Infrared sensor used to sensor the product,visitor.

Project Description:

  1. AT89S52: The AT89S52 is a low power, high performance CMOS 8-bit microcontroller with 8k bytes of in-system programmable flash memory. This is a powerful microcontroller which provides high flexibility and cost effective solution to many embedded control applications. It has the following standard features: 8K bytes of flash, 256 bytes of RAM, 32 I/O lines, watchdog timer, 2 data pointers, 3 16-bit timers/counters, on-chip oscillator and clock circuitry.
  2. Infrared sensor: An infrared sensor is an electronic instrument which is used to sense certain characteristics of its surroundings by either emitting and/or detecting infrared radiation.Infrared sensors are also capable of measuring the heat being emitted by an object and detecting motion.

  3. Skyfi Labs Projects
    The wavelength region which ranges from 0.75 to 3µm is known as the near infrared regions. The region between 3 and 6µm is known as the mid-infrared and infrared radiation which has a wavelength greater higher than 6µm is known as far infrared.Infrared technology finds applications in many everyday products.

  4. LCD : A liquid-crystal display is a flat-panel or the other electronically modulated optical device that the light-modulating properties of liquid crystal.LCDs are available to display present words, digits, and seven-segents display.
  5. Battery: Battery used power up the controller board lead acid battery is used.

Project Implementation:

  1. Connect the LCD Dispaly to the PORT 0 of the Microcontroller
  2. Connect the 2 Infrared sensor to the 5v, Ground and output(signal) pin to input PORT of the controller
  3. Place the sensor seperately to identify the enter and exist.
  4. You need to program as the sensor gets signal counter should increase and second sensor has signal the conunter should decreases.
Project Brief: The control unit checks the signal from the sensors. If the sensor has the signal then it is given to microcontroller and then the counter will be increased. And if the exist sensor has the signal then the counter will be decreased. There will also be a LCD display mounted which displays the value of sensor sensed(i.e.Visitor)

Software requirements:

  1. Keil Uvision 3: Keil Software makes C compilers, macro assemblers, real-time kernels, debuggers, simulators, integrated environments and evaluation boards for the 8051, 251, ARM and XC16x/C16x/ST10 microcontroller families
  2. Programming language:Embedded C language

Kit required to develop Bidirectional Count using 8051 Microcontroller:
Technologies you will learn by working on Bidirectional Count using 8051 Microcontroller:


Any Questions?


Subscribe for more project ideas