Robotics · Flight control
Autonomous UAV
A custom 5-inch FPV drone made autonomous with a Raspberry Pi 5, ArduPilot and MAVLink.
- Status
- Flown autonomously
- Type
- Personal project · 2024
- My role
- Built, programmed and flight-tested
- 3
- autonomous mission types scripted and tested
- 4
- pre-takeoff safety checks
- 4
- FPV frame sizes built: 75 mm to 7-inch
Overview
I build and fly FPV drones as a hobby. This one went further: a custom 5-inch quad with a Raspberry Pi 5 companion computer that flies GPS-assisted missions on its own.
- 01 · Mission DroneKit-Python Scripts + safety-check library
- 02 · Compute Raspberry Pi 5 Companion computer
- 03 · Link MAVLink over UART Commands and telemetry
- 04 · Control SpeedyBee F405 V3 STM32, reflashed to ArduPilot
- 05 · Fly 5-inch quad + GPS Custom FPV build
First attempt: the Pi as the receiver
I first tried direct control, with the Pi acting as the receiver over iBUS and using a gyro and a distance sensor. The response was too slow for stable flight, so I moved control to ArduPilot on the flight controller and kept the Pi for high-level commands over MAVLink.
Missions
- Take off, hover and land.
- Fly forward, return and land.
- Fly a square pattern.
Safety before takeoff
A reusable function library refuses to take off unless boundary coordinates, maximum height, battery voltage and GPS satellite count all pass. I planned and ran the test flights with the same caution.
What I learned
GPS-only positioning showed a small drift during missions. A lidar for height and position hold is the obvious next step.
Stack
- Raspberry Pi 5
- SpeedyBee F405 V3
- ArduPilot
- MAVLink
- DroneKit-Python
- GPS