



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




1. Introduction In today's industrial and commercial environments, counting objects accurately and automatically is a critical requirement. Whether it is counting products on a conveyor belt, monitoring the number of vehicles passing through a toll gate, or tracking the flow of people entering a building, an automated object counter provides a reliable, fast, and error-free solution compared to manual counting. This microproject presents the design and development of an Object Counter Circuit using an Arduino Uno microcontroller and an IR (Infrared) sensor module. The IR sensor detects the interruption of an infrared beam caused by a passing object. Each interruption is registered as one count, which is displayed in real-time on a 16×2 LCD display. An optional buzzer provides an audio beep for every detected object, making the system both visual and auditory. The working principle is based on the behavior of IR light: the IR transmitter continuously emits infrared light, and the IR receiver detects it. When an object passes between the transmitter and receiver, the beam is broken and the receiver output changes state. The Arduino detects this state change through edge detection logic (falling-edge detection) and increments the counter. This project is simple to build, low in cost, and has extensive real-world applications in manufacturing, logistics, retail, transportation, and security systems. It also serves as an excellent foundation for learning about digital input processing, interrupt-driven programming, and human-machine interfaces on embedded platforms.
2. Components and Materials Required The following components are required to build the object counter circuit. All components are easily available at local electronics shops or online platforms such as Amazon, Robu.in, or Flipkart. Sr. No. Component / Material Specification Quantity Approx. Cost (₹) 1 Arduino Uno R3 ATmega328P, 5V, 16 MHz 1 ₹ 350 2 IR Sensor Module FC-51, Digital Output, 5V 1 ₹ 60 3 16×2 LCD Display HD44780 Controller, 5V 1 ₹ 200 4 Buzzer (Active) 5V DC, 85 dB 1 ₹ 40 5 Breadboard Full size, 830 tie-points 1 ₹ 60 6 Connecting Wires (Jumpers) M-M & M-F sets 10 ₹ 20 7 USB A to B Cable For Arduino programming 1 ₹ 20 8 9V Battery + Connector For standalone operation 1 ₹ 40 9 Computer / Laptop With Arduino IDE installed 1 — TOTAL ESTIMATED COST ₹ 790
4. Circuit Diagram The circuit connections between the Arduino Uno, IR sensor module, 16×2 LCD display, and buzzer are described in the pin connection tables below. Figure 1: Circuit Diagram of Object Counter Circuit Using Arduino
5. Program Code The following Arduino sketch implements object detection, counting, LCD display, and buzzer feedback: #include LiquidCrystal lcd (7, 8, 9, 10, 11, 12); int sensorPin = 2; int count = 0; int sensorState = 0; int lastState = 0; void setup () { pinMode(sensorPin, INPUT); lcd.begin(16, 2); lcd.print("Object Counter"); } void loop () { sensorState = digitalRead(sensorPin); if (sensorState == LOW && lastState == HIGH) { count++; lcd.clear(); lcd.setCursor(0, 0); lcd.print("Count:"); lcd.setCursor(0, 1); lcd.print(count); delay (200); } lastState = sensorState; }
7. Applications The object counter circuit finds applications across a wide range of industries and everyday scenarios: