Andorinha

thumbnail

Andorinha is a fully custom quadcopter and my latest, most ambitious attempt at building a complete drone stack from scratch. It serves as the primary flying testbed for the PlumaN6 controller (STM32N6), the bare-metal Instinct firmware, and the Vantage ground control station—giving me both a great learning opportunity and complete design freedom across the whole system.

The goal is an autonomous platform with no SBC and no Linux, where flight control, optical flow, neural object detection, and video streaming all run on a single microcontroller. The architecture is also meant to leave enough headroom for future algorithms and eventually carry the same stack over to other vehicle platforms.

Targets and current status:

  • Stage: V1 mechanical assembly & bench bring-up (not yet flown)
  • Weight: ~380g V1 testbed (long-term target: sub-250g)
  • Controller: PlumaN6 (STM32N6 + Neural-ART NPU)
  • Firmware: Instinct (C++ / ThreadX / No HAL)
  • Ground Station: Vantage (custom PC tool for telemetry, tuning & video — WIP)

Andorinha’s general shape and size come from two main design goals: integrating a future custom 3-axis camera gimbal up front, and targeting a compact sub-250g class similar to the DJI Mini 5 Pro (including a comparable motor and propeller size). Version 1 has an unfolded footprint of just over 400x320x75 mm (W x L x H), with downward-folding arms that bring it under 120x320x215 mm when folded. These dimensions are planned to be reduced in later iterations.

Andorinha V1 Overview

The main body is a 3D-printed shell housing the electronics stack from bottom to top: a downward-facing sensor suite (low-resolution global shutter camera + ToF sensor), the PlumaN6 main board, the off-board IMU module, and the 2S 18650 battery pack on top. The nose holds a 3D-printed gimbal placeholder carrying the forward camera module and its adapter PCB. The detachable arms hinge directly off the main body and carry the motors, ESCs, and removable prop guards.

Version 1 makes plenty of unoptimized design choices on purpose. The focus right now is easy assembly, quick bench access, and splitting the frame into smaller sub-parts so I can iterate fast while working through the mechanical details.

System Architecture

Everything on the drone connects straight into the PlumaN6: sensors, cameras, ESCs, and radio links. There is no additional companion computer to handle video and streaming tasks. Manual flight control uses a FlySky AFHDS 2A receiver, while live telemetry, tuning, and video feed go over a custom raw binary link and connect to Vantage for debugging. An additional MAVLink link is also available for QGroundControl. The electronics and schematic details live on the PlumaN6 page, while the airframe-specific parts are detailed further down in the Hardware section.

Subsystem V1 Implementation Notes
Flight Controller PlumaN6 (STM32N657) Single-chip control + vision + NPU
Airframe Custom 3D-printed folding frame Built for fast iteration, not minimum mass
Propulsion 4x 1503 BLDC motors + ESCs + 150mm folding props Bench thrust data linked below
Battery Custom 2S 18650 Li-Ion pack Removable 3D-printed enclosure
Vision & Ranging MIPI-CSI camera + OV9281 (DCMI) + ToF Forward AI/video + downward optical flow

Weight Distribution (V1)

At 380g, Version 1 sits 130g (+52%) over the long-term 250g target. The biggest weight contributions come from the 3D-printed plastic parts followed by the battery cells:

Subsystem Components Mass (g) Share
Central Body Printed chassis + PlumaN6, add-ons, cameras, wiring 150 39.5%
Arms (4x) Printed arms (4x15g) + Motors/Props/ESCs (4x15g) 120 31.6%
Battery Pack 2x 18650 cells (93g) + Printed case & contacts (17g) 110 28.9%
Total printed plastic + electro-mechanical 380 100%

For this first version, the focus of the body design was not to trim as much weight as possible but to make a robust foundation that is easy to use and iterate on. Once the overall design is proven by first flight tests, there are quite a few easy places to trim mass: reducing connector counts and wire lengths, trimming the 3D-printed body pieces, and possibly using a hybrid 3D-printed and carbon-fibre frame. The priority now is to make sure that the current version has a safe thrust-to-weight ratio for the propulsion system, with some margin before the first untethered hover test.

Frame Body

Andorinha V1 Body V2.3

The main body is compost of two parts: a lower body (~44g) and an upper body (~27g). The lower body acts as the central structural piece where the arms, gimbal, upper body, and electronics attach. At the front, it integrates a gimbal using four rubber-dampened mounting points to decouple the frame vibrations from the camera assembly. Front and rear cutout slots provide passive ventilation for the internal electronics, and all screw points use heat-set threaded inserts.

Version 1 is intentionally overbuilt, using a 2 mm wall thickness and added cross brasses at specific points. It is printed in PLA, making it very stiff but also heavier then if using ABS/ASA. Using 3D printing gives full freedom to enclose the electronics cleanly (rather than leaving boards exposed in a traditional stacked-plate frame) and allows rapid design iteration, at the cost of higher weight and lower stiffness than carbon fiber. A hybrid 3D-printed and carbon-fiber frame is planned for future versions.

Switching from PLA to ASA cuts printed part mass by ~15% with zero geometry changes—and because ASA is tougher and handles heat better, wall thicknesses can also be trimmed down once V1 is validated:

Filament (Bambu Lab TDS) Density (g/cm³) Mass vs. PLA Notes for Frame Use
PLA (V1 current) 1.24 Baseline High stiffness, easy to print, heavy and low heat resistance
PETG 1.25 +0.8% Better impact resistance than PLA, similar weight
ASA (V2 candidate) 1.05 -15.3% Lighter, good impact/heat resistance, allows thinner walls

The current downward-folding arm mechanism is not yet stiff or robust enough, and folding downward is not very practical. Version 2 will either remove the folding hinges entirely or switch to a horizontal side-folding mechanism

Propulsion

Andorinha V1 Arm FR V2.4

Propulsion is built around inexpensive, widely available 1503 BLDC motors paired with 140 mm diameter folding propellers. Several compact 2S “Red” and “Blue” BLDC ESC boards (with different MOSFET stages) are currently being evaluated for the build.

The idea is to mount the ESCs directly inside the arms, keeping motor and signal wiring fully routed and hidden inside the arm channels into the main body. The current version uses inline connecters both between the ESC and main body and between the motor and ESC, making it easy to swap drivers during testing and speed up assembly. Tis will be changed to direct soldered connection in the final version.

The propulsion system was tested on my Motor Test Stand reaching a peak thrust of 160g per motor at 7.2V and 3.2A (640g total).At the current 380g V1 weight, that results in a theoretical thrust-to-weight ratio of 1.68, not ideal but manageable for hover testing. Preferred would be a thrust-to-weight ratio above 2 for normal applications and over 4 for acrobatics. Cutting the drone’s mass down to the 250g target brings that ratio above 2.5 with the same propulsion system.

Battery Pack

Andorinha V1 Top V2.3 wBattery

The battery pack is integrated into the upper body part using metal clip contacts for fast easy cell swaps. The pack position is fixed in V1 (with room to shift it in CAD if needed) and currently places the center of mass right at the geometric center of the four motors.

The cells used are two series 18650 cells, which are very easy to find and already have a protective metal casing. Using unprotected Murata US18650VTC6M cells (3000 mAh, 30A continuous discharge rating) gives an estimated worst-case full-thrust runtime of ~14–15 minutes. For V1 bench and initial flight tests, the pack connects directly to the ESCs and PlumaN6 while a dedicated BMS board, providing cell protection, balanced charging, and high-resolution voltage/current telemetry, is still in development. A higher-capacity endurance pack using Samsung INR21700-50S cells (5000 mAh, 35A rating, +67% capacity) is also planned for later testing.

Avionics & Sensor Mounting

Andorinha V1 Top V2.3 wIMU

All flight electronics, processors, and sensor details are documented on the PlumaN6 page. The PSBs mount directly to the lower body with M2.5 screws, linked via flat flex cables between stacked boards and JST-GH harnesses (mostly following Pixhawk pinouts) for external modules. The offboard IMU module is directly mounted to the upper body in a first version and rubber-dampened in a second variant, to compare the benefits of the dampened mounting. A multi-material upper body (with an integrated TPU isolation section) is also being considered and in early development.

The micro-SD card and USB-C are accessible from a side cutout of the main body while a magnetic pogo-pin connector on the underside exposes a dedicated telemetry UART without opening the frame.

The MIPI-CSI camera is mounted at the front of the drone, in the future with a DIY gimbal. The front drone arms are positioned so that the propellers do not enter the FOV of the camera. The downward-facing low resolution camera and ToF sensor sit recessed behind the lower body shell to protect them during rough landings, with a clear acrylic cover planned for later revisions.

Version 0: The Origin

The journey of developing my own Quadcopter started many years ago when I first read about the MultiWii copter started by Alexandre Dubus. He hacked the then-new Wii MotionPlus controller to get the gyroscope data and use it to control/stabilize a tri-copter. By using the gyroscopes of the Wii MotionPlus the cost was lowered to the hobbyist level as at that time commercial gyroscopes were very expensive.

At this time, I was immediately on board and wanted to make my own but had no knowledge of programming, much less what an Arduino was, and no money. And so my first steps were only building a frame and mistakenly buying knockoff Wii Nunchuk instead of the MotionPlus. After that, and when the more expensive parts needed to be bought (brushless motors and controllers), the project was shelved.

Version 1: First Hardware

After years of keeping the project in the back of my mind, and with real electronics experience as I started my Master's degree in Electronics Engineering, the Quadcopter was back on the table. What also helped a lot was my "discovery" of buying electronics parts from China through eBay and having built my first 3D Printer. I decided to build a small Quadcopter that used coreless motors, as they are much cheaper and easier to control without needing complex ESCs.

The first PCB prototype was designed in Eagle and had the Coreless motor controllers (single MOSFET) on it as well as interconnections for different modules bought from eBay. The core was an Arduino Pro Mini clone with a MPU6050 IMU module and an NRF24L01+ transceiver. The PCB was manufactured at home using the toner transfer method.

This hardware had major issues, mainly losing connection and resetting the microcontroller when the motors were powered due to supply voltage drops from the high currents and general noise introduced by the motors. It was good enough for me to learn programming the Arduino, acquiring and converting sensor data and my first remote radio links.

Version 2: First "Real" PCB

The next step was to develop a "real" PCB, with more features and better integration of all the modules. This was also my first PCB I ordered so it was a big step. Around the same time, I discovered the STM32F103 "Blue Pill" and switched to it for this board.

The MPU6050 IMU was integrated onto the PCB while also maintaining the possibility to solder the complete module. It also has the pins to solder a BMP280 module and the NRF24L01+ Radio module. A few programmable LEDs were also added, WS2812S, for a bit of color. The supply for the radio and the rest was split into two LDOs to try to mitigate the communication loss when powering the motors.

The software was completely rewritten since I had to port it anyway to the STM32. Sadly, the same reset and power-drop issues from the homemade PCB persisted when powering the motors. At the time I was unable to solve this problem, and after many frustrating weeks/months the project was shelved again...

Version 2.5: The Big Fail

After finishing my Master's degree and working on other hardware projects the Quadcopter project was revived for a third time. The first thing was to change the hardware to solve the power loss problem. My solution was to move the motor controller onto a separate PCB with the controller PCB stacked on top.

The controller PCB was also upgraded by adding external Flash for data logging, dual MPU6050 IMUs for redundancy, a USB port and a version of the STM32F103 MCU with more pins.

This hardware version was a complete failure. The controller PCB had many mistakes and after starting to solve some and seeing many more I scrapped this hardware completely and went back to the drawing board to design a new one from the ground up.

Version 3: The New Controller

After the huge failure that was the previous hardware I went back to the drawing board and started fresh. Many lessons learned over the years were incorporated and the most interesting features to me were added. The basis of the controller is the new STM32H723, at the time, the most powerful single-core MCU. The sensors were also changed, the motor controller used better MOSFETs, and a new radio module was designed and added while maintaining compatibility with the NRF24L01+ module as a starting point.

It also added dual LSM6DSO IMUs, an EFR32 radio, a downward optical flow camera, and a ToF sensor, laying the groundwork for PlumaN6.

Version 3.5: It Hovers!

This version improved the frame, making it lighter, slightly smaller, and stiffer. I also switched to new propellers and new motors. The new propellers, from the DJI Tello, are larger and in combination with the new motors generate almost double the thrust. This combined allowed it to have a thrust-to-weight ratio of around 2:1, the previous version was barely 1:1 on a full battery, far too heavy. This resulted in the first version, after years of attempts, that actually flew!

Version 4: PlumaN6 & Andorinha

When the STM32N6 came out, it sparked renewed motivation to start completely from scratch. When I saw the MIPI-CSI support, I immediately knew I wanted to build a drone with integrated vision, giving it something to actually see makes the project far more interesting.

By now, brushless motors and ESCs had also become very affordable, making the move away from coreless motors an easy choice. With how powerful the STM32N6 is, this version became a personal challenge to push a single microcontroller to its limits, bringing together the custom PlumaN6 controller and the Instinct firmware in Andorinha.