Skip to the content
2 layers99 × 99 mmEurobot2025PCB, the printed circuit board in 3D

Autonomous robotics platform for the 2025 French Robotics Cup using ESP32, Raspberry Pi, and LiDAR.

Size
99 × 99 mm
Copper layers
2
Thickness
1.6 mm
Parts
31
Nets
52
Pads
166
Tracks, vias
229, 4
Pours
1
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
9 Oct 2024
Updated
5 Apr 2026

Overview

Eurobot2025PCB is an open-source printed circuit board by ECN-Nantrobot, from the ECN-Nantrobot/2024-2025-Robotics-cup repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 99 × 99 mm with 31 parts on 52 nets, routed with 229 tracks and 4 vias.

It is built around the INA219AID, PCA9685PW and PCF8574T. Its parts include 8 ICs, 5 connectors, 5 switches, 2 diodes and 1 capacitor. It belongs with the robots and motor control boards of this library.

Main components

3

README

README.md

🤖 2025 Eurobot France Robot from EC NATES Team

Eurobot competition table

This repository contains the software used for our Eurobot France 2025 mobile robot.

Competition objective (software side):

  • move safely on the table,
  • pick up cans,
  • move them to scoring zones,
  • and stack them with a wooden plank, while coordinating high-level autonomy (Raspberry Pi + ROS2) and low-level actuation (ESP32).

⚡ Quick Summary (TL;DR)

  • This repository is the full competition software stack for our Eurobot France 2025 robot, split between high-level ROS2 autonomy on the Raspberry Pi and real-time actuator control on the ESP32.
  • The robot mission flow is: navigate the table, pick cans, transport them, and stack them according to ordered match goals defined in YAML strategies (blue/yellow team variants).
  • On the ROS2 side, main_node coordinates mission sequencing, ESP synchronization, and runtime state progression, while laser_to_pointcloud_node converts LiDAR scans into map-frame pointcloud data.
  • Perception updates an OpenCV-backed maze/occupancy representation; close LiDAR points are used for collision-aware behavior and safety reactions during execution.
  • The planning stack includes A* path search and Elastic Band smoothing/optimization modules to turn discrete routes into smoother, obstacle-aware motion references.
  • Raspberry Pi and ESP32 communicate over serial (/dev/esp32) with command/ack/state messages so high-level decisions and low-level actions stay synchronized.
  • Deployment supports both manual ROS launching and automatic startup with one_go.service; additional operator setup/troubleshooting notes are collected in noted.md.
  • The detailed sections below explain architecture layers, data flow, planning internals, state-machine behavior, build/run steps, and autostart operations.

🎥 Competition links


Photos

Team with robot at competition Robot close-up
Planning and simulation view


1) System architecture (code architecture, not just file tree)

The software is designed as a layered robotics stack.

🎯 Layer A — Match strategy and mission sequencing (ROS2)

Responsibility 📌:

  • load team strategy (blue/yellow),
  • keep an ordered goal list,
  • advance mission state machine,
  • synchronize with ESP (start/reset/ack/state).

Core behavior ⚡:

  • main_node loads YAML goals and robot tuning parameters.
  • It sends high-level goals and PID/speed values over serial.
  • It tracks progress and decides when to move to the next objective.

Layer B — Environment modeling and local world update (ROS2 + OpenCV + PointCloud)

Responsibility 📌:

  • convert raw LiDAR scans into useful obstacle information,
  • maintain occupancy/maze image representation,
  • mark dangerous/blocked regions around detected clusters.

Core behavior ⚡:

  1. LiDAR /scan is projected to PointCloud2 and transformed into map frame.
  2. Point cloud is filtered and clustered.
  3. Cluster centers are smoothed over time.
  4. Circular obstacle areas are written into the map image (OpenCV-backed maze).

This is what gives the planner a live, robot-centric table understanding.


Layer C — Path planning and path shaping (A* + Elastic Bands)

Responsibility 📌:

  • compute traversable path from robot to current goal,
  • refine the path for smooth and obstacle-aware motion.

A* planner (global/discrete path)

  • The codebase includes a generic templated A* implementation.
  • It builds a search tree with open/closed sets and returns an ordered path.
  • Utility functions exist to save/load A* paths for debugging.

Elastic Bands optimizer (path smoothing/optimization)

  • The codebase also contains an Elastic Band optimizer:
    • path resampling (resizePath),
    • spring force term (path smoothness),
    • repulsive force term (obstacle clearance),
    • corridor checks and obstacle repulsion,
    • Gaussian smoothing for final trajectory quality.
  • It queries obstacle distance using the maze distance transform for fast collision pressure.

Important: in the current main.cpp, parts of A* and Elastic Band usage are present but some calls are commented while mission logic still runs via goal sequencing and safety/obstacle updates.


Layer D — Motion command bridging (ROS2 ↔ ESP32 serial protocol)

Responsibility 📌:

  • convert ROS-level goals/tuning into compact serial commands,
  • receive acknowledgements and finite state updates from ESP.

Core behavior ⚡:

  • ROS sends messages such as:
    • GOALS:...
    • speed/PID command payloads,
  • ROS parses incoming messages such as:
    • ACK:...
    • RESET
    • state updates.

This bridge is the contract between navigation intelligence and hardware execution.

Communication behavior in practice:

  • The Raspberry Pi opens the ESP link on /dev/esp32 and waits for startup synchronization.
  • During startup, ROS waits for trigger/state messages (including start/team-color flow) before mission execution.
  • ROS then sends:
    • speed and PID tuning,
    • the ordered mission goals,
    • additional control messages tied to match progress.
  • ESP acknowledges received commands and reports current execution state back.
  • If ROS receives a reset/state change, the mission controller in main_node can re-initialize and safely re-sync.

Layer E — Real-time low-level control (ESP32 firmware)

Responsibility 📌:

  • deterministic wheel/servo/pump/stacking control,
  • panel/safety handling,
  • sensor and actuator timing not suitable for Linux user-space jitter.

Core behavior ⚡:

  • Execute movement primitives and mechanism sequences.
  • Handle pickup/stacking actions.
  • Return status to ROS so high-level state machine can continue.

Layer F — Launch/runtime orchestration

Responsibility 📌:

  • bring up the complete runtime graph reliably.

Core behavior ⚡:

  • ROS launch starts TF/static transform, robot state publisher, LiDAR driver, pointcloud transform, and main autonomy node.
  • systemd service can autostart all of this on Raspberry Pi boot.

🔄 2) Data flow between components

End-to-end loop:

  1. LiDAR driver publishes /scan.
  2. laser_to_pointcloud_node transforms to /pointcloud in map frame.
  3. main_node updates the OpenCV maze from clustered points.
  4. LiDAR-based collision detection marks too-close obstacle points and can trigger emergency/safety behavior in the control loop.
  5. Planner/mission logic chooses next movement objective.
  6. ROS sends goal/tuning messages to ESP32 via serial (/dev/esp32).
  7. ESP32 executes motors/servos/pump/stacking and reports state.
  8. ROS advances mission state and repeats until final objective.

🧠 3) ROS2 package functionality details (robonav)

3.1 Main autonomy node

main_node integrates:

  • serial handshake with ESP,
  • team color + start synchronization,
  • loading strategy YAML (goals_blue_final.yaml / goals_yellow_final.yaml),
  • publication of odom/path/goals visualization topics,
  • pointcloud-based obstacle map updates,
  • LiDAR-based close-obstacle filtering for emergency/collision-aware behavior,
  • mission progression logic.

State-machine perspective of the main loop:

  • Init / sync state: open serial, wait for ESP availability, wait for START + team-color context.
  • Configuration state: load YAML strategy, apply speed/PID, send goals and config payloads to ESP.
  • Run state: execute mission step-by-step while continuously processing LiDAR-derived obstacle updates.
  • Transition state: when a goal/action is completed and acknowledged, advance to next strategic step.
  • Safety/reset state: if reset/emergency conditions are detected, stop or reinitialize and return to a safe synchronization phase.

This state-machine behavior is what coordinates high-level ROS mission logic with low-level ESP execution confirmations.

3.2 LiDAR transform node

laser_to_pointcloud_node:

  • subscribes to /scan,
  • projects scan to PointCloud2,
  • transforms cloud into map frame via TF2,
  • publishes /pointcloud for planning/perception pipeline.

3.3 Map model with OpenCV (Maze)

The Maze abstraction provides:

  • occupancy image manipulation,
  • obstacle rendering (with borders/safety margins),
  • precomputed distance transform,
  • fast getDistanceToObstacle() lookup used by path optimization forces.

This OpenCV map is central to both collision logic and path quality.

3.4 A* planning module

The A* module supports:

  • reusable generic node-based search,
  • heuristic + g/f cost handling,
  • parent tree reconstruction of final path,
  • optional path persistence to files for debugging and replay.

3.5 Elastic Bands module

The Elastic Band module supports:

  • iterative path optimization,
  • spring/repulsive forces,
  • adaptive spacing and corridor correction,
  • smoothing using Gaussian kernel,
  • optional visualization utilities.

Use case:

  • A* gives a valid path,
  • Elastic Band transforms it into smoother, safer motion references.

3.6 Strategy and configuration

Competition behavior is configured through YAML:

  • wheel geometry,
  • speed/PID defaults,
  • ordered goals for each team color,
  • obstacle templates.

⚙️ 4) ESP32 firmware functionality (control architecture)

The ESP firmware acts as a real-time execution controller.

Major functional blocks:

  • drivetrain motion control,
  • servo control,
  • pump control,
  • stacking sequence management,
  • power monitoring,
  • control panel / emergency and safety handling,
  • command parser for ROS serial protocol.

Design intent:

  • ROS does “what to do next”,
  • ESP does “how to move and actuate now”.

🛠️ 5) Technologies used

Raspberry Pi / ROS side

  • ROS 2 Humble
  • C++17
  • Python ROS launch
  • OpenCV (map and image operations)
  • PCL + laser_geometry + TF2 (pointcloud and transforms)
  • yaml-cpp (strategy/config loading)
  • systemd (autostart)

ESP side

  • PlatformIO
  • Arduino framework (ESP32)
  • AccelStepper, ContinuousStepper, TFT_eSPI, INA219, PWM servo driver

⏱️ 6) Runtime sequence during a match

  1. Boot RPi and ESP.
  2. Launch ROS graph (manual or systemd).
  3. Wait for ESP start/team-color synchronization.
  4. Load corresponding team goals.
  5. Start mission loop:
    • perceive obstacles,
    • update map,
    • plan/shape motion,
    • send commands,
    • execute pickup/stacking actions,
    • verify state and continue.
  6. End at final strategic goal.

🚀 7) Build and run

🧪 ROS2 workspace (RPi)

bash
colcon build --symlink-install
source install/setup.bash
ros2 launch robonav launch.launch.py

🔋 ESP firmware

  • Open Firmware/ with PlatformIO.
  • Build and upload to ESP32.
  • Ensure serial mapping is correct (/dev/esp32 expected on RPi side).

🔁 8) Autostart (RPi)

Use the provided service assets to launch on boot:

  • src/robonav/autostart/one_go.sh
  • src/robonav/autostart/one_go.service

Then monitor:

bash
journalctl -u one_go.service -f

📝 9) Practical operations notes

  • Always confirm team color strategy file before match.
  • Validate LiDAR and ESP serial devices after reboot.
  • Keep ROS and firmware commits synchronized.
  • Perform full mechanism test (pickup/stacking) before table deployment.

Parts

31
QtyValueFootprintReferences
4MountingHoleMountingHole:MountingHole_3.2mm_M3H1, H2, H3, H4
3Conn_01x04_SocketConnector_JST:JST_XH_B4B-XH-A_1x04_P2.50mm_VerticalJ3, J4, J6
3Pololu_Breakout_A4988ECN:A4988A1, A3, A4
2SW_PushButton_Switch_THT:SW_PUSH_6mmSW3, SW4
2VL6180XConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalU5, U6
11N5817Diode_THT:D_DO-41_SOD81_P10.16mm_HorizontalD2
11uFCapacitor_THT:C_Radial_D5.0mm_H11.0mm_P2.00mmC2
1330Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR1
14R7ECN:4R7U7
1Conn_01x02_SocketConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ5
1GC9A01Connector_PinHeader_2.54mm:PinHeader_1x07_P2.54mm_VerticalU2
1INA219ECN:INA219 DC current sensorU1
1L9110ECN:L9110U4
1LEDLED_THT:LED_D5.0mmD1
1PCA9685Connector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_VerticalU3
1PCF8574Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalU8
1R_PotentiometerConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalRV1
1SW_PushConnector_JST:JST_XH_B2B-XH-A_1x02_P2.50mm_VerticalSW5
1SW_Push_DualConnector_PinHeader_2.54mm:PinHeader_2x02_P2.54mm_VerticalSW1
1SW_SPDTButton_Switch_THT:SW_XKB_DM1-16UP-1SW2
1Screw_Terminal_01x02TerminalBlock_MetzConnect:TerminalBlock_MetzConnect_Type059_RT06302HBWC_1x02_P3.50mm_HorizontalJ1
1~ECN:ESP32 WROOM 32DESP32 WROOM 32D DEVKIT1

Similar boards

  • 2 layers100 × 100 mmRQ2 mainboard v0.2, the printed circuit board in 3D

    RQ2 mainboard v0.2

    deets/unifhy-rocket-engine-test-stand

    Code, CAD and Description for a amateur rocket test stand.

    75 parts1
  • 4 layers99 × 146 mmCarte principale, the printed circuit board in 3D

    Carte principale

    Unimakers/CDR-2027

    Ce repo est un site de documentation réalisé par l'équipe des première et deusième années pré-ingénieur de l'école Unilasalle-Amiens, membre de l'association de robotique Unimaker, dans le cadre de leur participation à…

    156 parts1
  • 4 layers82.6 × 82.5 mmJumperless2, the printed circuit board in 3D

    Jumperless2

    Architeuthis-Flux/Jumperless

    A jumperless breadboard

    208 parts914
  • 4 layers82.6 × 82.6 mmJumperlessV5r8, the printed circuit board in 3D

    JumperlessV5r8

    Architeuthis-Flux/JumperlessV5

    The next generation jumperless breadboard

    650 parts332
  • 2 layers74.4 × 51.2 mmEsp32-wroom timer, the printed circuit board in 3D

    Esp32-wroom timer

    AlessandroAU/Chorus32-ESP32LapTimer

    This is an ESP32 port of the popular Chorus RF Laptimer

    66 parts102GPL-3.0
  • 2 layers169.3 × 128 mmPSU PCB, the printed circuit board in 3D

    PSU PCB

    ThomasVDD/SmartSupply

    SmartSupply is a digital battery powered lab powersupply. It is Arduino compatible and can be controlled via PC over USB.

    134 parts96
  • 4 layers100 × 54 mmKbox, the printed circuit board in 3D

    Kbox

    sarfata/kbox-hardware

    Open-source electronics for your boat

    139 parts19
  • 2 layers50 × 100 mmPSU PCB, the printed circuit board in 3D

    PSU PCB

    ThomasVDD/SmartSupplyMini

    118 parts16

Questions

How big is the Eurobot2025PCB PCB?

It measures 99 × 99 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Eurobot2025PCB use?

31 parts, built around the INA219AID, PCA9685PW and PCF8574T. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Eurobot2025PCB KiCad files?

From the ECN-Nantrobot/2024-2025-Robotics-cup repository on GitHub, at the commit this page was made from: the board is Electrical/Eurobot2025PCB/Eurobot2025PCB.kicad_pcb and its schematic Electrical/Eurobot2025PCB/Eurobot2025PCB.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Eurobot2025PCB design in my own project?

Its repository publishes it under the GPL-3.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).