logo elektroda
logo elektroda
X
logo elektroda

Automatic Counting of Ping Pong Balls Without Image Processing or RFID

189 11
ADVERTISEMENT
  • #1 21665455
    Shimi tapiero
    Anonymous  
  • ADVERTISEMENT
  • #2 21665456
    Sarah Harris
    Anonymous  
  • ADVERTISEMENT
  • #3 21665457
    Shimi tapiero
    Anonymous  
  • #4 21665458
    David Figueroa
    Anonymous  
  • ADVERTISEMENT
  • #5 21665459
    Steve Lawson
    Anonymous  
  • #6 21665460
    Mark Harrington
    Anonymous  
  • #7 21665461
    Stephen Van Buskirk
    Anonymous  
  • #8 21665462
    Mark Harrington
    Anonymous  
  • #9 21665463
    Steve Lawson
    Anonymous  
  • #10 21665464
    Mark Harrington
    Anonymous  
  • ADVERTISEMENT
  • #11 21665465
    JAWED MATEEN
    Anonymous  
  • #12 21665466
    Shimi tapiero
    Anonymous  

Topic summary

✨ The discussion addresses the challenge of automatically counting a fixed number of ping pong balls without using image processing or RFID technology. Various solutions are proposed, including weighing the balls collectively, using mechanical gating systems with solenoids and micro switches or infrared beams to count balls passing through a pipe, and employing a funnel with a photocell and phototransmitter/photodetector pair (e.g., QSE113 and QEE113) to detect balls as they exit. Additional ideas include embedding small metal balls inside the ping pong balls to enable counting via metal detectors. Some responses emphasize controlling ball flow to prevent multiple balls triggering the sensor simultaneously, suggesting mechanical gates or air suspension methods. More unconventional suggestions involve filling balls with noble gases for optical detection or using acoustic methods to estimate ball count by sound analysis. The discussion also touches on microcontroller-based counters with BCD displays and the potential for buzzer or visual alerts upon reaching a maximum count.

FAQ

TL;DR: Easiest method: use a funnel into a single-file chute and an off-center IR beam-break that gives ~50% output duty; “No moving parts.” [Elektroda, Stephen Van Buskirk, post #21665461]

Why it matters: You can count ping pong balls accurately without cameras or RFID using low-cost sensors and simple mechanics, ideal for hobby and production lines.

Quick-Facts

Quick Facts

What’s the simplest non-camera way to count ping pong balls?

Feed balls through a funnel into a single-file chute and place an IR LED–phototransistor pair off-center at the exit. Each ball blocks the beam, producing a clean pulse you can count with a small microcontroller or counter IC. No moving parts are required for basic operation. [Elektroda, Stephen Van Buskirk, post #21665461]

How do I prevent double counts when two balls arrive together?

Add a mechanical gate near the inlet, or use a twin-gate: one holds the next ball while the lower gate releases one at a time. Size the pipe just over ball diameter to enforce single-file flow. As one member put it, “ONE BALL ENTERS ONE BALL LEAVES.” [Elektroda, Mark Harrington, post #21665460]

What parts do I need for a beam-break counter?

Use an IR emitter (e.g., QEE113), a phototransistor receiver (e.g., QSE113), a pull-up resistor, and a microcontroller or simple counter/display. Mount the pair off-center so the output toggles during passage, producing a ~50% duty signal per ball. Shield from ambient light with a short, matte-black tube. [Elektroda, Stephen Van Buskirk, post #21665461]

Can I count balls by weight instead of sensors?

Yes. Place a known number of balls on a scale and compute counts from mass if ball mass is consistent. This is best for batch checks, not flow counting. Mechanical vibration and variable ball mass can reduce accuracy. [Elektroda, Sarah Harris, post #21665456]

Is RFID a good idea for counting ping pong balls?

Not for this scenario. The OP tested the concept and found RFID both unreliable and costly. Unless you require identity per ball, use optical or simple mechanical methods for better robustness and price. [Elektroda, Shimi tapiero, post #21665455]

How should I place the sensor to get reliable pulses?

Mount the emitter and detector off the centerline so the ball partially interrupts the beam. This geometry yields a pulse that is on about half the time as the ball exits, which simplifies edge detection in code. [Elektroda, Stephen Van Buskirk, post #21665461]

How fast can such a system count?

Throughput depends on chute slope and gating. With a single-file feed and a gate, you get one pulse per release with clear separation. The off-center placement creates a stable, ~50% duty pulse, improving reliable high-rate counting without moving parts. [Elektroda, Stephen Van Buskirk, post #21665461]

What about using capacitance to count?

You can pass balls between two metal plates and monitor capacitance changes as they transit. This avoids optics but requires careful shielding and calibration. It’s a creative path if you want contactless sensing beyond IR. [Elektroda, Steve Lawson, post #21665463]

Could sound or vibration help with counting?

Yes. One idea is to let balls hit a slanted plate and detect each impact with a microphone, then count the hits. Signal processing must reject echoes and multiple bounces. Protect the sensor from mechanical shocks. [Elektroda, Steve Lawson, post #21665463]

How do I build it? (3-step quick start)

  1. Funnel balls into a pipe slightly larger than ball diameter; add a top gate for singles.
  2. Mount an off-center IR emitter–detector across the exit to create a beam-break.
  3. Feed pulses to a small microcontroller and show counts on a simple BCD/LED display. [Elektroda, Mark Harrington, post #21665460]

What failure modes should I anticipate?

Watch for two balls entering together, false counts from ambient light, and jams at diameter transitions. A gate or twin-gate mitigates doubles; shrouds and alignment mitigate light leaks. Regulate drop speed to maintain spacing. [Elektroda, Mark Harrington, post #21665462]

Can I embed something inside the balls to improve detection?

Yes. Insert a small steel ball bearing inside each ball, then detect them with a metal detector or inductive coil as they pass a checkpoint. This enables counting without optics. [Elektroda, JAWED MATEEN, post #21665465]

Do I need moving parts?

Not necessarily. An off-center IR beam-break with a funnel provides clean pulses with no moving parts. Add gates only if you see double-feeds or need stricter control. “No moving parts.” [Elektroda, Stephen Van Buskirk, post #21665461]

How should I display the count to users?

Use a microcontroller (e.g., small 8-bit MCU) driving a BCD or LED display for readability. Trigger a buzzer or light when a target count is reached. Keep wiring short and shielded near sensors. [Elektroda, Mark Harrington, post #21665460]
ADVERTISEMENT