Menu

A smart product counter with Arduino & Python
📰

A smart product counter with Arduino & Python

Adafruit Industries – Makers, hackers, artists, designers and engineers!·Anne Barela·12 days ago
#pztLtEtl
#adafruit#arduino#sensor#count#detection
Reading 0:00
15s threshold

Smart Product Counter with Arduino & Python

saya built a product counting system with an Arduino Nano and a Python desktop app, and wrote it up on Hackster.io. An IR obstacle sensor watches for products passing in front of it, and the count updates in real time.

The hardware is an Arduino Nano, an IR obstacle detection sensor, a buzzer, a breadboard and jumper wires. When a product passes the sensor, the Arduino adds one to the counter, sends the detection event and the current count over USB serial at 9600 baud, and sounds the buzzer briefly to confirm the detection.

On the computer side, a Python graphical interface reads the serial data and shows the total count, the connection status and a log of detections. START, STOP and RESET controls run the counting, and the log can be saved as a CSV report. The idea is a counter for small production lines, workshops or inventory monitoring.

See the video below and more at hackster.io.