240 FPS Trajectory Prediction: Real-Time Computer Vision for Robotic Air Hockey
During my time commissioning exhibits for India's first public Robotics Gallery at Gujarat Science City, one of the most demanding real-time platforms was the 4-DOF SCARA Air Hockey Robot. Unlike industrial robots picking stationary parts, an air hockey puck travels at speeds up to $8\text{ m/s}$ ($28.8\text{ km/h}$) with unpredictable acoustic rebounds off aluminum side rails.
To consistently block human shots and return aggressive bank shots, the vision-to-motion control loop had to operate under an ultra-strict deadline: less than 10 milliseconds from camera photon to motor torque.
1. High-Speed Optical Pipeline at 240 FPS
A standard 30 FPS camera captures a frame every $33.3\text{ ms}$. At $8\text{ m/s}$, a puck moves over $26\text{ cm}$ between consecutive frames—rendering trajectory estimation completely useless due to severe motion blur.
We deployed a high-speed global-shutter CMOS camera configured at 240 FPS ($4.16\text{ ms}$ inter-frame interval) with a localized Region of Interest (ROI):
2. Rebound Physics & Intercept Calculation
Puck Vector [X, Y, Vx, Vy]
↓
Wall Collision Detector (Boundary Checks)
↓
Specular Reflection Model (Coefficient of Restitution e = 0.92)
↓
Striker Intercept Kinematics (7ms deadline)When a shot is fired towards the robot goal:
3. Production Lessons
Operating this system 8 hours a day with hundreds of museum visitors revealed key lessons: