The IR sensor emits infrared light which reflects back when an object passes in front of it. The Arduino Nano reads this signal from the sensor, increments the internal count, and updates the real-time count value on the I2C OLED display.
Why Build This
Great beginner project for learning microcontrollers
Useful for simple automated counting tasks
Inexpensive and easy-to-source components
Real-World Application
This automated counter can be used for inventory management, tracking visitors entering an exhibition or room, and monitoring production line items on a conveyor belt.
Skills You'll Learn
interfacing infrared sensors
driving i2c oled displays
handling digital input signals
real-time data counting logic
Safety Precautions
Ensure correct polarity when connecting the power and ground wires to prevent short circuits on the breadboard. Disconnect the power supply from the Arduino Nano before making any wiring modifications or hardware changes.
Technology Tags
ARDUINO NANO
IR SENSOR
OLED DISPLAY
BREADBOARD
MICROCONTROLLER
Frequently Asked Questions
Yes, you can adapt the code and wiring for other microcontroller boards like the Arduino Uno or ESP32, provided they support I2C and digital inputs.
You can connect a buzzer to a digital pin on the Arduino Nano to emit a short beep every time an object is successfully detected and counted.
The counting speed is generally limited by the response time of the IR sensor and the refresh rate of the OLED display, making it suitable for slow to moderate speed items.
This page is part of Kitkraft's Project Hub — a curated collection of electronics & robotics projects gathered from the maker community to help students and hobbyists discover and learn to build. Kitkraft does not claim authorship of the original project, and makes no representation as to the accuracy, completeness or safety of third-party source material. The summary and "How It Works" explanation above are AI-generated, rewritten with reference to the original tutorial — not a reproduction of it. Full credit and a direct link to the original source are provided above. If you're the original creator and have a concern about how your work is represented here, please contact us and we'll address it promptly.