cleanflight/cleanflight logo

cleanflight/cleanflight

Free

Clean-code version of the baseflight flight controller firmware

FreeFree tier
Type
Open Source

About cleanflight/cleanflight

Cleanflight is open-source flight controller firmware designed for multi-rotor aircraft and fixed-wing drones. It is widely used across many flight controller hardware platforms, supporting STM32 F7, F4, and F3 processors. Cleanflight offers extensive features including multi-color RGB LED strip support (WS2811 addressable), multiple motor protocols (DShot 150/300/600/1200, Multishot, Oneshot 125/42), Blackbox flight recorder logging to onboard flash or microSD, and various receiver connection types (PWM, PPM, Serial SBus/SumH/SumD, Spektrum, XBus). It provides in-flight manual PID tuning, rate profiles, configurable serial ports for telemetry, GPS, OSD, and VTX support for Unify Pro and IRC Tramp. The project includes a dedicated configuration tool (Cleanflight-configurator) and community support via forums and Slack.

Key Features

Multi-color RGB LED strip support (WS2811 addressable LEDs) for orientation indicators, battery warnings, and mode status
DShot (150, 300, 600, 1200), Multishot, and Oneshot (125, 42) motor protocol support
Blackbox flight recorder logging to onboard flash or external microSD card
Support for STM32 F7, F4, and F3 processors
PWM, PPM, and Serial RX (SBus, SumH, SumD, Spektrum 1024/2048, XBus) with failsafe detection
Multiple telemetry protocols (CSRF, FrSky, HoTT smart-port, MSP, etc.)
RSSI via ADC for reading PWM RSSI signals
On-screen display (OSD) configuration without third-party software
OLED display support for battery voltage, current, mAh, profiles, and sensors
In-flight manual PID tuning and rate adjustment with rate profiles

Pros & Cons

Pros
  • Wide hardware compatibility (STM32 F7/F4/F3) and used on majority of flight controllers worldwide
  • Rich feature set including advanced motor protocols, logging, and telemetry
  • Active community support via forums, Slack, and YouTube channel
  • Free and open-source with dedicated configuration tool (Cleanflight-configurator)
  • Supports in-flight PID tuning and multiple rate profiles

Best For

Building custom multi-rotor drones (quadcopters, hexacopters, etc.)Fixed-wing FPV aircraft flight controlHigh-performance racing drones requiring advanced motor protocols and tuningEducational projects for learning flight controller firmware developmentDIY drone projects needing flexible hardware support and OSD integration

FAQ

What microcontrollers does Cleanflight support?
Cleanflight supports targets using STM32 F7, F4, and F3 processors.
What motor protocols are supported?
Cleanflight supports DShot (150, 300, 600, and 1200), Multishot, and Oneshot (125 and 42).
Can I log flight data?
Yes, Cleanflight includes Blackbox flight recorder logging to onboard flash memory or an external microSD card where equipped.
What tools do I need to configure Cleanflight?
You can use the Cleanflight-configurator GUI tool, available for Windows, macOS, and Linux.
Where can I get support for Cleanflight?
The first place for support is the Cleanflight forums on RCGroups. There is also a dedicated Slack chat channel at http://cleanflight.com/slack/.