RoboPath
A fully autonomous robot built for the KDU RoboPath Challenge competition. From a single button press, it follows a line, locates and lifts a box, places it, solves a line-free wall maze and climbs a ramp, within a 250 × 200 mm footprint. I led the team that designed and built it.

One run, five tasks
Scroll to follow the runEach task relies on a different set of sensors, and the robot switches between them autonomously, including inside the maze where there is no line to follow.
Follow the line 01
PID on an 8-channel IR array, with junction and corner handling and lost-line recovery.
Find the box 02
The front ToF sensor sweeps for it. The pick is confirmed by distance.
Place it 03
Gyro-trimmed encoder turns bring it to the target square.
Solve the maze 04
No line inside: distance sensors only, wall centring, gyro-locked 90° turns.
Climb the ramp 05
Gyro pitch detects the slope, and motor power rises to match.
Architecture: two processors
ESP32-S3 + ESP32-H2Line following depends on a consistent control loop. The loop runs at 200 Hz on a dedicated core of an ESP32-S3, while a second processor, an ESP32-H2, drives the gripper and buzzer, so arm movements cannot delay steering. The two communicate over a UART protocol I designed, with checksummed frames and keep-alive pings.
- Main MCUESP32-S3, FreeRTOS on both cores
- Co-processorESP32-H2: 2-servo gripper arm and buzzer
- Sensing8-channel IR array, wheel encoders, MPU6050 gyro, 3 × VL53L0X ToF
- DriveTB6612FNG with dual-encoder DC gear motors
- InterfaceSSD1306 OLED and a 3-button menu
Designed for reliability on competition day
With no laptop access and no second attempt at setup, all calibration and diagnostics run on the robot itself.
- Calibration runs on the robot itself, with no laptop needed.
- PASS / FAIL test screens for every sensor and motor.
- Settings live in flash, and a fault log survives resets.
- The S3 and H2 ping each other, so a lost link is caught at once.
From architecture to the gripper
I defined the system architecture, selected the components, wrote the embedded firmware and modelled the mechanical parts in FreeCAD. The gripper is a 3-servo arm with a parallel linkage and a side-flap jaw, designed to fit the size limit.
See the gripper arm →