Personal project · 2021
BK-Shoot
A hoop that knows a make from a miss.
A sensor box for the basketball hoop that counts every make and miss and shows your shooting stats live on your phone.
Honourable Mention - 12th Planter de Sondeigs i Experiments
Menció 4 in the 3rd and 4th ESO category on 28 May 2021, shared with Alejandro Nuñez Navarro, "for combining statistics, Big Data, artificial intelligence and programming with sport".
Young Photonics Congress - ICFO 2021
Took part with BK-Shoot on 12 April 2021 and received the congress diploma.
- Stack
- Arduino, C++, Bluetooth, MIT App Inventor, Android
Why it matters
Shooting practice runs on two numbers: how many shots you took and how many went in. On your own, or with one friend, nobody keeps that count for long. I built BK-Shoot at 15, during the pandemic, as my secondary school research project: a box on the hoop that tells a make from a miss and sends every shot to a phone, so the numbers are there while you are still shooting.
How it works
Proximity sensor
Watches the ball at the hoop
infrared
Vibration sensor
Feels the ball hit the rim
impact threshold
Arduino
Reads both, calls make or miss
C++ · short time window
- both sensors read
- shot called
Bluetooth
One digit per shot
HC-05 · 2 basket, 1 miss
Phone app
Counts every shot live
MIT App Inventor · Android
- player and shot type
- baskets and misses
- success rate
Baskets: 13 · Misses: 14
Session history
Saved by player, date and shot type
on the phone · CSV export
Training lasted: 01:06
Decisions I made
Two sensors, read together
A proximity sensor watches the ball at the hoop and a vibration sensor feels it hit the rim. A ball can shake the rim and stay out, and a clean shot can drop through without touching it, so one sensor alone is not enough to count both makes and misses. The Arduino reads both inside a short time window and calls the shot.
Trade-off. It only works as well as it is fitted. Both sensors have to sit just right on each hoop, and the time window and both thresholds have to be tuned to it.
The hoop decides, the phone counts
The Arduino makes the call and sends a single digit over Bluetooth: 2 for a basket, 1 for a miss. The app only adds them up and shows baskets, misses, total shots, shots per minute, the success rate and a timer while you play.
Trade-off. The phone never sees the raw sensor readings, so a wrong call cannot be checked or corrected afterwards.
Every session saved with the player
Before a workout the app asks who is shooting, from a profile with age, height, weight, sex and dominant hand, and which shot: free throw, two or three. Each session is saved with its totals and times, can be sorted by player, date or shot type, and can be shared as comma-separated text for a spreadsheet.
Trade-off. Everything lives on one phone. Getting the numbers anywhere else means exporting them by hand.
Photos
Gallery
The full engineering is on GitHub.