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.

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

Sensor signalMake or missSessionEvery box is something I built or wired up myself.

Decisions I made

  1. 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.

  2. 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.

  3. 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

An early breadboard prototype with its RGB LED glowing purple next to the Arduino and the Bluetooth moduleThe BK-Shoot electronics fixed to a board: an Arduino, a Bluetooth module, an infrared sensor and a breadboard

Gallery

Seven photos of fitting BK-Shoot: the box of electronics, reaching up to the hoop, and the sensors fixed behind the rim
Circuit drawing: an Arduino Uno wired to a Bluetooth module, a proximity sensor, a vibration sensor, an RGB LED and a battery

The full engineering is on GitHub.