Project
ArduSwarm
An open-source micro-UAV testbed for decentralized swarm robotics using Crazyflie hardware and the ArduPilot flight stack.

Overview
ArduSwarm is the focus of my master’s thesis research at the University of Ottawa. It is an open-source micro-UAV research platform for testing decentralized swarm flight control algorithms on real hardware rather, than only in simulation.
The platform uses Bitcraze Crazyflie 2.1 and Crazyflie 2.1 Brushless drones running the ArduPilot flight stack, with onboard localization, peer-to-peer communication, scriptable mission execution, and logging for repeatable experiments.
Motivation
Swarm algorithms are often developed in simulation, where communication latency, packet loss, sensor drift, actuator limits, and hardware variation are difficult to model faithfully. ArduSwarm is meant to close that gap by giving researchers a compact indoor testbed for validating decentralized algorithms under real physical constraints.
The project is designed to have small, inexpensive micro-UAVs support decentralized swarm experiments without relying on motion capture, GPS, or a centralized ground station during flight.
Conference Paper And Award
This work was published as “ArduSwarm: A Self-Contained Micro-Aerial Vehicle Testbed for Experimental Swarm Flight Control” for the CSME-CFDSC-CSR 2026 International Congress in Vancouver, British Columbia. The paper received Second Place in the Best Student Papers Competition.
Hardware Architecture
The platform combines the Crazyflie STM32F4-based flight controller with modular expansion decks and an additional companion computer:
- Crazyflie 2.1 and Crazyflie 2.1 Brushless vehicles for compact indoor flight testing.
- Flow Deck v2 for PMW3901 optical flow sensing and VL53L1x Time-of-Flight ranging.
- AI Deck companion computer for high level coordintion, WiFi telemetry, and future edge AI experiments.
- MicroSD deck for onboard flight data capture and post flight analysis.
- Custom 3D-printed guards with motion capture marker mounts for OptiTrack benchmarking.
Technical Work
The main engineering challenge was adapting ArduPilot (ArduCopter) to a very small drone platform while preserving enough autonomy, sensing, and communication capability for swarm research. This required work across embedded software, hardware integration, test infrastructure, and experimental validation.
Key areas included:
- Porting and optimizing ArduPilot for the Crazyflie STM32F4 flight controller.
- Adding and tuning drivers for optical flow, Time-of-Flight ranging, and non-GPS EKF state estimation.
- Building a communication architecture that supports both telemetry and low-latency peer-to-peer drone communication.
- Routing MAVLink and custom messages between the flight controller, AI Deck companion computer, nRF51 radio path, WiFi telemetry path, and ground tools.
- Implementing scriptable high-level control through Lua, Python bridges, and custom mission actions.
- Creating repeatable validation workflows using onboard SD logs, OptiTrack ground truth, and post-flight analysis scripts.
The software architecture separates low-level stabilization and state estimation from higher-level coordination. The STM32F4 flight controller handles real-time flight control, while the AI Deck can support mission logic, communication handling, and future distributed coordination algorithms.
Experimental Validation
ArduSwarm has been validated through a series of indoor experiments covering onboard localization, peer-to-peer communication, leader-follower control, and collision avoidance behavior.
In a separate decentralized command experiment, the full control loop reported a median command latency of 333 ms. That value includes mission logic, message routing, and vehicle response, while the P2P echo test above isolates the lower-level packet exchange behavior.
Additional collision avoidance experiments used RSSI as a lightweight proximity signal. A flying drone listened for peer packets from a second drone, filtered the RSSI readings, and climbed when the other vehicle entered a close-proximity threshold.
Results
The project demonstrates a self-contained micro-UAV swarm testbed with onboard localization, peer-to-peer communication, repeatable logging, and early decentralized behavior. The CSME 2026 paper reports 0.35 m position RMSE against motion capture ground truth and a median decentralized command latency of 333 ms for the leader-follower experiment.
The testbed also establishes the infrastructure for future work: a hardware platform, software stack, logging pipeline, and validation workflow that can support more advanced decentralized algorithms.
Future Thesis Work
My future thesis work builds on ArduSwarm by developing lightweight decentralized state estimation for indoor MAV swarms. The goal is to reduce drift and improve relative awareness without relying on external motion capture systems or centralized localization.
The planned direction is a distributed graph optimization approach that fuses onboard odometry with peer-to-peer relative measurements, UWB ranging, loop closure events, and uncertainty-aware filtering. A major focus will be the practical tradeoff between accuracy, bandwidth, onboard compute load, solver frequency, and communication reliability on resource-constrained aerial robots.


