Skip to the content
4 layers45 × 49 mmSwarm drone, the printed circuit board in 3D

A fully custom, low-level embedded hardware and firmware platform designed for autonomous multi drone swarms. The system integrates custom STM32-based flight controller PCBs, coreless DC motor drive arrays for a micro…

Size
45 × 49 mm
Copper layers
4
Thickness
0.79 mm
Parts
108
Nets
94
Pads
388
Tracks, vias
1,282, 166
Pours
5
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
4 Oct 2026
Updated
28 Oct 2026

Overview

Swarm drone is an open-source printed circuit board by aniranaway, from the aniranaway/Drone_Swarm repository on GitHub. It is a 4-layer board of 45 × 49 mm with 108 parts on 94 nets, routed with 1,282 tracks and 166 vias.

It is built around the STM32F405RGT7, NRF24L01P-R and DWM3000, with the BMP581, GD25Q128ESIGR and ICM-42688-P among its other parts. Its parts include 38 capacitors, 25 resistors, 10 diodes, 7 ICs and 7 connectors. It belongs with the robots and motor control boards and the STM32 boards of this library.

Main components

9

README

README.md

Autonomous UWB Drone Swarm

A fully custom, low-level embedded hardware and firmware platform designed for autonomous multi drone swarms. The system integrates custom STM32-based flight controller PCBs, coreless DC motor drive arrays for a micro quadcopter form factor, Ultra-Wideband (UWB) 3D spatial localization, and custom control stacks built entirely from first principles—bypassing off-the-shelf flight controllers and third-party firmware stacks like PX4 or Betaflight.


Grand Objectives

  • Bare-Metal Flight Control Stack: Implement real-time 6-DoF sensor fusion and cascaded PID control loops running directly on STM32 microcontrollers.
  • Advanced State Estimation: Design and implement a custom Extended Kalman Filter (EKF) pipeline to fuse multi-sensor measurements (IMU, Barometer, UWB), effectively suppressing sensor noise and drift for precise real-time 6-DoF state estimation.
  • UWB Spatial Positioning: Achieve indoor positioning and tracking using UWB hardware operating across fixed anchor networks.
  • Autonomous Swarm Dynamics: Execute coordinated multi-agent formation flight, collision avoidance algorithms, and telemetry links managed via a custom ground control station.
  • Rigorous Systems Engineering: Maintain end-to-end engineering discipline across the full lifecycle—from System Requirements Documents (SRD) and component analysis to PCB layout, manufacturing, and firmware deployment.

Project Documentation

Detailed engineering decisions and specifications are broken down in the docs/ directory:


Repository Structure

  • /docs - System engineering documents, trade studies, and requirements.
  • /hardware - KiCad/Altium schematic captures and PCB layout files.
  • /firmware - STM32 C/C++ application logic (CMake/Ninja toolchain).

Development Roadmap

This project follows a structured hardware-software co-design lifecycle, progressing from systems engineering and hardware fabrication to low-level control, state estimation, and multi-agent coordination:

  • Phase 1: Requirements & Component Selection (Completed)
    Establish System Requirements Documents (SRD), execute trade studies for core components (MCU, IMU, UWB, Power), and calculate mass/power budgets.

  • Phase 2: Schematic Capture & Circuit Design (Completed) Design power regulation, coreless motor MOSFET drive arrays, RF layout rules for radio, SWD interfaces, sensor layouts, and dedicated test pads.

  • Phase 3: PCB Layout, Manufacturing & Board Bring-Up (In Progress) Perform 4-layer PCB layout with impedance matching, manage fabrication/assembly, and execute board bring-up (power rail verification, current draw checks, and SWD flashing).

  • Phase 4: Low-Level Drivers & Telemetry Baseline
    Develop register-level/HAL SPI drivers for the IMU, I2C drivers for the barometer, PWM timer outputs for motor control, UART telemetry output, and status LED error handlers.

  • Phase 5: Airframe Assembly & Hardware Integration
    Mount flight controllers to micro frames, wire motor connections, calibrate motor spin directions, and verify physical center of mass.

  • Phase 6: Advanced State Estimation & Flight Control
    Implement digital low-pass filtering, build a custom Extended Kalman Filter (EKF) pipeline for IMU/Baro/UWB fusion, write cascaded PID controllers, and perform tethered flight tuning.

  • Phase 7: Swarm Simulation & Waypoint Planning
    Develop simulation frameworks and Ground Control Station (GCS) telemetry interfaces to validate trajectory generation and collision avoidance prior to physical swarm deployment.

  • Phase 8: UWB Infrastructure & Multi-Agent Setup
    Deploy and calibrate fixed indoor UWB anchors, assemble secondary flight hardware, and establish inter-node wireless communications.

  • Phase 9: Swarm Coordination & Autonomous Flight
    Execute decentralized/centralized swarm algorithms for coordinated formation flight, multi-agent pathing, and real-time telemetry tracking.


Core Toolchain & Software Stack

  • GNU Arm Embedded Toolchain (arm-none-eabi-gcc) — Cross-compiler toolchain used to compile bare-metal C/C++ application logic into ARM Cortex-M machine code.
  • CMake — Meta-build system used to manage cross-compilation targets, include directories, linker scripts (.ld), and hardware macros in a clean, maintainable structure.
  • Ninja — High-speed build system executed by CMake to handle fast, parallelized incremental compilation.
  • STM32CubeMX — Graphical initialization utility used to configure MCU clock trees, pin assignments, and hardware peripherals (SPI, I2C, UART, TIM) while generating isolated HAL setup files.
  • OpenOCD — Open On-Chip Debugger used to flash binary targets (.elf/.hex) to the STM32 MCU and provide a live GDB server over Serial Wire Debug (SWD) via ST-LINK.
  • VS Code & Cortex-Debug — Primary IDE environment leveraging the Cortex-Debug extension for hardware breakpoints, register inspection, and integrated CMake builds.

Core Hardware Stack

  • Microcontroller: (In Progress - See Component Selection Analysis)
  • Spatial Positioning: (In Progress - See Component Selection Analysis)
  • IMU: (In Progress - See Component Selection Analysis)
  • Barometer: (In Progress - See Component Selection Analysis)
  • Power: (In Progress - See Component Selection Analysis)

Getting Started

(Instructions for cloning, compiling with CMake, and flashing the STM32 will go here).

Parts

108
QtyValueFootprintReferences
13100nCapacitor_SMD:C_0402_1005MetricC1, C2, C3, C4, C5, C10, C14, C17, C20, C21, C24, C26, C38
810kResistor_SMD:R_0402_1005MetricR1, R2, R5, R7, R16, R17, R18, R19
82k2Resistor_SMD:R_0402_1005MetricR8, R9, R22, R23, R24, R25, R26, R27
6LEDLED_SMD:LED_0603_1608MetricD5, D6, D7, D8, D9, D10
52u2Capacitor_SMD:C_0402_1005MetricC8, C9, C11, C12, C18
54k7Resistor_SMD:R_0402_1005MetricR3, R12, R13, R14, R15
410nCapacitor_SMD:C_0402_1005MetricC7, C16, C19, C29
4AO3400APackage_TO_SOT_SMD:SOT-23Q1, Q2, Q3, Q4
4Conn_01x02_SocketMotorJST:JST_S2B-ZR-3.4_LF__SN_J5, J6, J7, J8
4D_Schottky (C22452)Diode_SMD:D_SMAD1, D2, D3, D4
310uCapacitor_SMD:C_0603_1608MetricC6, C13, C15
21pCapacitor_SMD:C_0402_1005MetricC34, C37
227pCapacitor_SMD:C_0402_1005MetricC22, C23
24u7Capacitor_SMD:C_0603_1608MetricC25, C27
28p2Capacitor_SMD:C_0402_1005MetricC35, C36
2SM03B-SRSS-TB_LF__SN_ (C160403)header:JST_SM03B-SRSS-TB_LF__SN_J4, J9
1+3v3TestPoint:TestPoint_Pad_1.0x1.0mmTP7
1100kResistor_SMD:R_0402_1005MetricR21
1120RInductor_SMD:L_0603_1608MetricFB1
116MHz (C13738)Crystal:Crystal_SMD_3225-4Pin_3.2x2.5mmY1
11k5Resistor_SMD:R_0402_1005MetricR4
11nCapacitor_SMD:C_0402_1005MetricC30
11p5Capacitor_SMD:C_0402_1005MetricC33
122KResistor_SMD:R_0402_1005MetricR20
12n2Capacitor_SMD:C_0603_1608MetricC31
12n7Inductor_SMD:L_0402_1005MetricL1
133kResistor_SMD:R_0402_1005MetricR6
133nCapacitor_SMD:C_0603_1608MetricC28
13n9Inductor_SMD:L_0402_1005MetricL2
14p7Capacitor_SMD:C_0402_1005MetricC32
18MHzabm:ABM3B_ABRX1
18n2Inductor_SMD:L_0402_1005MetricL3
1ANT016008LCS2442MA1Antenna:ANT_ANT016008LCS2442MA1ANT1
1BMP581footprints:QFN10_BMP581_BOSU4
1CETestPoint:TestPoint_Pad_1.0x1.0mmTP4
1CSTestPoint:TestPoint_Pad_1.0x1.0mmTP5
1Conn_01x02_PinConnector_JST:JST_PH_S2B-PH-K_1x02_P2.00mm_HorizontalJ1
1DWM3000RF_Module:DWM1000DWM1
1GD25Q128ESIGRGD25Q128:SOP8_208MIL_GDVU6
1GNDTestPoint:TestPoint_Pad_1.0x1.0mmTP8
1ICM-42688-PICM-42688-P:PQFN50P300X250X97-14NU3
1INTTestPoint:TestPoint_Pad_1.0x1.0mmTP6
1MISOTestPoint:TestPoint_Pad_1.0x1.0mmTP1
1MOSITestPoint:TestPoint_Pad_1.0x1.0mmTP2
1SCKTestPoint:TestPoint_Pad_1.0x1.0mmTP3
1STM32F405RGT7Package_QFP:LQFP-64_10x10mm_P0.5mmU1
1SW_PushButton_Switch_SMD:SW_SPST_TS-1088-xR020SW1
1TPS7A91Package_DFN_QFN:Texas_S-PDSO-N10_EP1.2x2mm_ThermalViasU2
1VL53L1CXV0FY1Sensor_Distance:ST_VL53L1xU5
1nRF24L01PPackage_DFN_QFN:QFN-20-1EP_4x4mm_P0.5mm_EP2.5x2.5mmU7

Similar boards

  • 6 layers37 × 37 mmFc f405 2026-10-16 1025, the printed circuit board in 3D

    Fc f405 2026-10-16 1025

    ara-mkr/f405-flight-controller

    This is a flight controller I designed as a side project. It was fun and pretty challenging, and I'm planning to build a drone with it at some point!

    122 partsCERN-OHL-P-2.0
  • 4 layers130 × 64.3 mmMegabank, the printed circuit board in 3D

    Megabank

    timex-sinclair-projects/TS-2068-Megabank

    Battery-backed 4 MB expansion-bank RAM board for the Timex Sinclair 2068 (TS-Pico v3)

    97 partsMIT
  • 4 layers36 × 65 mmUwb beacon, the printed circuit board in 3D

    Uwb beacon

    dan-stefanov/locatof-hw

    Open-source localization project based on UWB Time-of-Flight ranging

    111 partsCERN-OHL-P-2.0
  • 4 layers105.6 × 104.8 mmDrone PCB, the printed circuit board in 3D

    Drone PCB

    Eemac/droneSwarm

    Code and build log for a PCB quadcopter swarm.

    229 parts
  • 2 layers76.1 × 87.9 mmBadge ESC 2025, the printed circuit board in 3D

    Badge ESC 2025

    endsummercamp/badge-2025

    120 parts9
  • 2 layers67.1 × 23.4 mmAFE4404-tri PPG, the printed circuit board in 3D

    AFE4404-tri PPG

    ShifatHossain/AFE4404-tri-PPG

    An AFE4404 and ESP32 PICO D4/V3 based device to acquire three wavelength PPG signal.

    34 parts2
  • 4 layers70.8 × 110 mmThors Arsenal, the printed circuit board in 3D

    Thors Arsenal

    shannon-greenlight/Thors-Arsenal

    Eurorack Module

    311 parts1GPL-3.0
  • 4 layers50 × 6 mmPfeil, the printed circuit board in 3D

    Pfeil

    artandtechspace/Smart-Arrow

    66 parts

Questions

How big is the Swarm drone PCB?

It measures 45 × 49 mm and has 4 copper layers, 0.79 mm thick.

What parts does the Swarm drone use?

108 parts, built around the STM32F405RGT7, NRF24L01P-R, DWM3000 and BMP581. 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 Swarm drone KiCad files?

From the aniranaway/Drone_Swarm repository on GitHub, at the commit this page was made from: the board is hardware/swarm_drone.kicad_pcb and its schematic hardware/barometer.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Swarm drone design in my own project?

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