ESP32-S3 soccer robots: two teammates, one wireless strategy
Editorial illustration; schematic only, not a project photograph.
Two ESP32-S3 boards, four home-made wheels and one radio link. A Slovak student team's RoboCup Junior build is a study in spending a pin budget.
What happened
In a September 30 project report, team XLC – WYLDFYRE describes the two ESP32-S3-DevKitC-1 soccer robots that took them to Incheon. They qualified second at the 2026 Slovak championship and finished 11th of 24 at the world final, held 2–6 July 2026, with three wins, one draw and three losses.
The team is four students from Slovakia: Martin Šuriak on hardware and 3D modelling, Ondrej Peter on electronics, Jakub Bohunický on both, and Diana Kunová on software.
The chassis is two circuit boards
RoboCupJunior Soccer Infrared caps robots at 1.5 kg. Theirs came in at 1.4 kg and 22 cm across, and with almost nothing to spare they did not build a frame. The robot is two custom four-layer PCBs, and those boards are the structure: the wheels pass through cut-outs in the bottom board.
Four omni wheels, designed in Fusion 360, 3D printed and assembled with wire and silicone rings, are each driven by a Maxon motor through a Maxon ESCON 24/2 controller. The dribbler is a second Maxon motor turning a rubber roller, and whether the robot actually has the ball is detected by a switch salvaged from a computer mouse, wired straight to a GPIO pin. The kicker is a solenoid fed at 48 V through a PM8834 gate driver, the part the team says caused more trouble than anything else on the robot.
Power comes from a four-cell Li-HV pack at 1100 mAh, good for about 20 minutes of play.
48 line sensors into 33 GPIOs
Sensing is where the pin budget goes. Underneath sit 48 phototransistors and 48 RGB LEDs. On top: an MRMS IR Ball Finder 3, a BNO055 for heading, and two Pixy2 cameras, front and rear, for the goals. The ball emits infrared light, so the match is read from the floor up.
Forty-eight analog line sensors do not fit on any microcontroller's ADC, so three multiplexers fold them into a 16-channel address bus plus three analog returns. Counting everything else the robot drives — four motors with PWM and direction, a shared enable, the dribbler, two kicker channels, four speed feedback lines, two dribbler contacts, two addressable LED strings, an I2C bus, two buttons and the referee module — the total lands at 33 GPIOs.
The DevKitC-1 offers exactly 33, and only if you use the pins the documentation warns about. GPIO43 and GPIO44 were left free for UART0, the only console. All four strapping pins — GPIO0, 3, 45 and 46 — became the multiplexer address bus. That works because strapping only matters in the brief window at reset, and the multiplexer's address inputs are high-impedance, so nothing pulls the pins during boot.
Why not an Arduino Mega
The team got the choice wrong twice first. A Teensy 4.1 would have worked but is expensive and easy to destroy. An Arduino Mega Pro was, in their words, a bad mistake picked because they already had the boards at home.
The argument is arithmetic. The line-angle calculation alone runs sin and cos across 32 sensors at 333 Hz, and the rest of the cycle wants atan2f and a PD loop with a real dt. The ATmega2560 is an 8-bit core at 16 MHz with no floating-point unit, so all of that becomes software emulation — and memory was full almost all the time, so the code was written to fit rather than to work. The ESP32-S3 is dual-core at 240 MHz with hardware floating point.
The feature that made the strategy possible is not the CPU, though. It is ESP-NOW. Both robots are identical hardware by design, so "attacker" and "defender" are only software states, and the two boards swap those states over the air mid-match. Bluetooth covered a use the team did not plan for: a PS5 controller, used to drive the robot by hand while watching live sensor values — which is how they calibrated it.
Before you copy it
This is a competition build with custom four-layer boards, not a starter kit. Two details are worth copying early: the millis-based scheduler inside loop(), and the mouse switch as a ball sensor. Two are worth studying hard before committing: driving strapping pins as a multiplexer bus, and the 48 V kicker path with its gate driver.
The team's own summary of the tournament is more useful than the placement: the engineering held, and what cost them the opening match was a loose cable that stopped both robots at the same moment.
No hardware was tested for this article. Every figure above comes from the team's report and repository.