basketball score keeper

Hi all,

I'm working on a basketball score keeping project and would like your advice on the best way to approach this.

The project consists of two elements:

1. A basketball hoop

  • needs to detect when ball has passed the ring > was thinking of an IR beam break sensor.
    (optionally it could also detect the direction the ball passed the ring > two ir sensors?).
  • needs to detect when ball hits the board / ring > was thinking of an Fast Vibration Sensor Switch
  • when either happens board lights up > LED strips.
  • needs to keep track of score (ignore 3 pointers etc, just count the number of balls that passed the ring).
  • needs some way of resetting
    I'm guessing one arduino uno / mega board should suffice for this.

2. 4 Screens displaying the score

  • should be able to display score / rss feeds / play animations / videos
  • should respond instantly when a point is detected.
  • keeps track of overall statistics
  • content needs to be able to change remotely

I don't see much issues wiring-up and programming the first part, my main concern is the communication between the two. Ideally they would need to work on remote locations over the internet. I'm a noob when it comes to networking.

What would be your approach?

I'm considering to hook up the arduino to a pc, use the pc to generate a website and display that website on he screens through two raspberry pi's. Do you think that makes sense?

I assume You've seen real basketball games? I would drop the idea applying any equippment to the basket. If duncing players don't pull the sensor down the bounces, mechanical shocks will shorten the lite of such a device. A human finger pressing a button would be the safest.

How would any logic detect whether the ball is thrown from outside the line, 3 points, inside the line, 2 points or penalty shooting, 1 point?

Yes I've seen real basketball games :wink: The application here is not real game context but is more an art installation, 3 pointers, etc don't matter. Nevertheless, shock resistance and longevity something to think about.

So far I have been able to use arduino + firmata + P5.js + P5.bots to make a website that responds instantly to sensor input and counts button presses. This works fine on localhost, but if i connect to the that pc through another device on the same network I get a static version of the website.

I wonder if a long focus refleecting opto, monted in the wooden (plastic?) board holding the basket would work? Maybe an IR obstacle detector?

You can use two break beam sensors, perpendicular to one another, crossing at the middle of the hoop right above (or below) it. That way when the ball falls through the hoop it breaks both beams, but only when it falls through both beams are broken. If you miss the hoop only one (or no) beam gets broken. No sensor on the hoop!

You may have wrong counts when the ball bounces off the hoop, or a few times on the hoop before falling through. That can be addressed with basic button debounce code - just make the timeout in which new triggers are ignored a bit longer than the common 10-50 ms as used for buttons.

wvmarle:
You can use two break beam sensors, perpendicular to one another, crossing at the middle of the hoop right above (or below) it.

Neat idea, but where would you mount them?

If not on the hoop itself (for safety and durability) then one end of each beam will be out in the air above the playing field! :astonished:

Paul__B:
Neat idea, but where would you mount them?

If not on the hoop itself (for safety and durability) then one end of each beam will be out in the air above the playing field! :astonished:

That's indeed a problem.

Whether it's feasible depends on the overall environment it's in. Opposite walls come to mind, if not too far apart.

I’d be thinking, if this a serious goal with a customer, it will probably involve computer vision, several cameras and a decent budget.

Start with $5000 plus free contribution of time, it will be easy to double that.