FINAL PROJECT

JAVIER VEGA // PROJECT LOG

FINAL PROJECT

The AI Goal Sentinel is a portable device that turns any regular soccer goal into a smart training system. You simply attach it to the crossbar, and it is ready to use. It automatically detects your shots and sends data instantly to your phone, showing you the speed of the ball and exactly where it entered the goal. It turns a normal practice session into a fun, measurable game.

I am making this project because professional football tools are usually too expensive and hard to use for normal players. Most people cannot measure how fast they shoot or improve their accuracy with data. This project solves that problem by creating a cheap and easy-to-use device that lets anyone track their progress, just like professional athletes do.

THE ORIGIN STORY (MOTIVATION)

I have been passionate about football since I was a kid. It’s not just a hobby; it’s part of who I am. However, training alone can be difficult without feedback. I often wonder: "How fast was that shot?" or "Did I hit the corner precisely?"

This project combines my love for the sport with digital fabrication. My goal is to build a device that helps players like me improve their accuracy and power through real-time data, making training sessions more effective and fun.

The AI Goal Sentinel is an autonomous device designed to attach to any standard goalpost. To achieve portability and precision, the system integrates the following hardware components:

A. ELECTRONICS & LOGIC

  • ESP32-S3: High processing power for AI vision and built-in Wi-Fi.
  • Custom PCB: Fabricated board to integrate MCU and sensors compactly.
  • OV2640 Camera: Tracks the ball's trajectory and calculates speed.
  • SPEED SENSORS VL53L5CX: They measure the laser distance to calculate the speed of the shot.

B. POWER & MECHANICS

  • LiPo Battery (3.7V): Provides wireless autonomy.
  • Charge Module TP4056: To safely recharge the battery from any cell phone charger.
  • 3D Printed body: Weather-resistant case ensuring sensors correctly face the player.
  • Velcro Strap: Flexible quick-release mechanism.

CRITICAL RESEARCH: BALL DETECTION

A major part of my recent project development has been dedicated to Research & Development (R&D). Before fabricating the final PCB or 3D printing the enclosure, I needed to define the exact optical hardware required to detect a football crossing the goal line at high speeds. I evaluated two different photoelectric sensor models to determine viability.

Blue Reflective Sensor

1. Solviora E3F-DS30C4 (Yellow)

  • Type: Diffuse Photoelectric Proximity
  • Range: 7 - 30 cm
  • Verdict: REJECTED

Analysis: While cost-effective, this sensor relies on light bouncing off the object itself. Its maximum range of 30 cm is a critical failure point for this project. A football goal is much wider, meaning a ball passing through the center of the net would go completely undetected by this sensor.

Blue Reflective Sensor

2. Retroreflective E3F-R2NK (Blue/Green)

  • Type: Retroreflective with plate
  • Range: Up to 2 Meters (200 cm)
  • Verdict: SELECTED

Analysis: This sensor uses a dedicated reflector plate placed on the opposite side of the frame. Because the beam bounces back directly from the reflector, it achieves a massive 2-meter detection range. This ensures that no matter where the ball enters the goal area, it will break the beam and trigger the system accurately.

TOP SECRET SCHEMATIC

Initial Concept Sketch v1.0

Final Project Sketch

Fig 1. First hand-drawn visualization of the system components and placement on the goal frame.

FULL-SCALE GOAL CONCEPT

The system will be implemented on a **physical goal structure** with a size of 1 meter height and 1.3 meters width. This compact format allows portability while still providing a realistic training experience.

The design includes a total of 8 sensors, distributed symmetrically:

  • 4 sensors on the left post
  • 4 sensors on the right post

These sensors will create multiple detection zones across the goal area. When the ball crosses the goal, the system identifies:

  • ✔ Entry position (left, center, right)
  • ✔ Shot trajectory approximation
  • ✔ Speed calculation using time difference between sensors

This configuration transforms a simple goal into an intelligent measurement system, capable of providing real-time feedback for performance analysis.

SYSTEM DIAGRAM

Final Project Sketch

Fig 2. Sensor distribution along both vertical posts to detect ball crossing position and speed.

SYSTEM WORKFLOW

⚽ Ball crosses goal →
📡 Sensors detect interruption →
🧠 ESP32 processes timing data →
📊 Calculates position + speed →
📱 Sends data to user interface

Roadmap aligned with the Fab Academy 2026 Official Schedule.

  • WEEK 1 (JAN 21)

    Project Management

    Defining the concept, sketching the initial idea, and setting up the documentation website (Git & HTML).

  • WEEK 2 (JAN 28)

    Computer-Aided Design

    Creating the first 2D and 3D representations of the goal structure using SolidWorks.

  • WEEK 3 (FEB 04)

    Computer-Controlled Cutting

    Laser cutting a scale model to test the mechanism and verify the folding system.

  • WEEKS 6-8 (FEB-MAR)

    Electronics Design & Production

    Designing the custom PCB in KiCad (Week 6) and fabricating it (Week 8) to house the ESP32 and power management.

  • WEEK 7 (MAR 04)

    Computer-Controlled Machining

    Designing and cutting the full-scale frame structure using the monofab. Testing stability on the field.

  • WEEK 9 (MAR 18)

    Input Devices

    Calibrating the sensors to determinate speed and position of the ball when it crosses the goal line.

  • WEEK 11 (APR 01)

    Networking & Communications

    Programming the ESP32 to communicate wirelessly (Wi-Fi/Bluetooth) and send score data to a device.

  • WEEK 14 (APR 29)

    Interface Programming

    Developing the visual App or Web Dashboard where the player sees their speed and accuracy stats.

  • WEEKS 15-17 (MAY)

    System Integration & Development

    Final assembly, 3D printing enclosure, cable management, field testing, and recording the presentation video.