01 / 07
A self-driving car for the WRO mat
Hermes is a four-wheeled car with one driven axle and one steered axle, as the rules require. Everything it needs to drive itself is on board: a camera at the front, distance sensors on both sides, an IMU, a Raspberry Pi 4 and an ESP32. After one press of the start button it works out which challenge it is in and finishes it with no human input.
02 / 07
Built in layers
The car stacks in layers that come apart for repairs. At the bottom, a printed chassis carries the steering and the drive. Above it the battery holder takes two 18650 cells and a buck converter for the 5 V rail. An acrylic plate carries the electronics box with the Pi inside, and on top sits the sensor deck with the ESP32, the IMU and the motor driver.
03 / 07
Ackermann steering and a differential
An MG90S servo turns the front wheels through a printed Ackermann linkage, so the inner wheel turns more than the outer one and both roll round the same centre instead of scrubbing. At the back a single N20 motor drives the axle through a printed differential, which lets the rear wheels turn at different speeds in a corner. One steering actuator and one driven axle is exactly what the rules allow.
04 / 07
Two boards, one serial link
The work is split in two. The Raspberry Pi 4 runs the camera vision, the state machine and the planning. The ESP32 does everything that has to happen on time: motor and servo PWM, reading the IMU and both time-of-flight sensors, and the start button. They talk over one UART at 115200 baud: telemetry packets up, drive commands down. Because the Pi never touches a sensor directly, the whole stack also runs on a laptop against a simulated ESP32.
05 / 07
The Open Challenge
Three laps of a corridor whose walls move between runs. Hermes centres itself between the walls from the camera image and holds its heading with a PID loop on the IMU (Kp 1.6, Ki 0.02, Kd 0.35, at 20 Hz). It counts the orange and blue corner lines to know which lap it is on, and the colour of the first one tells it which way round it is going. It keeps to the inner side for a shorter, safer line and stops after the third lap.
06 / 07
Traffic signs and parking
In the Obstacle Challenge red and green pillars stand in the track: pass right of red, left of green. Each one becomes a smooth heading change held by the IMU, and the side distance sensors stop the swerve before it reaches a wall. There is only one start button, so Hermes works out the challenge itself: seeing a pillar means Obstacle, a full lap without one means Open. After three laps it finds the magenta parking lot and parallel-parks.
07 / 07
Parts list
Every part in the drawing. Hover a row to find it.
| No. | Part | Specification | Qty |
|---|
| 1 | Raspberry Pi 4 | Vision, state machine and planning | 1 |
| 2 | ESP32 DevKit | Motor and servo PWM, sensors, start button | 1 |
| 3 | Raspberry Pi Camera Module 3 | On a printed bracket at the front | 1 |
| 4 | LSM6DSO IMU | Heading hold and drift correction | 1 |
| 5 | VL53L1X time-of-flight sensors | Left and right; side clearance | 2 |
| 6 | Motor driver | H-bridge for the drive motor | 1 |
| 7 | N20 gear motor and differential | Printed differential and spur gears | 1 |
| 8 | MG90S servo and Ackermann linkage | Printed linkage and knuckles | 1 |
| 9 | Battery holder | Two 18650 Li-ion cells, buck converter to 5 V | 1 |
| 10 | Electronics box | Printed, on bracket legs | 1 |
| 11 | Sensor deck | Perfboard with terminal blocks | 1 |
| 12 | Top plate | Acrylic | 1 |
| 13 | Chassis base | Printed | 1 |
| 14 | Wheels | 65 mm, yellow rims | 4 |