Software
madflight
From github.com/qqqlab/madflight (opens in a new tab)
- Drones and boats
- Firmware
- Runs on hardware you can build
- MIT
A toolbox for building flight controllers for multicopters and airplanes on ESP32, RP2040/RP2350 and STM32 boards, using PlatformIO or the Arduino IDE.
Facts
- GitHub stars
- 523read on 28 Nov 2026
- Last update
- 12 Nov 2026Newest commit on main
- Maintenance
- Activea commit in the last 90 days
- Difficulty
- Intermediate
Checked on GitHub on 28 Nov 2026.
Licenses
- Code
- MIT (opens in a new tab)
Read by Robotheca from LICENSE (opens in a new tab) (MIT) at commit a92290c (opens in a new tab), on 14 Nov 2026.
- Commercial use
- Yes
At a glance
- What it is
- Builds a working flight controller from low-cost development boards and sensor breakout boards.
- Can be programmed with PlatformIO or the Arduino IDE, with a getting-started guide on the project site.
- The development branch is untested and may not compile; release versions are the flight-tested option.
- Community help is available through the project's GitHub Discussions.
Robotheca's summary of the project's documents, not the creator's words.
- Robots on Robotheca
- No robot on Robotheca uses it yet.
- Licence
- MIT. Commercial use: Yes. Where it was read
- Install
- In the creator's words: The project's website (opens in a new tab)
- Maintenance
- Active, last commit on 12 Nov 2026.
Use it
How to install it, in the creator's words: The project's website (opens in a new tab)
Robotheca doesn't review code. Read it before running it.
Files and versions
- Repository on GitHubgithub.com/qqqlab/madflight (opens in a new tab)
- The version Robotheca reada92290c (opens in a new tab)
- Latest releasemadflight v2.4.3 (9 Nov 2026)
Robotheca read the repository at two versions: the summary at 1d5efa7 and the facts and the README at a92290c (read on 28 Nov 2026).
Robotheca never hosts the code: each link goes to the creator's own page.
The README
The creator's own README, copied as written: README.md by @qqqlab, at commit a92290c, under MIT (opens in a new tab). The original on GitHub (opens in a new tab).
Read the README here

☆ ☆ ☆
If you like madflight, please give it a ☆ star
☆ ☆ ☆
madflight is a toolbox to build high performance flight controllers with PlatformIO or Aduino IDE for ESP32-S3 / ESP32 / RP2350 / RP2040 / STM32. A functional flight controller can be build for under $10 from readily available development boards (opens in a new tab) and sensor breakout boards (opens in a new tab). Or, buy a complete flight controller.
Getting Started
Build a multicopter or airplane with PlatformIO (opens in a new tab) or the Arduino IDE (opens in a new tab)
For additional help see Discussions (opens in a new tab)
DEV Version
If you clone/download this repository you get the DEVELOPMENT version, which is BLEEDING EDGE - not flight tested at all, might not even compile, and will completely change in the next hour...
Download a release version (opens in a new tab) if you want something that actually has logged flight hours.
What is flying with madflight?
RP2040 Quad with 9" Props

- Raspberry Pi Pico
- MPU6500 Gyro/Acc Module
- BME280 Barometer Module
- INA226 Current Sensor Module
- Micro SD Card Module
- Mini DC-DC 12-20V to 5V 3A Buck Converter
- uBlox M8 GPS with QMC5883L Compass Compass
- ELRS receiver
- DJI E300 Propulsion System (9.4x4.3 props, 2212 920KV motors, 15A ESCs)
- Frame of a Ideafly IFLY-4 Quadcopter
ESP32-S3 Bixler 3

- ESP32-S3 Dev Board
- MPU9250 Gyro/Acc/Mag Module
- ELRS receiver
- Hobbyking Bixler 3 155cm
ESP32 Dualsky Hornet 460

This build does not use the default board for ESP32. And a custom pinout is used, so that the MPU6500 board can be soldered directly with pins to the ESP32 board, and just requires the red wire for 3V. The I2C sensor boards are also soldered directly with pins, plus one black ground wire.
- Lolin ESP32 Lite
- MPU6500 SPI Gyro/Acc Module
- ELRS receiver
- Dualsky Hornet 460 Quadcopter minus original brain
- BME280 Barometer Module
- QMC5883L Magnetometer Module
RP2350 DJI Phantom 1 P330

Swapped existing NAZA flight controller with a madflight FC3 RP2350. The existing ESCs are recycled and driven in PWM 400Hz mode.
- DJI Phantom 1 P330
- madflight FC3 RP2350 Flight Controller (opens in a new tab)
- ELRS Nano Receiver
- Short USB-C cable for programming
ESP32-S3 5" Sub-250 Gram

Lightweight frame made from 6mm bambu rods + 3D printed PETG motor mounts
- madflight FC1 ESP32-S3 Flight Controller (opens in a new tab)
- ELRS Nano Receiver
- ESCs: Favorite LittleBee Spring 20A with BlueJay bidir DSHOT
- 1503 Motors
- Folding 5" 120mm props
- Weight: 201 gr (including 2S 18650 battery)
ESP32-S3 M5Stack Stampfly

- M5Stack Stampfly
- ELRS Nano Receiver
- Openlog SDCard logger
Disclaimer
This code is a shared, open source flight controller for small micro aerial vehicles and is intended to be modified to suit your needs. It is NOT intended to be used on manned vehicles. I do not claim any responsibility for any damage or injury that may be inflicted as a result of the use of this code. Use and modify at your own risk. More specifically put:
THIS SOFTWARE IS PROVIDED BY THE CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Logo image copyright (c) 1975 Deutsches MAD Magazine. This project is not associated with MAD Magazine.
Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.