Skip to the content
2 layers80 × 95 mmPcb robotito, the printed circuit board in 3D

An open, low-cost differential-drive autonomous robot built around the ESP32 and micro-ROS, designed as a teaching platform for ROS 2.

Size
80 × 95 mm
Copper layers
2
Thickness
1.6 mm
Parts
29
Nets
62
Pads
146
Tracks, vias
238, 16
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
23 Feb 2026
Updated
2 Jul 2026

Overview

Pcb robotito is an open-source printed circuit board by grupo-avispa, from the grupo-avispa/minibot repository on GitHub. It is a 2-layer board of 80 × 95 mm with 29 parts on 62 nets, routed with 238 tracks and 16 vias.

It is built around the ESP32-S3-DEVKITC-1-N8 and PN2222A. Its parts include 5 resistors, 3 diodes, 2 connectors, 1 IC and 1 transistor. It belongs with the ESP32 boards of this library.

Main components

2

README

README.md

Minibot

License: CC BY-NC-SA 4.0 PlatformIO ROS 2 Jazzy micro-ROS ESP32

An open, low-cost differential-drive autonomous robot built around the ESP32 and micro-ROS, designed as a teaching platform for ROS 2. The firmware streams LiDAR scans, IMU data, and wheel odometry to a ROS 2 host over WiFi and drives the robot from cmd_vel commands, so students can experiment with the full SLAM → localization → navigation stack (SLAM Toolbox + Nav2) on real hardware.

Developed by the AVISPA research group, Department of Electronic Technology, University of Málaga.

Minibot

Features

  • micro-ROS over WiFi — the ESP32 registers as ROS 2 nodes through a micro-ROS Agent, no USB tether required.
  • Differential drive with two JGA25-371 DC gearmotors, Hall encoders, and a dual PID velocity loop for accurate odometry.
  • Sensor fusion — wheel odometry plus a BMI160 IMU (/imu/data_raw) for robust pose estimation.
  • 2D LiDAR — a 3irobotix Delta-2A parsed on-device and published as sensor_msgs/LaserScan, with the mirror-inversion and zero-angle defects fixed in the driver.
  • Human-robot interaction — animated OLED eyes, an RGB status LED, and DFPlayer voice feedback, driven from a /robot_emotion topic.
  • FreeRTOS multitasking — separate tasks for LiDAR reading, scan publishing, and the micro-ROS executor, pinned across both ESP32 cores.
  • 3D-printable chassis — Fusion 360 source, STEP, and ready-to-print STL files, plus a custom KiCad PCB.

Repository layout

PathDescription
source/micro-ROS firmware (single PlatformIO project): motors, encoders, IMU, LiDAR, and HRI module.
designs/Mechanical design: Fusion 360 (.f3z), STEP, and printable STLs.
schematics/KiCad project for the control PCB (schematic, layout, gerbers, 3D STEP).
datasheets/Component datasheets (ESP32, JGA25-371, DRV8871, BMI160, LM2596S).
docs/Images and documentation assets.

Firmware modules — source/

ModuleResponsibility
jga_motorsDC motor PID control, encoder reading, odometry and /tf.
bmi160_sensorBMI160 IMU acquisition and /imu/data_raw publishing.
xiaomi_lidarDelta-2A frame parsing and /scan publishing.
emotionsOLED eyes, RGB LED, and voice feedback driven from /robot_emotion.
main.cppmicro-ROS entities, time sync, FreeRTOS tasks, and reconnection handling.

Hardware

  • MCU board: ESP32-WROOM-32 — ESP32 DevKit C V4 (USB-C), PlatformIO board az-delivery-devkit-v4
  • Motors: 2× JGA25-371 DC gearmotors with Hall quadrature encoders
  • Motor driver: DRV8871 H-bridge (per motor), 2-pin PWM control
  • LiDAR: 3irobotix Delta-2A 2D scanner (≈0.13–8 m), UART TTL 3.3 V
  • IMU: Bosch BMI160 6-axis (I²C, address 0x69)
  • Power: 3S Li-Ion 18650 pack with BMS (≈11.1 V) → 12 V to motors; LM2596S buck converter → 5 V rail for ESP32 and LiDAR
  • HRI: 2× SSD1306 OLED displays, RGB LED, DFPlayer Mini audio
  • Chassis & PCB: 3D-printed body (PLA + TPU, see designs/) on a custom KiCad PCB (see schematics/)

Datasheets for the main components are in datasheets/.

Pinout (ESP32 GPIO)

SubsystemSignalGPIO
Left motorIN1 / IN2 (PWM)21 / 19
Left encoderA / B32 / 33
Right motorIN1 / IN2 (PWM)4 / 27
Right encoderA / B34 / 35
Encoder LEDsRed / Blue16 / 17
LiDARUART RX (Serial2) / motor enable26 / 25
IMU + OLED (I²C)SDA / SCL13 / 14
RGB LEDR / G / B15 / 12 / 22
DFPlayer (audio)RX / TX18 / 5

Pin assignments are defined at the top of each module (jga_motors.hpp, emotions.hpp) and in the corresponding .cpp files.

Robot constants

  • Wheel radius: 0.0427 m
  • Wheel base (track width): 0.2195 m
  • Encoder ticks per wheel revolution: 1980
  • Speed range: 0.08 – 0.3 m/s
  • PID gains (per wheel): kp = 0.8, ki = 0.4, kd = 0.1

Requirements

  • PlatformIO (CLI or the VS Code extension)
  • A ROS 2 installation on the host (firmware targets Jazzy)
  • A running micro-ROS Agent on the host

Configuration

Edit the WiFi credentials and the micro-ROS Agent endpoint in source/config/uros_wifi_config.h:

cpp
char ssid[] = "your-wifi-ssid";
char psk[]  = "your-wifi-password";

IPAddress agent_ip(192, 168, 0, 100);   // host running the micro-ROS Agent
size_t    agent_port = 8888;

Review the hardware pins (see pinout above) and, if needed, the robot dimensions and PID gains in jga_motors.hpp.

The firmware ships a custom.meta that raises the micro-XRCE-DDS transport MTU and entity limits — keep it in sync if you add publishers/subscriptions.

Build, flash and monitor

source/ is a PlatformIO project. From that directory:

bash
cd source

pio run                        # compile
pio run -t upload              # flash over USB
pio device monitor -b 115200   # open the serial monitor

Running with ROS 2

  1. Start the micro-ROS Agent on your ROS 2 host (matching the IP/port configured in firmware):

    bash
    ros2 run micro_ros_agent micro_ros_agent udp4 --port 8888
  2. Power on the ESP32. It connects to WiFi, registers its nodes with the Agent, and synchronizes its clock with the host. If the Agent becomes unreachable it stops the motors and recreates its ROS entities automatically.

  3. Inspect the graph:

    bash
    ros2 topic list
    ros2 topic echo /scan

Topics and frames

Nodes: minibot_lidar and minibot_jga.

DirectionTopicType
Publish/scansensor_msgs/LaserScan
Publish/odomnav_msgs/Odometry
Publish/imu/data_rawsensor_msgs/Imu
Publish/tftf2_msgs/TFMessage
Subscribe/cmd_velgeometry_msgs/Twist
Subscribe/robot_emotionstd_msgs/Int32

Frames: odom → base_link, plus base_laser_link for the scan.

Drive the robot with, for example:

bash
ros2 run teleop_twist_keyboard teleop_twist_keyboard

Mechanical design

3D models live in designs/:

  • Fusion/Robotito v3.f3z — editable Fusion 360 source
  • STEP/Robotito v3.step — neutral CAD exchange format
  • STLs/ — printable parts (main body, wheels and tires, caster wheel + support, motor clamps, LiDAR support, PCB support and spacers, front face)

The control PCB (KiCad project, gerbers, and a 3D STEP export) is in schematics/.

Implementation notes

  • The firmware runs dedicated FreeRTOS tasks for LiDAR serial parsing, LaserScan assembly/publishing, and the micro-ROS executor, pinned across both cores.
  • Motor speed is closed-loop: encoder ticks feed a per-wheel PID with a state machine for smooth start/stop and braking.
  • Odometry is integrated from encoder counts and published with the odom → base_link TF; the BMI160 adds orientation data on /imu/data_raw.
  • The Delta-2A driver corrects the original mirror inversion and uses a start-angle zero-crossing detector for consistent scan framing.
  • A periodic sync timer aligns the ESP32 clock with the micro-ROS Agent so message timestamps are valid on the host.

License

This project — firmware, mechanical designs, schematics, and documentation — is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License (CC BY-NC-SA 4.0).

You are free to share and adapt the material for non-commercial purposes, provided you give appropriate credit and license your derivatives under the same terms. Commercial use requires prior written permission from the author.

See LICENSE for the full text · License summary

Parts

29
QtyValueFootprintReferences
3Jumper_3_OpenConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJP1, JP2, JP3
3MountingHole_3.2mm_M3_PadMountingHole:MountingHole_3.2mm_M3_Padtornillo1, tornillo3, tornillo4
2R_220Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR2, R3
2R_4K7Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR4, R5
2~huellas_robotito:DRV8871DRV_L1, DRV_R1
2~Connector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_VerticalMotor_L1, Motor_R1
1DiodoDiode_THT:D_DO-41_SOD81_P7.62mm_HorizontalD3
1ESP32-S3-DevKitCPCM_Espressif:ESP32-S3-DevKitCU1
1Head_LConnector_PinHeader_2.54mm:PinHeader_1x11_P2.54mm_VerticalJ1
1Head_RConnector_PinHeader_2.54mm:PinHeader_1x11_P2.54mm_VerticalJ2
1LED_azulLED_THT:LED_D5.0mmD2
1LED_rojoLED_THT:LED_D5.0mmD1
1LOGOlogo:logo_esp32_20mmG***
1LOGOlogo:logo_uros_30mmG***
1LOGOlogo:logo_uma_40mmG***
1LOGOlogo:logo_robotito_20mmG***
1PN2222APackage_TO_SOT_THT:TO-92_Inline_WideQ1
1R_1kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR1
1~huellas_robotito:BMI160BMI1
1~huellas_robotito:LM2596SLM2596S1
1~Connector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_VerticalLidar1

Similar boards

  • 2 layers100 × 100 mmController, the printed circuit board in 3D

    Controller

    Hartmannlight/Buttonbox

    Firmware and PCB files for an ESP32-S3 sim-racing button box with five rotary encoders, capacitive touch on encoder/buttons, two ST7789 displays, MCP23017 button/LED expansion, MPR121 touch sensing, WS2812 status LEDs…

    66 parts
  • 2 layersBlinking led, the printed circuit board in 3D

    Blinking led

    itsSuwy/esp32-rust-lab

    Laboratorio personal de proyectos, ejemplos y diagramas realizados con mi ESP32 cuya base principal es Rust orientado a su versión STD. Abarcando desde lo más simple hasta proyectos ligeros de IoT.

    5 partsMIT
  • 4 layers95 × 95 mmCube motherboard, the printed circuit board in 3D

    Cube motherboard

    willem-pennings/balancing-cube

    A cube that balances itself in a corner or edge using reaction wheels

    52 parts1.1kGPL-3.0
  • 2 layers129.9 × 63.6 mmTraeger rev 2.3.0.kicad pro, the printed circuit board in 3D

    Traeger rev 2.3.0.kicad pro

    jazzmonger/Traeger-PID-Controller

    Traeger Smoker/Grill Controller based on an

    45 parts36
  • 2 layers168.8 × 78.9 mmGameboy3, the printed circuit board in 3D

    Gameboy3

    ohasanov-hbrw/tribit32-advanced

    A tri-microcontroller, overengineered GameBoy Advance clone. More value was given to the controls and the exterior look, which is cool!

    61 parts8
  • 2 layers134.6 × 49.5 mmMem esp, the printed circuit board in 3D

    Mem esp

    fread/visvitalis

    A very simple modular relay computer

    71 parts7
  • 2 layers90 × 102 mmPL Toon, the printed circuit board in 3D

    PL Toon

    pl-toon/pl-toon-codes

    PL-TOON material

    39 parts7
  • 2 layers119.4 × 98.9 mmPCB Pami, the printed circuit board in 3D

    PCB Pami

    FIPATECH/CDFR26_PAMI

    Open source firmware and PCB for a differential mobile robot (PAMI) based on ESP32-S3 - Coupe de France de Robotique

    25 parts6

Questions

How big is the Pcb robotito PCB?

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

What parts does the Pcb robotito use?

29 parts, built around the ESP32-S3-DEVKITC-1-N8 and PN2222A. 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 Pcb robotito KiCad files?

From the grupo-avispa/minibot repository on GitHub, at the commit this page was made from: the board is schematics/pcb_robotito.kicad_pcb and its schematic schematics/pcb_robotito.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Pcb robotito design in my own project?

Its repository states no licence, so its author keeps all rights: ask grupo-avispa before reusing the design.