Skip to the content
2 layers49 × 91.5 mmControl SWARM, the printed circuit board in 3D

Este repositorio contiene el sistema completo de control para un robot móvil de 4 ruedas omnidireccionales, desarrollado en la Universidad de los Andes. El proyecto integra:

Size
49 × 91.5 mm
Copper layers
2
Thickness
1.6 mm
Parts
27
Nets
21
Pads
127
Tracks, vias
415, 5
Pours
2
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
16 Mar 2026
Updated
16 Oct 2026

Overview

Control SWARM is an open-source printed circuit board by RASuniandes, from the RASuniandes/SWARM2026_01 repository on GitHub. It is a 2-layer board of 49 × 91.5 mm with 27 parts on 21 nets, routed with 415 tracks and 5 vias.

It is built around the ESP32-C3-MINI-1. Its parts include 14 resistors, 2 ICs, 1 diode, 1 connector and 1 switch. It belongs with the ESP32 and RISC-V boards of this library.

Main components

1

README

README.md

SWARM - Sistema de Control para Robot Móvil

Descripción General

Este repositorio contiene el sistema completo de control para un robot móvil de 4 ruedas omnidireccionales, desarrollado en la Universidad de los Andes. El proyecto integra:

  • Hardware: ESP32 con 4 motores DC con encoders y drivers L8871
  • Software: ROS 2 (Robot Operating System) con múltiples modos de control
  • Sensores: LiDAR YDLidar para navegación autónoma
  • Visión: MediaPipe para seguimiento de personas

Estructura del Proyecto

text
SWARM/
├── ros4meetup/              # Paquete principal ROS2
│   ├── ros4meetup/          # Workspace de ROS2
│   │   ├── src/             # Código fuente
│   │   │   ├── ros4meetup/  # Nodos de control
│   │   │   ├── lidar/       # Driver del LiDAR
│   │   │   └── ...          # Otros paquetes
│   │   └── ...              # Build, install, log
│   └── README.md            # Documentación detallada de ROS2
├── CódigoControl/           # Firmware para ESP32 (Arduino)
├── Control SWARM/           # Diseños de PCB (KiCad)
├── Electrónica/             # Esquemáticos y documentación electrónica
├── Dashboard preliminar/    # Interfaz web de monitoreo
└── ojos_frontales/          # Codigo ESP32 para ojos (Matriz 64x2)

Características Principales

Modos de Control

  1. Vision (por defecto): Seguimiento de personas usando MediaPipe
  2. Autonomous: Navegación autónoma con evitación de obstáculos (LiDAR)
  3. Teleop: Control manual por teclado (W/A/S/D)
  4. Remote: Control remoto desde ESP32
  5. Web: Control desde interfaz web

Arquitectura

text
[Controladores]  →  [Router]  →  [Serial Bridge]  →  [ESP32]  →  [Motores]
                      ↓ cmd_vel
                  [Comandos de velocidad]

Cada controlador publica en su propio topic (vision_command, autonomous_command, etc.). El Router selecciona qué controlador está activo y reenvía sus comandos a cmd_vel. El Serial Bridge convierte estos comandos a JSON y los envía al ESP32 por puerto serial.

Inicio Rápido

Requisitos

  • Ubuntu 22.04 o superior
  • ROS 2 Humble
  • Python 3.10+
  • Arduino IDE (para firmware ESP32)

Instalación

  1. Clonar el repositorio:
bash
git clone https://github.com/RASuniandes/SWARM.git
cd SWARM/ros4meetup
  1. Configurar el entorno ROS2:
bash
source ros4meetup/ros.bash
  1. Compilar el workspace:
bash
cd ros4meetup
colcon build
source install/setup.bash
  1. Cargar firmware en ESP32:
    • Ver documentación en ros4meetup/firmware/README.md

Ejecución

  1. Iniciar el sistema básico:
bash
# Terminal 1: Router
ros2 run ros4meetup router

# Terminal 2: Serial Bridge
ros2 run ros4meetup serial_bridge

# Terminal 3: Controlador (elige uno)
ros2 run ros4meetup vision_controller
# o
ros2 run ros4meetup autonomous_controller
# o
ros2 run ros4meetup teleop_controller
  1. Cambiar de modo:
bash
ros2 topic pub /config std_msgs/String "data: 'autonomous'" --once

Documentación Adicional

  • ROS2 y Nodos: Ver ros4meetup/README.md
  • Firmware ESP32: Ver ros4meetup/firmware/README.md
  • Electrónica: Ver Electrónica/
  • PCB: Ver Control SWARM/

Desarrollo

Estructura de Topics ROS2

  • /cmd_vel (Twist): Comandos de velocidad final al robot
  • /config (String): Cambio de modo de control
  • /vision_command (Twist): Comandos del controlador de visión
  • /autonomous_command (Twist): Comandos del controlador autónomo
  • /teleop_command (Twist): Comandos del control por teclado
  • /remote_command (Twist): Comandos remotos desde ESP32
  • /laser_scan (LaserScan): Datos del LiDAR
  • /esp_feedback (String): Retroalimentación del ESP32
  • /faces_direction (String): Dirección para LEDs faciales

Hardware

  • Microcontrolador: ESP32
  • Motores: 4x DC con reductora 1:80 y encoders (12 PPR)
  • Drivers: L8871 (H-bridge)
  • Sensor: YDLidar X4
  • Cámara: USB o CSI para visión

Licencia

MIT

Parts

27
QtyValueFootprintReferences
5RR2Resistor_SMD:R_0201_0603Metric_Pad0.64x0.40mm_HandSolderR4, R6, R11, R13, R14
3RR1Resistor_SMD:R_0201_0603Metric_Pad0.64x0.40mm_HandSolderR8, R10, R12
2Line Button 3Button_Switch_SMD:SW_SPST_PTS645Sx43SMTR92B3, B8
2RL3Resistor_SMD:R_0201_0603Metric_Pad0.64x0.40mm_HandSolderR3, R9
2Radial Button 3Button_Switch_SMD:SW_SPST_PTS645Sx43SMTR92B6, B7
1ESP32-C3_MINIESP32C3:MODULE_ESP32-C3_SUPERMINI_THU1
1JOYSTICKjoystick:XDCR_COM-09032U2
1LEDLED_THT:LED_D3.0mm_Horizontal_O1.27mm_Z2.0mm_ClearD1
1Line Button 1Button_Switch_SMD:SW_SPST_PTS645Sx43SMTR92B1
1Line Button 2Button_Switch_SMD:SW_SPST_PTS645Sx43SMTR92B2
1RL1Resistor_SMD:R_0201_0603Metric_Pad0.64x0.40mm_HandSolderR1
1RL2Resistor_SMD:R_0201_0603Metric_Pad0.64x0.40mm_HandSolderR2
1RR3Resistor_SMD:R_0201_0603Metric_Pad0.64x0.40mm_HandSolderR5
1RR4Resistor_SMD:R_0201_0603Metric_Pad0.64x0.40mm_HandSolderR7
1Radial Button 1Button_Switch_SMD:SW_SPST_PTS645Sx43SMTR92B5
1Radial Button 2Button_Switch_SMD:SW_SPST_PTS645Sx43SMTR92B4
1SW_SPDTButton_Switch_THT:SW_Slide_SPDT_Angled_CK_OS102011MA1QSW2
1Screw_Terminal_01x02TerminalBlock_MetzConnect:TerminalBlock_MetzConnect_360291_1x01_Horizontal_ScrewM3.0_BoxedJ1

More from RASuniandes/SWARM2026_01

2
  • 2 layers48.3 × 86.2 mmControl SWARM, the printed circuit board in 3D

    Control SWARM

    RASuniandes/SWARM2026_01

    Este repositorio contiene el sistema completo de control para un robot móvil de 4 ruedas omnidireccionales, desarrollado en la Universidad de los Andes. El proyecto integra:

    25 parts
  • 2 layers135 × 75 mmPCB drivers RAS, the printed circuit board in 3D

    PCB drivers RAS

    RASuniandes/SWARM2026_01

    Este repositorio contiene el sistema completo de control para un robot móvil de 4 ruedas omnidireccionales, desarrollado en la Universidad de los Andes. El proyecto integra:

    18 parts

Similar boards

  • 4 layers98 × 48 mmEsphome pressure, the printed circuit board in 3D

    Esphome pressure

    gcormier/esphome-pressure

    esphome board with a differential pressure sensor, supporting a variety of power sources

    51 parts102
  • 4 layers81.7 × 31.8 mmEsp32c3 fpga, the printed circuit board in 3D

    Esp32c3 fpga

    ICE-V-Wireless/ICE-V-Wireless

    Combined ESP32C3 and iCE40 FPGA board

    94 parts82MIT
  • 4 layers83 × 83 mmBlinkekatze, the printed circuit board in 3D

    Blinkekatze

    TobleMiner/blinkekatze

    Blinkekatze, a replacement PCB to turn cat themed night-lights into interactive light displays

    134 parts34
  • 4 layers50 × 31 mmSapphire captain, the printed circuit board in 3D

    Sapphire captain

    gregdavill/daikin-esp

    ESP32-C3 hardware to connect to a Daikin ducted A/C system. enabling WiFi control in Home Assistant.

    77 parts29
  • 2 layers27.5 × 32 mmFunHomeSwitch, the printed circuit board in 3D

    FunHomeSwitch

    ZhiFun/FunHome

    DIY design of smart home hardware based on Home Assistant.

    41 parts29MIT
  • 4 layers36.7 × 49 mmMegadesk companion, the printed circuit board in 3D

    Megadesk companion

    gcormier/megadesk_companion

    companion board for megadesk to add smarthome functionality

    35 parts27
  • 2 layers62.9 × 47 mmESP32 CAN, the printed circuit board in 3D

    ESP32 CAN

    FL0WL0W/ESP32C3-CAN-Extender

    This module uses an ESP32C3 with WiFi and BLE. It has 3 configurable outputs (5V push pull, Open Drain, 12V pullup), 4 analog or digital inputs, CAN transceiver, and an automotive power supply so it can be installed…

    72 parts20GPL-3.0
  • 2 layers40 × 70 mmCo2home, the printed circuit board in 3D

    Co2home

    gcormier/co2home

    Phyiscally, this should also work with the Senseair S8 as it has the same pinouts. ESPHome provides a different block to work with this.

    20 parts20

Questions

How big is the Control SWARM PCB?

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

What parts does the Control SWARM use?

27 parts, built around the ESP32-C3-MINI-1. 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 Control SWARM KiCad files?

From the RASuniandes/SWARM2026_01 repository on GitHub, at the commit this page was made from: the board is Control SWARM/Control SWARM.kicad_pcb and its schematic Control SWARM unicapa/Control SWARM.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Control SWARM design in my own project?

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