π Building an Open-Source Flight Controller: Our Journey with ESP32 & STM32
July 2026 Monday
π Architectural Analysis of ESP32 and STM32 for Low-Cost Drone Flight Controllers
At OrbeezLabs, we're building more than just another droneβwe're developing a fully custom, open-source flight controller to explore how microcontroller architecture impacts real-world flight performance.
Our research compares two popular embedded platforms:
π’ ESP32 DevKit (Dual-core, up to 240 MHz)
π΅ STM32F401 Blackpill (ARM Cortex-M4 with deterministic hardware FPU)
The key question we're investigating is:
Does a higher clock speed always outperform a dedicated Floating-Point Unit (FPU) in real-time drone control? π€
π― Project Objective
To answer this, we're building two nearly identical flight controllers. Both versions use the same:
- π§© Sensors (MPU6050 & BMP280)
- β‘ Power circuitry
- π Power Distribution Board (PDB)
- π Motors & ESCs
- π PCB design
- π§ PID control algorithms
The only major difference is the microcontroller, allowing us to fairly compare their real-world performance.
π What Are We Measuring?
Instead of synthetic benchmarks, we're focusing on practical flight performance, including:
β PID loop execution time
β Flight stability
β Control latency
β CPU utilization
β Floating-point computation efficiency
β Power consumption
Our goal is to determine which architecture offers the best balance of performance, reliability, and cost for low-cost UAV applications. π
π οΈ Hardware Progress
The hardware development is well underway!
βοΈ Custom schematic design
βοΈ PCB design & manufacturing
βοΈ Component sourcing
βοΈ Hardware assembly
βοΈ Sensor integration
βοΈ Prototype development
Both the ESP32 and STM32 flight controllers have been designed with nearly identical hardware to ensure a fair comparison.
π» Firmware Development
We're currently developing the software that powers the flight controller, including:
π§ PID flight control
π‘ Sensor drivers
π Sensor fusion
βοΈ ESC communication
β‘ Performance optimization
π‘οΈ Flight stability testing
Every module is designed to keep the software consistent across both platforms so that only the processor architecture influences the results.
π Why Open Source?
We believe innovation grows through collaboration. Once the project reaches a stable stage, we'll release:
π PCB design files
π Schematics
π» Firmware source code
π Documentation
π§ Build instructions
π₯ Flight demonstrations & technical reports
Whether you're a student, researcher, hobbyist, or embedded systems engineer, you'll be able to study, build, and improve the platform.
π What's Next?
The next phase includes:
βοΈ Firmware integration
π§ͺ Ground & flight testing
π― PID tuning
π Performance comparison between ESP32 and STM32
πΉ Sharing development updates and technical insights
Our mission is simple: build an affordable, transparent, and research-driven flight controller that helps the embedded and drone development community better understand how microcontroller architecture influences real-world UAV performance.
Stay tuned there's much more to come! πβ¨
