DPilot

Custom Flight Computer, Autonomy Stack & Field Ground Station
Research & Development

A home-built autonomy system for small fixed-wing aircraft: a custom ESP32 flight board and a Raspberry Pi Zero 2W companion computer, onboard state estimation, long-range LoRa telemetry, and a handheld field computer for mission control. Now flying autonomous waypoint missions, with visual odometry research under way.

System Requirements & Development Status

πŸ›‘οΈ Regulatory Compliance

  • Drone Operations: Designed for compliance with local UAV/drone regulations (e.g., FAA Part 107 in the US, EASA in the EU). Operators are responsible for adhering to all applicable laws regarding flight altitude, airspace, and registration.
  • RF Transmission: LoRa modules operate in the 915MHz ISM band (US) or 868MHz (EU). Ensure operation within legal frequency and power limits as specified by the FCC (US) or local authorities. Maximum transmission power is set to comply with regional requirements.
  • Encryption: AES-128 encryption is used for secure communication, following best practices for data privacy and security.
  • Camera Use: Visual recording and AI camera features must comply with privacy and data protection laws. Obtain necessary permissions for video capture in public and private spaces.
  • PCB & Electronics: Custom PCB design follows RoHS and CE guidelines for electronic safety and environmental compliance.

Note: Always check and follow your local regulations for drone operation, RF transmission, and data collection. The DPilot system is intended for research and educational use.

🎯 Mission Requirements

  • Range: >15 km mission coverage
  • Flight Time: >30 minutes endurance
  • Communication: >5 km line of sight
  • Flying speed: >120 km/h capability
  • Visual navigation and SLAM

πŸ€– Development Status

  • βœ… Onboard state estimation (attitude, heading, position, velocity)
  • βœ… AES-128 encrypted LoRa communication
  • βœ… Frame-synchronized video/data logging
  • βœ… Web-based ground control interface
  • βœ… Custom PCB design (JLCPCB ready)
  • βœ… Autonomous waypoint flight (first flights 2026)
  • βœ… Flight-proven on two fixed-wing airframes
  • βœ… 6-DOF simulation with the flight software in the loop
  • βœ… Heading estimation robust to magnetometer disturbances
  • πŸ”„ Barometric altitude (integrated, validating in flight)
  • πŸ”„ Pitot-tube airspeed estimation
  • πŸ”„ Visual odometry implementation
  • πŸ“ AI camera integration (Planned)

βš™οΈ System Architecture

  • Total cost: <$300 (including aircraft)
  • Modular & expandable design
  • Cross-platform compatibility
  • Always-on WiFi hotspot access
  • PCB fabrication

The System in some videos

System Architecture & Interface

System Architecture
Original System Concept

Initial architecture concept. The current architecture is under "The DPilot Flight Computer".

Web Interface
Web Interface Dashboard

Live telemetry dashboard with smartphone-accessible controls and artificial horizon

Interactive Map
Interactive Map Interface

Web-based mission planning with real-time waypoint tracking and visualization

Aircraft Integration
Aircraft Integration

VolantexRC Ranger with 3D printed components and visual odometry camera

Phoenix Aircraft
Volantex Phoenix Platform

Volantex Phoenix 2000mm with dpilot system integration

System Features

πŸŽ₯ Enhanced Video Logging

  • Hardware H.264 encoding with frame-perfect sync
  • Custom frame-synchronized logger (<1 ms timestamps)
  • 60fps high-quality recording with telemetry
  • CSV logging synchronized to video epochs
  • Sony IMX500 AI Camera support (12MP)
  • Visual odometry processing capability

πŸ“‘ FHSS Communication System

  • Adaptive frequency hopping in the 915 MHz ISM band
  • Automatic link reacquisition
  • AES-128 encryption on all LoRa transmissions
  • Interference mitigation

πŸ€– Complete Autonomous Stack

  • 4-layer architecture: Route β†’ Plan β†’ Control β†’ Actuate
  • Vehicle-specific motion control (UAV, UGV, USV)
  • Smart waypoint advancement (pass-through detection)
  • Mission management with circular looping
  • Real-time position and velocity tracking

✈️ Mixed Mode SAFE Stabilization

  • Computer guidance with P/I/D stabilization (UAV)
  • Pilot can take over at any moment
  • Shared control with pilot inputs
  • Adaptive authority blending for smooth transitions
  • Level flight assist and rate damping
  • Automatic handback to the pilot if the companion computer goes silent

πŸ›°οΈ Advanced Sensor Fusion

  • Onboard attitude, heading, position and velocity estimation
  • Heading that stays accurate when the magnetometer is disturbed
  • IMU preintegration for GPS-denied navigation
  • Pitot-tube airspeed (in development)
  • GPS (10 Hz), IMU, QMC5883L magnetometer and BMP180 barometer fusion
  • Validated in 6-DOF simulation and by replaying flight logs
  • Time-controlled sensor sampling with anti-aliasing

🎯 Ground Control

  • Interactive map-based mission planning
  • Live telemetry stream
  • Vehicle configuration (UAV/UGV/USV)
  • Live mission control with distance tracking
  • H.264 video recording with flight instruments
  • Handheld field computer with touchscreen and voice call-outs
  • Desktop ground station in Python (Windows/macOS/Linux)

Technical Specifications

10Hz
GPS Update Rate
2–5 km
LoRa Range (line of sight)
AES-128
Encryption
<100ms
Command Latency
60 FPS
AI Camera Rate
12MP
Camera Resolution

🧠 State Estimation

DPilot estimates attitude, heading, position and velocity onboard by fusing the IMU, GPS and magnetometer. The heading estimate is designed to stay accurate when the magnetometer is disturbed in flight, and the estimators are validated both in simulation and by replaying logged flights.

Complete Hardware Integration

πŸ›©οΈ Aircraft Platform

Main Aircraft
  • Model: VolantexRC Ranger 1600/2000 and Volantex Phoenix 2000
  • Wingspan: 1600mm/2000mm EPO foam
  • Configuration: Pusher, PNP ready
  • Weight: 1500-1700g with telemetry (depending on Battery)
  • πŸ”— Source Link
Propulsion System
  • Motor: D3536 Brushless 1450KV
  • Propeller: 8x6 3-blade pusher
  • ESC: 60A with 4A UBEC
  • Mount: Custom 3D printed
  • πŸ”— Motor Link
Wing Configuration
  • Standard: Ranger 1600 wings
  • Slow Flight: Ranger 2000 wings
  • Flaps: Servo-controlled (2000)
  • Sensors: Wing loading monitoring

πŸ–₯️ Computing & Vision System

Mission Computer
  • CPU: Raspberry Pi Zero 2 W
  • RAM: 512MB LPDDR2
  • Storage: 32GB+ microSD
  • Housing: Custom 3D printed bucket
  • πŸ”— Source Link
Camera System
  • Standard: OV5647 5MP Sensor
  • Resolution: 1080p @ 30fps
  • Upgrade: AI Camera with IMX500 (optional)
  • Mounting: Downward + 15Β° forward
  • πŸ”— Source Link
Custom PCB Module
  • Design: 2-layer JLCPCB
  • Controller: ESP32-S3 + SX1262
  • Sensors: MPU6050 IMU integrated
  • Storage: SD card module

πŸ“‘ Communication & Display

Heltec WiFi LoRa 32 V3 (Drone & Ground)
  • MCU: ESP32-S3 dual-core
  • LoRa: SX1262 @ 915MHz
  • Display: 0.96" OLED 128x64 (plus a 2" colour TFT on the base station)
  • Power: USB-C powered
  • Range: 2-5km line of sight
  • Encryption: AES-128 security
  • πŸ”— Official Documentation

🌬️ Air Data Sensors

Barometer
  • Sensor: BMP180 (GY-68 board)
  • Interface: IΒ²C on the Raspberry Pi
  • Start-up: auto-detected, zero-altitude baseline calibrated on the ground
  • Use: barometric altitude fused with GPS altitude
  • Status: πŸ”„ integrated and logged; being validated in flight
Pitot-Static Airspeed
  • Measures: airspeed, the speed through the air rather than over the ground
  • Use: airspeed input for pitch and speed control (currently GPS ground speed)
  • Status: πŸ”„ in development

⚑ Power & Storage System

Power Regulation
  • Converter: LM2596 DC-DC Buck
  • Output: 5V regulated @ 3A
  • Input: ESC UBEC 5V @ 4A
  • Efficiency: >85% typical
  • πŸ”— Source Link
Data Storage
  • Module: Micro SD card breakout
  • Interface: SPI with pins
  • Capacity: 32GB+ Class 10
  • Integration: On custom PCB
  • πŸ”— Source Link
Power Budget
  • Pi Zero 2W: 4W peak with AI camera
  • Custom PCB: 2W with LoRa TX
  • Total Aircraft: ~7.5W continuous
  • Flight Time: >2 hours endurance

System Architecture & Data Flow

The DPilot Flight Computer

Two onboard computers. The custom ESP32 flight board runs the real-time functions: sensor sampling, attitude estimation, assisted-mode stabilization, servo and ESC outputs, SD logging and the LoRa link. The Raspberry Pi Zero 2W companion computer runs navigation and autonomy: state estimation, mission execution, guidance and control, and video recording with synchronized flight data.

The boards exchange sensor state and control commands over a serial link. A transmitter switch selects manual, assisted or autonomous mode; a hardware output selector routes either the pilot's or the computer's signals to the servos. If the companion computer stops sending commands, the flight board reverts to manual.

Ground side: a LoRa base station connected to the DPilot field computer or to a laptop running the desktop ground station (mission planning, geofences, live telemetry, post-flight debrief). Video and live view over Wi-Fi.

DPilot flight computer layout: ESP32 flight board and Raspberry Pi Zero 2W companion computer on the aircraft, connected by LoRa to a base station and ground-control laptop

The DPilot Base Station

The ground-side LoRa radio, in a 3D-printed enclosure mounted on the pilot's RC transmitter. Same ESP32 LoRa board and firmware as the aircraft; it starts in base-station mode when no IMU is detected.

It receives and decrypts telemetry, follows the frequency-hopping schedule, forwards telemetry over USB to the field computer or laptop, and uplinks their mission commands. Displays: a colour TFT (speed, altitude, artificial horizon or G-G diagram) and an OLED (latency, RSSI, packet counts, hopping channel, base GPS).

DPilot base station layout: ESP32 LoRa board driving a colour TFT and an OLED, with GPS and USB, linked by LoRa to the aircraft and by USB to the field computer or laptop, clipped onto the pilot's RC transmitter
Animated emulation of the base station displays replaying an autonomous flight: artificial horizon, then G-G diagram, with the link-status OLED below
Both base-station displays, rendered from the display firmware and replaying 30 seconds of an autonomous flight.

The DPilot Field Computer

Handheld ground station: Raspberry Pi Zero 2W with a 3.5" touchscreen in a 3D-printed case on the pilot's transmitter, with the base-station radio on USB. Runs headless with its own touch interface:

  • STATUS: artificial horizon, speed, altitude, battery, GPS and link health
  • MISSION: pick a mission, send its geofence, start and stop
  • MAP: offline satellite imagery with geofences, waypoints and the live track; waypoints can be edited on the spot
  • CAL: bench calibration of the vehicle's flight board
  • DRONE: Wi-Fi setup and remote start/stop of the companion computer's software

Voice announcements: mission start/stop, link loss and recovery, GPS loss, low battery, mode changes. Telemetry and command handling are shared with the desktop ground station. Wi-Fi is for setup only; missions run over LoRa.

DPilot field computer layout: Raspberry Pi Zero 2W with a 3.5-inch touchscreen, speaker and SD card, with the base-station ESP32 on USB, linked by LoRa to the vehicle and by Wi-Fi for setup
Animated field computer screens: selecting the Chania Harbour mission, sending the geofence and starting, then the satellite map with the boat's live track and the status screen
The field-station software running headless with a simulated boat inside the Chania Harbour geofence: send the geofence, start, then follow it on the map.
The DPilot field computer mounted on a FlySky transmitter, showing the STATUS screen
The field computer on the pilot's transmitter.
Field computer MAP screen showing the Chania Harbour geofence on satellite imagery
MAP: the Chania Harbour geofence on offline satellite imagery.
Field computer STATUS screen with horizon, speed, altitude, battery, GPS and link health
STATUS on the bench, before the vehicle has a GPS fix.

Custom PCB Integration (JLCPCB)

PCB Specifications

  • Manufacturer: JLCPCB Professional
  • Layers: 2-layer cost-effective
  • Size: ~50x40mm aircraft fit
  • Finish: HASL/ENIG RoHS
  • Components: ESP32-S3, SX1262, MPU6050

Integration Benefits

  • Professional manufacturing quality
  • Reduced wiring complexity
  • Optimized RF performance
  • Integrated sensor fusion
  • 3D printed environmental protection

Drone Board Evolution

Successive flight-board revisions, from a carrier for the ESP32 LoRa module with plug-in sensor breakouts to an integrated surface-mount design.

Four generations of DPilot drone boards side by side, from the first carrier board to a compact board with the ESP32 LoRa module stacked on top
From left to right: the first board (V0.0), then three later generations.
  • V0.0: Heltec WiFi LoRa 32 V3 carrier; IMU and SD card on breakout boards; servo headers.
  • Second: adds magnetometer, pilot/computer output selector, status LEDs, configuration jumpers.
  • Third: locking connectors for GPS and peripherals; AUTO and power LEDs.
  • Fourth: compact layout, ESP32 LoRa module stacked on the board.
  • v6 (in build): surface-mount; sensors, SD card and output selector on board; servo connectors on one edge.
3D CAD render of the DPilot v6 surface-mount drone board
The v6 board in 3D CAD.

Aircraft Mounting Strategy

VolantexRC Ranger 1600/2000 - Optimized Layout: Nose Section: β”œβ”€ Pi (AI or conventional) Camera; inclined at from 20Β° downwards (looking forward) to visual odometry β”‚ β”œβ”€ Visual odometry capability with Sony IMX500 β”‚ β”œβ”€ 12MP high-resolution imaging β”‚ └─ AI processing for object detection/tracking β”œβ”€ GPS Antenna (clear sky view) └─ Custom 3D printed camera mount Center Fuselage: β”œβ”€ Raspberry Pi Zero 2W (custom 3D printed bucket) β”œβ”€ Custom PCB ESP32 Module (custom 3D printed bucket) β”œβ”€ Power distribution board β”œβ”€ LM2596 Buck converter (single unit) └─ Battery bay (LiPo pack) Pusher Motor Section: β”œβ”€ D3536 Motor (custom 3D printed mount) β”œβ”€ ESC mounting (optimized airflow) β”œβ”€ Vibration isolation (3D printed dampeners) └─ Propeller clearance optimization

Under the Hood: Estimation, Geofencing & Simulation

🧭 State Estimation

Runs on the Pi. Inputs: IMU, GPS, magnetometer, barometer (if fitted). Outputs: attitude, heading, position, velocity.

  • Roll/pitch: quaternion attitude filter
  • Position/velocity: extended Kalman filter, with IMU preintegration for GPS gaps
  • Heading: GPS/INS fusion, observable from GPS velocity in turns; in-flight gyro-bias estimation
  • Magnetometer: fallback only (stationary or GPS outage); in-flight errors of tens of degrees were measured
  • GPS latency compensation

πŸ—ΊοΈ Geofencing & Coverage Planning

Missions define GO and NO-GO polygons, edited on satellite maps in the desktop planner or the field computer and uplinked with the mission over LoRa.

  • Coverage planner (prototype): parallel sweep lanes over the GO area
  • NO-GO polygons subtracted from each lane; disjoint areas covered in sequence
  • Lane-to-lane transitions: grid search around obstacles, shortened to straight segments where clear
  • Lane spacing checked against minimum turn radius
  • Vehicle profiles: UAV, UGV, USV

πŸ§ͺ Simulation

6-DOF fixed-wing simulation with the flight guidance, control and estimation code in the loop.

  • Aerodynamics, propulsion, wind and gusts
  • Sensor models: IMU noise and gyro bias; GPS noise, rate and latency; magnetometer latency and heading-dependent error; GPS dropouts and outages
  • Mission files as input; open-loop, attitude-hold and waypoint-tracking modes
  • Reports of estimated vs true states
  • Replay of flight logs through the estimators and controllers

Results so far

  • Heading, simulation: 22Β° β†’ 6Β° rms error with realistic magnetometer errors; 3.7Β° β†’ 2.9Β° with an ideal magnetometer.
  • Heading, flight-log replay (Nov 2026 autonomous flights): residual against GPS track 10.7Β° β†’ 6.8Β° (Phoenix), 12.2Β° β†’ 7.5Β° (Ranger).
  • Validation: estimator changes are checked in simulation (against truth) and on flight-log replays.

Aircraft Platform Specifications

Parameter Ranger 1600 Ranger 2000 Notes
Wingspan 1600mm 2000mm EPO foam construction
Length 1075mm 1075mm Pusher configuration
Wing Area 26.5dmΒ² 32.8dmΒ² High aspect ratio
Flying Weight 1200-1500g 1200-1500g With telemetry system
Speed Range Normal operations Slow flight capable Visual odometry optimized
Flap Control None Servo-controlled Enhanced landing approach

Flying with Jon

Jon Hoshizaki and Diomidis at the flying field, holding up two DPilot test aircraft
Jon Hoshizaki and Diomidis at the flying field with two of the DPilot test aircraft.

A big thank you to Jon Hoshizaki

Jon helps with the flying, with the airplanes and their aerodynamics, and with setting the aircraft up for the test flights, including the first autonomous ones.

Thank you, Jon!

System Testing & Performance

Verified Performance Metrics

Communication Performance

  • LoRa Success Rate: >95% at operational range
  • Command Latency: <100ms typical
  • Range Testing: >2km line of sight verified
  • Encryption Overhead: <5ms per packet

Data Quality Metrics

  • GPS Update Rate: 10Hz after configuration
  • IMU Data Quality: <3% duplicate rate
  • Video Synchronization: Frame-perfect CSV alignment
  • Power Efficiency: >2 hour flight endurance
  • Temperature Stability: MPU6050 calibrated

Testing Progression

Ground Testing
  1. Power system verification
  2. LoRa communication range test
  3. Sensor calibration and alignment
  4. Flight board to companion computer link verification
  5. AI camera and visual processing
  6. Web interface functionality
  7. Command response testing
Flight Testing
  1. Taxi tests with sensor validation
  2. Range tests at operational distance
  3. βœ… Short flights with basic telemetry
  4. Extended flights for endurance
  5. Visual odometry validation
  6. βœ… Mission command following
  7. βœ… Autonomous waypoint flights
Data Analysis
  1. Telemetry data quality analysis
  2. Video-CSV synchronization check
  3. Visual odometry accuracy assessment
  4. Power consumption optimization
  5. Communication reliability metrics
  6. System performance profiling
  7. Research data validation
  8. Flight-log replay through the estimators and the 6-DOF simulator

Ground Control Station

Desktop GCS
Desktop Ground Control

Python application with FPV video overlay

Mission Planning
Mission Planning Interface

Interactive map-based waypoint planning with OpenStreetMap integration

TFT Display
TFT Base Station Display

2" colour TFT with artificial horizon and G-G diagram

Manufacturing & Assembly Process

Custom PCB
Custom PCB Design

Professional 2-layer PCB with integrated ESP32, LoRa, IMU, and SD card

3D Printing
Motor mount

Custom component printing in PETG

3D Printing
Base Station Enclosure

Custom component printing in PETG

Research Applications & Future Development

πŸ”¬ Current Research Focus

  • Visual odometry algorithm development
  • AI-powered feature detection and matching
  • Real-time SLAM implementation
  • Robust multi-sensor state estimation
  • Air data: barometric altitude and pitot-tube airspeed
  • Autonomous navigation strategies

🎯 Future Capabilities

  • Long-range autonomous missions
  • Object detection and avoidance
  • Landing site detection and selection
  • Swarm coordination protocols
  • Advanced AI model deployment

πŸ“Š Data Applications

  • Flight dynamics research
  • Aerodynamic performance analysis
  • Wing loading studies
  • Visual navigation validation
  • Autonomous systems development

Development Roadmap

Phase 1: βœ… COMPLETED β”œβ”€ Flight board ↔ companion computer data link β”œβ”€ Telemetry logging synchronized with video β”œβ”€ Web-based ground control interface β”œβ”€ Custom PCB design and integration └─ Basic visual processing pipeline Phase 2: βœ… COMPLETED β”œβ”€ Map-based mission planning and upload β”œβ”€ Closed-loop guidance and flight control β”œβ”€ Robust heading and pose estimation β”œβ”€ Simulation with the flight software in the loop β”œβ”€ Handheld field computer (Pi Zero 2W, touchscreen) └─ First autonomous flights (2026) Phase 3: πŸ”„ IN PROGRESS β”œβ”€ v6 surface-mount drone board β”œβ”€ Barometric altitude validation β”œβ”€ Pitot-tube airspeed estimation β”œβ”€ Visual odometry implementation β”œβ”€ AI camera integration and testing β”œβ”€ Feature detection optimization β”œβ”€ SLAM algorithm development └─ Position estimation validation Phase 4: πŸ“ PLANNED β”œβ”€ Long-range autonomous missions β”œβ”€ Advanced AI model deployment β”œβ”€ Object detection and avoidance β”œβ”€ Multi-aircraft coordination └─ Research publication and validation