Embedded Systems

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. 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.

Latest projects on Embedded Systems

Want to develop practical skills on Embedded Systems? Checkout our latest projects and start learning for free


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.

How to build Embedded Systems projects Did you know

Skyfi Labs helps students learn practical skills by building real-world projects.

You can enrol with friends and receive kits at your doorstep

You can learn from experts, build working projects, showcase skills to the world and grab the best jobs.
Get started today!


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:
Bidirectional Count using 8051 Microcontroller
Skyfi Labs Last Updated: 2022-05-19





Join 250,000+ students from 36+ countries & develop practical skills by building projects

Get kits shipped in 24 hours. Build using online tutorials.

Subscribe to receive more project ideas

Stay up-to-date and build projects on latest technologies