July 2026

Soccer Ball Tracker

Using UWB chips to track a soccer ball’s position in 3D, while detecting out-of-bounds plays and goals.

Soccer Ball Tracker

Tools & skills

  • CAD
  • 3D-printing
  • YouTube
  • Python
  • 3D modelling
  • Calibration
  • serial communication

Can we replace a human referee with an AI system that knows when the ball is out of bounds or when a goal has been scored?

I set out to build a soccer-ball tracking system that could determine the ball’s position on the field and use it to detect out-of-bounds plays and goals.

I considered several methods for detecting when the ball went out of bounds. Since an OptiTrack system was beyond the budget, I settled on Ultra-Wideband (UWB) technology, using these development boards from AI-Thinker.

UWB uses the time of flight of radio signals, with one moving tag and multiple stationary base stations. Each base station measures its distance to the tag, allowing multilateration to determine the tag’s position.

I designed 3D-printed enclosures to house the UWB boards and 18650 cells connected to a battery management system (BMS). This allowed each station to run on battery power without needing to be plugged in.

On the software side, I developed a CLI to configure and calibrate the UWB boards over a serial connection. I also built a VAR-style overview with a top-down view of the soccer field that shows the ball’s position, alerts when it goes out of bounds, and displays the score for each team.

CAD models

Video

Gallery

Soccer Ball Tracker project detail Soccer Ball Tracker project detail Soccer Ball Tracker project detail Soccer Ball Tracker project detail