Skip to content

Software

dRehmFlight

From github.com/nickrehm/dRehmFlight (opens in a new tab)

  • Drones and boats
  • Firmware
  • Runs on hardware you can build
  • GPL-3.0-only

An Arduino-compatible flight controller firmware for stabilizing small VTOL and experimental aircraft, aimed at hobbyists, students, and rapid prototyping.

  • Stale. No commit in 12 months: the newest is from 20 Jan 2025.

Facts

GitHub stars
1,482read on 28 Nov 2026
Last update
20 Jan 2025Newest commit on master
Maintenance
Staleno commit in 12 months
Difficulty
Intermediate
Hardware it needs, as the project states it
A Teensy 4.0 microcontroller (the Teensy 4.1 is also said to be pin-compatible) and a GY-521 MPU6050 6DOF IMU, programmed through the Arduino IDE with the Teensyduino add-on.

Checked on GitHub on 28 Nov 2026.

Licenses

Code
GPL-3.0-only (opens in a new tab)

Read by Robotheca from LICENSE (opens in a new tab) (GPL-3.0-only) at commit 0df49c5 (opens in a new tab), on 16 Oct 2026.

Commercial use
Yes

Copyleft: Modified source must be published.

At a glance

What it is
  • Provides flight stabilization code for unusual or custom VTOL aircraft, with all the code kept in one place for easy editing.
  • Runs on an Arduino-compatible microcontroller and is uploaded with the Arduino IDE, so no separate flashing or compiling process is needed.
  • Has been used as a teaching tool for aircraft stabilization and flight control principles at universities and tech companies.
  • Beta 1.3 adds Spektrum DSM Satellite receiver support, one-time IMU calibration, ESC calibration, and a motor arming bug fix.
  • Has been demonstrated on quadrotors, tricopters, a bicopter, a tailsitter, and several other VTOL platforms.

Robotheca's summary of the project's documents, not the creator's words.

Robots on Robotheca
No robot on Robotheca uses it yet.
Licence
GPL-3.0-only. Commercial use: Yes. Where it was read
Install
In the creator's words: The project's README (opens in a new tab)
Maintenance
Stale, last commit on 20 Jan 2025.

Use it

How to install it, in the creator's words: The project's README (opens in a new tab)

Robotheca doesn't review code. Read it before running it.

Files and versions

Facts read at commit 0df49c5

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 @nickrehm, at commit 0df49c5, under GPL-3.0-only (opens in a new tab). The original on GitHub (opens in a new tab).

Read the README here

dRehmFlight Logo

Intro Video (opens in a new tab)

RcGroups Support Thread (opens in a new tab)

What exactly is dRehmFlight VTOL? (opens in a new tab)

Overview

dRehmFlight is the flight controller for hobbyists, hackers, and non-coders interested in stabilizing their wacky and unique flying creations. The code and supporting documentation is built to bring someone up to speed on VTOL flight stabilization concepts as quickly and painlessly as possible. The code is written and presented in a way that is intuitive, easy to follow, and most importantly: all in one place. No more digging through countless folders and confusing classes just to add an 'if' statement for your custom drone application. This flight controller uses an Arduino-compatible microcontroller, so there is no confusing flashing or compiling process necessary. If you can use Arduino, you can start expanding the capabilites of this flight controller to your liking.

dRehmFlight has been used as a teaching tool for aircraft stabilization and flight control principles in universities and tech companies around the world. It is not meant to out-perform other flight controller packages on the market, or be used in a commercial sense. It is best suited for rapid prototyping or allowing a radio control hobbyist to get their feet wet in flight control code for their VTOL project. Much more information is included in the dRehmFlight VTOL Documentation .pdf.

This code is entirely free to use and will stay that way forever. If you found this helpful for your project, donations are appreciated: Paypal Donation (opens in a new tab)

New in Beta 1.3:

  • Spektrum DSM Satellite RX Support
  • One-time IMU calibration
  • ESC calibration functionality
  • Motor arming bug fix
  • Code and comment clean up
  • Small bug fixes
Hardware Requirements

This flight controller is based off of the Teensy 4.0 microcontroller and MPU6050 6DOF IMU. The following components (available on Amazon) are required to complete the flight controller assembly:

Teensy 4.0: https://amzn.to/3oFG3QN (opens in a new tab)

Alternative Links: Sparkfun (opens in a new tab), Adafruit (opens in a new tab), Electromaker (opens in a new tab)

Due to supply chain issues, the Teensy 4.0 has been frequently out of stock throughout 2022. The Teensy 4.1 is generally in stock more often and is immediately compatible with the dRehmFlight pin mappings (plus you get extra bonus pins!): https://amzn.to/3c1OSSw (opens in a new tab)

GY-521 MPU6050 IMU: https://amzn.to/3edF1Vn (opens in a new tab)

These (and all Amazon links contained within the supporting documentation) are Amazon Affiliate links; by purchasing from these, I receive a small portion of the revenue at no cost to you. I appreciate any and all support! Buy all of the parts here. (opens in a new tab)

Software Requirments

Code is uploaded to the board using the Arduino IDE; download the latest version here: https://www.arduino.cc/en/main/software (opens in a new tab)

To connect to the Teensy, you must also download and install the Teensyduino arduino add-on; download and instructions available here: https://www.pjrc.com/teensy/td_download.html (opens in a new tab)

Tutorial Videos

Building the Flight Controller Hardware (opens in a new tab)

Setting Up Your Radio Connection (opens in a new tab)

Mounting and Configuring the IMU (opens in a new tab)

How the Flight Controller Code Works (opens in a new tab)

Building and Coding an RC F-35 VTOL (opens in a new tab)

Flight Videos

dRehmflight has been successfully implemented on the following platforms:

Autonomous Quadrotor: https://www.youtube.com/watch?v=p8frNNYQNV4 (opens in a new tab)

Quadrotor Biplane VTOL: https://www.youtube.com/watch?v=rk4tUKM6bd0 (opens in a new tab)

Dual Cyclocopter: https://www.youtube.com/watch?v=JoVmejDsMrM& (opens in a new tab)

VTOL F-35 Tricopter: https://www.youtube.com/watch?v=RqdcZD0ZoUk (opens in a new tab)

Model SpaceX Starhopper: https://www.youtube.com/watch?v=VsyFejn40Ss (opens in a new tab)

Model SpaceX Starship: https://www.youtube.com/watch?v=5lwH7xJnB4I (opens in a new tab)

Inverted Pendulum Drone Stabilization: https://www.youtube.com/watch?v=XmYRQi48s-8 (opens in a new tab)

Fixed Wing Ground Effect Vehicle: https://www.youtube.com/watch?v=uaY2G5Kbj_g (opens in a new tab)

Spinning Tricopter VTOL: https://www.youtube.com/watch?v=7JH1_ZKV7t4 (opens in a new tab)

Model Joby EVTOL: https://www.youtube.com/watch?v=Dd2N_lyO_SQ (opens in a new tab)

Model V-22 Osprey: https://www.youtube.com/watch?v=2OGkYfOs9EU (opens in a new tab)

Tricopter Tailsitter: https://www.youtube.com/watch?v=8MJNfkEBRMY (opens in a new tab)

Tail-less Albatross: https://www.youtube.com/watch?v=1ifR_cvjpjk (opens in a new tab)

Bicopter VTOL: https://www.youtube.com/watch?v=XPXN0QejqM0 (opens in a new tab)

I would love to see your flying creations and maybe feature them here as well. Please email me at NicholasRehmYT@gmail.com (opens in a new tab) with any videos/pics of your project. -Nick Rehm

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.

(opens in a new tab)

Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.