An Open Source and Open Hardware Deep Learning-Powered Visual Navigation Engine for Autonomous Nano-UAVs

Daniele Palossi, Francesco Conti, Luca Benini

Abstract

Autonomous navigation for nano-scale Unmanned Aerial Vehicles (UAVs) is constrained by severe power and computational limits. This paper presents a fully onboard deep learning navigation pipeline for a 27-gram nano-UAV. By integrating a custom ultra-low-power hardware shield (PULP-Shield) with an optimized residual convolutional neural network (PULP-DroNet), the system achieves real-time obstacle avoidance and autonomous indoor flight at speeds up to 1.5 m/s without relying on external computation or remote base stations.

Introduction

Nano-UAVs, such as the palm-sized Crazyflie 2.0, are ideal for indoor applications like search-and-rescue or warehouse monitoring due to their safety and agility. However, achieving true autonomy—where sensing, reasoning, and control occur entirely onboard—is challenging. Traditional navigation stacks are too computationally heavy for the sub-10W power budget and milligram-scale payload capacity of these drones. Most existing "autonomous" nano-drones rely on off-board processing via radio links or external positioning systems. This work introduces a vertically integrated solution that enables fully autonomous, untethered flight.

System Architecture

The researchers achieved autonomy through a co-design of hardware and software, focusing on extreme efficiency.

Hardware: The PULP-Shield

The system utilizes a custom 5-gram pluggable PCB designed for the Crazyflie 2.0. At its core is the GAP8 SoC, based on the open-source Parallel Ultra-Low-Power (PULP) architecture. The GAP8 features a RISC-V "Fabric Controller" for system management and an 8-core cluster optimized for parallelizing intensive AI workloads.

The GAP8 SoC architecture featuring the PULP cluster and memory hierarchy.

Software: PULP-DroNet

The navigation engine is based on DroNet, a residual CNN originally developed for larger drones. To deploy it on a resource-constrained SoC lacking a floating-point unit and with limited L2 memory (512 KB), several optimizations were implemented:

  • Quantization: The network was converted from 32-bit floating-point to 16-bit fixed-point arithmetic.
  • Batch-Norm Folding: Batch normalization layers were mathematically merged into preceding convolutional layers during inference to reduce computational overhead.
  • Memory Management: A double-buffering scheme ensures efficient data movement between the camera, L2 memory, and the L1 scratchpad, preventing processor stalls.
The PULP-DroNet architecture, showing the residual blocks and output heads for steering and collision probability.

Training and Datasets

The model was trained using a multi-source approach to ensure robust generalization:

  1. Udacity Self-Driving Car Dataset: Provided data for corridor following and steering.
  2. Zurich Bicycle Dataset: Used for training collision probability detection.
  3. Custom Extension: 1,122 images were collected using the drone’s onboard HiMax camera to fine-tune the model to the specific visual characteristics and noise of the low-resolution sensor.

Results and Discussion

The integrated system demonstrates high efficiency and performance:

  • Throughput and Power: The CNN runs at up to 18 frames per second (fps). Power consumption ranges from 64 mW at 6 fps to 272 mW at 18 fps, significantly lower than typical mobile processors.
  • Flight Performance: The drone successfully navigated a 113-meter path in an unseen environment, avoiding obstacles at speeds up to 1.5 m/s.
  • Weight Trade-off: The 5-gram hardware addition resulted in a 22% reduction in flight time. This highlights that for nano-UAVs, the physical weight of the electronics is a more significant constraint than their electrical power consumption.

Conclusion

This work represents a milestone in nano-UAV autonomy, proving that sophisticated deep learning models can run entirely onboard within extreme power and weight constraints. By open-sourcing the hardware designs, datasets, and code, the authors provide a foundation for future research in decentralized, intelligent swarms of nano-drones. Future work will focus on reducing weight through flexible PCBs and integrating global localization (SLAM) capabilities.

Summary updated

Abstract

Nano-size unmanned aerial vehicles (UAVs), with few centimeters of diameter and sub-10 Watts of total power budget, have so far been considered incapable of running sophisticated visual-based autonomous navigation software without external aid from base-stations, ad-hoc local positioning infrastructure, and powerful external computation servers. In this work, we present what is, to the best of our knowledge, the first 27g nano-UAV system able to run aboard an end-to-end, closed-loop visual pipeline for autonomous navigation based on a state-of-the-art deep-learning algorithm, built upon the open-source CrazyFlie 2.0 nano-quadrotor. Our visual navigation engine is enabled by the combination of an ultra-low power computing device (the GAP8 system-on-chip) with a novel methodology for the deployment of deep convolutional neural networks (CNNs). We enable onboard real-time execution of a state-of-the-art deep CNN at up to 18Hz. Field experiments demonstrate that the system's high responsiveness prevents collisions with unexpected dynamic obstacles up to a flight speed of 1.5m/s. In addition, we also demonstrate the capability of our visual navigation engine of fully autonomous indoor navigation on a 113m previously unseen path. To share our key findings with the embedded and robotics communities and foster further developments in autonomous nano-UAVs, we publicly release all our code, datasets, and trained networks.
BibTeX
@inproceedings{palossi2019open,
  author = {Daniele Palossi and Francesco Conti and Luca Benini},
  title = {{An Open Source and Open Hardware Deep Learning-Powered Visual Navigation Engine for Autonomous Nano-UAVs}},
  booktitle = {DCOSS},
  year = {2019},
  url = {https://openreview.net/forum?id=B0LXbaWr3e},
}
Figure