Dulaj Wickramanayake
01RoboticsSep–Oct 2026

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.

The RoboPath robot on the bench: 3-servo arm with side flap at the front, ESP32 board on top, line sensor array underneath
RoboPath on the benchArm, controller board and line sensors
RoleTeam lead
WhenSep–Oct 2026
Built forKDU RoboPath Challenge
Must fit in250 × 200 mm
ResponsibilitiesArchitecture, parts, firmware, 3D design
TeamWith Savindu and Enuri

One run, five tasks

Scroll to follow the run

Each 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.

Sensors used per task01 / 05
  1. Follow the line 01

    PID on an 8-channel IR array, with junction and corner handling and lost-line recovery.

  2. Find the box 02

    The front ToF sensor sweeps for it. The pick is confirmed by distance.

  3. Place it 03

    Gyro-trimmed encoder turns bring it to the target square.

  4. Solve the maze 04

    No line inside: distance sensors only, wall centring, gyro-locked 90° turns.

  5. Climb the ramp 05

    Gyro pitch detects the slope, and motor power rises to match.

Architecture: two processors

ESP32-S3 + ESP32-H2

Line 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
200 Hzcontrol loop pinned to one core
2cores, driving and sensing split
3ToF sensors for box search and the maze
4speed presets, chosen on the robot
Competition day

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.
Team leadership

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 →