🚁 Building an Open-Source Flight Controller: Our Journey with ESP32 & STM32

ESP32 vs STM32Opensource FlightcontrollerESP32 DroneDIY FlighcontrollerSTM32 Drone

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! 🚁✨

1/4