DPilot
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
Original System Concept
Initial architecture concept. The current architecture is under "The DPilot Flight Computer".
Web Interface Dashboard
Live telemetry dashboard with smartphone-accessible controls and artificial horizon
Interactive Map Interface
Web-based mission planning with real-time waypoint tracking and visualization
Aircraft Integration
VolantexRC Ranger with 3D printed components and visual odometry camera
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
π§ 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.
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).
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.
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.
- 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.
Aircraft Mounting Strategy
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
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
- Power system verification
- LoRa communication range test
- Sensor calibration and alignment
- Flight board to companion computer link verification
- AI camera and visual processing
- Web interface functionality
- Command response testing
Flight Testing
- Taxi tests with sensor validation
- Range tests at operational distance
- β Short flights with basic telemetry
- Extended flights for endurance
- Visual odometry validation
- β Mission command following
- β Autonomous waypoint flights
Data Analysis
- Telemetry data quality analysis
- Video-CSV synchronization check
- Visual odometry accuracy assessment
- Power consumption optimization
- Communication reliability metrics
- System performance profiling
- Research data validation
- Flight-log replay through the estimators and the 6-DOF simulator
Technical Documentation
π Complete Documentation
System architecture, PCB files, 3D models, and implementation guide
π§ PCB Design Files
Professional PCB design files ready for JLCPCB manufacturing
π¨οΈ 3D Print Files
Custom buckets, mounts, and environmental protection components
π» Source Code
ESP32 firmware, Python ground control, and web interface code
Ground Control Station
Desktop Ground Control
Python application with FPV video overlay
Mission Planning Interface
Interactive map-based waypoint planning with OpenStreetMap integration
TFT Base Station Display
2" colour TFT with artificial horizon and G-G diagram
Manufacturing & Assembly Process
Custom PCB Design
Professional 2-layer PCB with integrated ESP32, LoRa, IMU, and SD card
Motor mount
Custom component printing in PETG
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