← Back to Home ← Back to Projects

Robocon 2024 - War Dragon R1

Jan - June 2024

Role: WD R1 SW Senior, Game Rule/FAQ/Appeal PIC

Technologies: STM32, RTOS, PID, Trapezoidal & Bézier Pathing, C, Embedded Systems

🏆 About ABU Robocon 2024

📄 Official Theme & Rules

The theme for ABU Robocon 2024 was "Harvest Day". Two teams (red and blue) compete in a 3-minute match. Each team operates two robots: a manual/semi-automatic Robot 1 (R1) and a fully-automatic Robot 2 (R2).


The R1 robot (our focus) is responsible for planting seedlings in Area 1 and navigating the complex Harvesting Zone (Area 2) to collect and shoot balls into Area 3. Precision and speed are critical.

Below is the official theme video explaining the rules in detail:

ABU Robocon 2024 Official Theme Video: "Harvest Day"

Overview

As the Senior Software Engineer Lead for War Dragon R1, I was responsible for both technical development and team management. I led four junior software engineers through multiple iterations of robot design for R1. The robot featured a tunnel through its centre to pass over balls in Area 2, requiring extremely precise navigation. I developed a novel Track Following Pathing system to enable this.

War Dragon R1
War Dragon R1 during testing

Mentoring Junior Software Engineers

From January to June, I guided the R1 software team through three generations of the robot:

Every night after leaving the lab, I sent detailed progress reports and to-do lists so everyone knew what was happening and what needed to be done. This kept the team motivated and focused.

Technical Contributions - Software

1. Area 1 Seedling Planting Pathing

Our robot had four seedling clamps on one side, allowing us to grab and plant seedlings in groups of four. The system supported fully automatic pathing with manual override at any point. Paths were split into five states: Start Zone, Seedlings 1-4, Seedlings 5-8, Seedlings 9-12, and Area 2. Using a combination of trapezoidal and Bézier paths, we enabled flexible strategies like “plant 12 → Area 2”, “plant 4 → Area 2 → plant 8”, etc. The robot could retry quickly using auto paths from Area 2 back to Start Zone.

Area 1 paths
Area 1 seedling planting paths (not final version - placeholder)

2. Area 2 Track Following Pathing (Innovation)

R1 had a tunnel in the middle of the robot so that it could move past balls without touching them. This limited movement to a very strict, straight line with only a few cm tolerance. I invented a Track Following Pathing system to allow the robot to move along these low-tolerance paths while switching rows quickly.

Three modes:

Track following concept
Track following: perpendicular PID + parallel trapezoidal

3. Shooter Regression

To accurately shoot balls from any position in Area 2 to any target in Area 3, we developed a regression model. After 200+ test shots, we plotted distance vs. flywheel velocity and applied linear/polynomial regression. The resulting formula allowed the robot to compute the required flywheel speed on the fly.

Shooter regression graph
Linear (blue) and quadratic (red) regression

4. Laser / Line Sensor Positioning

To compensate for inaccurate XY-encoders caused by slopes and obstacles, we used six DT-50 lasers and three line sensor bars. The line sensors had 8 elements spaced 12 mm apart, achieving 6 mm accuracy by interpreting patterns (e.g., 00011000 = centred, 00011100 = +6 mm). Sensor fusion combined laser, line sensor, and IMU data to recalibrate position even when some sensors were blocked.

Line sensor patterns
Line sensor patterns for sub-12 mm accuracy

5. Red-Blue Field Flipping

Due to left-right symmetry, we attempted to flip all sensor inputs and actuator outputs to write code for only one side. Challenges included non-symmetrical robot design, different theta flipping requirements for Area 1 (θ → -θ) vs Area 2 (θ → 90°-θ), and fine-tuning offsets. Ultimately, only Area 2 used this feature.

Test Results & Performance

Overall, R1 was a success - it was one of the fastest R1 robots globally with no major errors or retries during competition.

Awards & Recognition

Resources