Drones

Drone flight controller: what your drone’s brain does

Short answer

A drone flight controller is the circuit board that keeps a multirotor under control. Its gyroscope measures how fast the drone is rotating; the board compares it with a desired rotation derived from your controls and flight mode, then sends each ESC a command. Betaflight lists 8 kHz with DShot600 among its recommended combinations, but the usable rate depends on the gyro, processor and settings. Before buying, check the mounting holes, connectors and voltage.

Try it yourselfLearn to Fly, Lesson 6: PID, tune the wobble →Try the feedback loop a flight controller runs, in a browser simulation.

A drone flight controller is the board that keeps a quadcopter under control. Your remote does not set the motor speeds. It asks for a movement, and the flight controller works out what to tell each motor’s ESC.

3D illustration of a flight controller board on an orange quadcopter frame, beside the words Drone Flight Controller: What does it do?
The board in the video is a generic 3D model, not one maker's product. It is not to scale.

What is a drone flight controller?

The flight controller is often called the drone’s brain. It is a circuit board with a processor, a motion sensor and connections to the receiver and the motor controllers. It runs firmware such as Betaflight, reads the sensor and the pilot’s commands, and sends commands to the electronic speed controllers (ESCs).

The more useful picture is the loop it runs. The pilot asks; the board measures, compares and corrects, then does it again.

Why does a quadcopter need a flight controller?

A quadcopter changes attitude by changing the thrust of its motors. A small difference in thrust between motors makes the frame rotate. To fly steadily, something has to measure that rotation and correct it continuously, many times a second.

The video shows a quad tipping over to make the point. The tipping is exaggerated so it can be seen.

How does a flight controller work?

Betaflight’s signal-flow diagram traces the path from the receiver through RC smoothing, rates, feedforward, the PID controller and the mixer to the motor output, with the airframe closing the physical loop back to the gyro. In plain steps:

  1. The gyro reports how fast the drone is turning about each axis.
  2. The board compares that with the request. PX4’s tuning guide describes a rate controller made of three independent PID controllers, one each for roll, pitch and yaw. Its error is the difference between the rate setpoint and the rate the gyro measures.
  3. The mixer splits the correction between motors. PX4 calls this step mixing: the rate controller’s torque commands and a thrust value are converted into individual motor thrust commands.
  4. Each ESC receives its own command and switches battery power to its motor.

What does the gyroscope on a flight controller measure?

A gyroscope measures angular velocity: how fast the drone is rotating, not which way it is tilted. The TDK ICM-42688-P, the motion sensor on the SpeedyBee F405 V4, lists its gyro full-scale ranges in degrees per second, from ±15.6 up to ±2000 dps. That unit is a rate of turn.

For self-levelling, the firmware estimates the drone’s attitude. Gyro measurements help track rotation, while the accelerometer can provide a gravity reference when other acceleration is small. In Acro mode the primary feedback is rotation rate from the gyro.

What does the accelerometer measure?

The ICM-42688-P is a 6-axis device: three gyro axes and three accelerometer axes, with accelerometer ranges of ±2, 4, 8 or 16 g. NXP’s application note AN3461 explains that an accelerometer measures the difference between the sensor’s linear acceleration and the Earth’s gravitational field. IMU makers such as VectorNav call this specific force.

The same note says that in the absence of linear acceleration, the reading is the rotated gravity vector and can give pitch and roll. A drone that is speeding up, braking or turning hard is accelerating, so one accelerometer reading is not a direct tilt measurement. It is most useful as a reference when the drone is close to steady flight.

Acro and Angle: what do your sticks ask for?

What “asking for a movement” means depends on the flight mode.

In Acro mode, which Betaflight calls Rate mode, your sticks ask for a rate of rotation. The drone does not automatically level roll and pitch, although gyro-based rate feedback remains active. Centre the sticks and the drone is no longer asked to rotate, but it does not level itself.

In Angle mode, the roll and pitch sticks control the angle between the drone’s axes and the vertical. Betaflight needs a 3-axis accelerometer for its auto-levelling modes, Angle and Horizon.

Both modes share an inner rate loop driven by the gyro. Betaflight’s signal-flow page shows Angle and Horizon as an outer attitude loop on top of it. PX4 describes the same structure: its attitude controller outputs desired body rates.

Does the flight controller set each motor’s rpm?

In Betaflight with DShot, the flight controller sends each ESC a throttle value, not an rpm target. The video says the board sends each motor its own speed, which is a simplification. Betaflight’s DShot guide says the first 11 bits of each frame are “the actual throttle value”. The ESC then drives the motor, and how fast the motor spins also depends on battery voltage, the propeller and the load.

With bidirectional DShot, the ESC sends motor speed data back, and Betaflight uses it for RPM-based noise filtering. That feedback helps filter noise; it does not mean the flight controller holds each motor at a set rpm.

How fast does a flight controller run?

Betaflight’s Configuration tab gives recommended combinations with RPM filtering: 8K with DShot600, 4K with DShot300 and 2K with DShot150. With a BMI270 gyro the figures are 3.2K and 1.6K. The page also says the gyro rate defaults to what the gyro runs best at, 8 kHz for an MPU6000 and 3.2 kHz for a BMI270, and that a slower processor may run the PID loop at half the gyro rate.

The 8 kHz setting, 8,000 loop cycles a second, is the highest recommended combination listed on that documentation page. The usable setting depends on the gyro chip, processor, motor protocol and configuration; it is not a universal limit.

What is inside a DShot command?

Betaflight’s DShot guide describes each motor update as a 16-bit frame: 11 bits of throttle value, 1 telemetry-request bit and a 4-bit checksum. Eleven bits give 2,048 possible values, and the first 48 are not throttle. Value 0 means disarmed and 1 to 47 are reserved, so throttle uses 48 to 2047. That is 2,000 throttle steps.

The number in DShot600 is the bit rate: 600 kilobits per second. DShot300 is half that rate and DShot150 a quarter.

What is on a flight controller board?

The video’s exploded view spreads the parts apart for clarity. For a real example, Betaflight’s wiki page for the SpeedyBee F405 V4 lists:

  • Processor: STM32F405.
  • Motion sensor: ICM42688P.
  • Regulators: 5 V, 9 V, 4.5 V and 3.3 V outputs.
  • Barometer: DPS310.
  • ESC connector: an 8-pin SH 1.0 mm connector carrying M1 to M4, with 8 motor outputs on the board in total.
  • USB: a USB Type-C port.
  • Input: 3 to 6S LiPo.

Flight controller and ESC: connectors and pinouts

The flight controller decides what each motor should do, and the ESC drives the motors. The 8-pin connector links them. On the F405 V4 it carries ground, battery voltage, current sensing, telemetry and the four motor signals.

Do not assume that matching plugs have matching pinouts. Compare the flight controller and ESC wiring diagrams, the cable and the manufacturer’s instructions before connecting power. Use the Motors tab with the propellers removed to test the motors and check their direction.

What to check before you buy a flight controller

  1. Mounting pattern. The SpeedyBee F405 V4 mounts on 30.5 x 30.5 mm with 4 mm holes. The F405 Mini uses 20 x 20 mm with 3.5 mm holes, compatible with M2 and M3 screws. A 20 x 20 board will not line up with a 30.5 mm frame without an adapter.
  2. Voltage. Both boards list 3 to 6S LiPo input, so check that your battery is in range.
  3. ESC connector and pinout. Match the cable to both boards.
  4. ESC protocol. The F405 Mini’s ESC lists DShot300 and DShot600, and the protocol affects which loop rate makes sense.
  5. Gyro chip. Betaflight gives a BMI270 gyro lower recommended rates (3.2K/1.6K).
  6. Firmware target. The F405 V4 target is SPEEDYBEEF405V4, for Betaflight and INAV.
  7. Current sensor settings. The wiki gives scale 400 and offset 0 for the BLS 55A ESC. Another ESC may need other values.

Flight controller cheat sheet

Check What to look for
The job Reads the gyro, compares with your sticks, commands each ESC
The gyro Angular velocity, in degrees per second
The accelerometer Specific force; tilt only when not otherwise accelerating
The loop Up to 8K with DShot600 in Betaflight, configuration dependent
DShot 2,000 throttle steps (48 to 2047)
The fit 30.5 x 30.5 mm (F405 V4) or 20 x 20 mm (F405 Mini)

Where the simple picture stops

The video is a 3D simulation. The parts are spread apart, the signal pulses are slowed far below their real speed and the tipping quad is exaggerated. The narration is an AI-generated clone of the creator’s voice. The two mounting sizes are examples, not a full list. To try the feedback loop yourself, Learn to Fly, Lesson 6 runs it in a browser simulation, and the ESC explainer covers what happens after the command leaves the board. Next in the series: the gyroscope.

Watch the video

Video: Drone Flight Controller: What Your Drone's Brain Does▶ Watch on YouTube
Drone Flight Controller: What Your Drone's Brain Does

Questions people ask

What does a drone flight controller do?

It reads its sensors, compares measured rotation with a desired rotation derived from the controls and flight mode, and sends each ESC a command many times a second.

Does the gyroscope measure tilt?

No. A gyroscope measures angular velocity, how fast the drone is rotating. The tilt angle has to be estimated.

Does the accelerometer measure tilt?

It measures the difference between the sensor's linear acceleration and gravity. Only when the drone is not otherwise accelerating does that reading give pitch and roll.

Does every flight controller run at 8 kHz?

No. Betaflight's recommended combinations are 8K with DShot600, 4K with DShot300 and 2K with DShot150, with lower figures for a BMI270 gyro and slower processors.

Will a 20 x 20 mm flight controller fit a 30.5 mm frame?

Not directly. The holes do not line up, so you would need an adapter. Check the frame's mounting pattern first.

Sources

  1. Betaflight docs, Configuration tab (read 16 November 2026)
  2. Betaflight docs, DShot guide (read 16 November 2026)
  3. Betaflight docs, Modes guide (read 16 November 2026)
  4. Betaflight docs, Signal Flow Diagram (read 16 November 2026)
  5. Betaflight docs, Motors tab (read 16 November 2026)
  6. PX4 docs, Multicopter PID Tuning Guide (read 16 November 2026)
  7. TDK InvenSense, ICM-42688-P product page (read 16 November 2026)
  8. NXP (Freescale) AN3461, Tilt Sensing Using a Three-Axis Accelerometer (read 16 November 2026)
  9. VectorNav, What is an Inertial Measurement Unit? (read 16 November 2026)
  10. Betaflight board wiki, SpeedyBee F405 V4 (read 16 November 2026)
  11. SpeedyBee F405 Mini BLS 35A 20x20 stack (read 16 November 2026)
Contact me

Send me a message

Questions about drones, robots or a course, or a project to work on together. I reply by email.

Messages are sent to my private inbox. See the privacy policy.