RPM filter

Also known as: RPM filtering

On this page 7

An RPM filter is a bank of dynamic notch filters in a drone flight controller that uses real-time motor speed data to remove motor-generated vibration from the gyro signal. In flight control for Drones, RPM filtering lets the PID controller see the true motion of the aircraft instead of noise, which allows cleaner, more responsive tuning with less filter delay.

The technique is most closely associated with Betaflight and related firmware for FPV multirotors, where it is also called RPM filtering. It depends on bidirectional DShot or a similar telemetry path that reports each motor speed back to the flight controller many times per second.

How an RPM filter removes motor noise

Every spinning motor and propeller produces vibration at its rotation frequency and at whole-number multiples of it, called harmonics. A motor turning at 24,000 revolutions per minute rotates 400 times per second, so it produces a fundamental component at 400 Hz, a second harmonic near 800 Hz and further peaks above. The gyro senses this vibration together with real aircraft rotation.

The RPM filter places a narrow notch filter on each harmonic of each motor. With bidirectional DShot, every ESC reports the electrical rotation period of its motor; the firmware converts it to mechanical speed using the motor pole count and moves the notch center frequencies in step with the motors. The notches therefore follow the noise exactly as throttle changes.

Because each notch is narrow and precisely placed, it removes the noise while leaving most of the useful signal band untouched. This is the key advantage over broad low-pass filtering, which suppresses noise by attenuating everything above a cutoff and adds phase delay that slows the control loop.

The table below shows how motor speed maps to the frequencies the filter must track.

Motor speedFundamental frequencySecond harmonicThird harmonic
6,000 rpm100 Hz200 Hz300 Hz
18,000 rpm300 Hz600 Hz900 Hz
30,000 rpm500 Hz1,000 Hz1,500 Hz
42,000 rpm700 Hz1,400 Hz2,100 Hz
Motor speed and noise frequencies

Key RPM filter settings

RPM filter behavior is set by a small number of parameters. Defaults are a sound starting point for most 5-inch builds, and changes should be guided by Blackbox logging rather than guesswork.

ParameterTypical valueEffect
Harmonics count1 to 3How many multiples of each motor frequency are notched
Notch Q factorAbout 500 in Betaflight unitsNotch width: higher Q means a narrower notch
Minimum frequencyAbout 100 HzLowest frequency a notch may track at low throttle
Fade rangeAbout 50 HzGradual weakening of notches near the minimum frequency
Motor pole countUsually 14 on common FPV motorsConverts electrical speed to mechanical speed
PID loop frequencyOften 4 or 8 kHzSets the update rate and the usable filter band
Main configuration parameters

A wrong motor pole count is the most damaging setting error, because every notch then sits at the wrong frequency. Reducing the harmonics count to one or two is common on clean, well-balanced builds whose higher harmonics are already weak, which saves processor time and a small amount of delay.

RPM filtering compared with other gyro filters

An RPM filter is one layer in the broader practice of gyro filtering. It works best together with a light low-pass filter and, optionally, a dynamic notch filter that searches the spectrum for remaining peaks such as frame resonance.

Filter typeHow it finds noiseDelay costBest target
RPM filterMotor speed telemetryLowMotor and propeller harmonics
Dynamic notch filterSpectral analysis of gyro dataLow to moderateFrame resonance and leftover peaks
Static notch filterFixed, manually set frequencyLowOne known constant resonance
Low-pass filterFixed or throttle-based cutoffModerate to highBroadband high-frequency noise
Gyro filter types in flight control

The practical consequence is that a build with working RPM filtering can raise low-pass cutoffs or reduce filter stages. Less total delay lets the pilot use higher D gains and better damp propwash oscillation, the wobble that appears when the drone descends through its own disturbed air.

Requirements and setup

RPM filtering needs ESC firmware that supports bidirectional DShot, such as BLHeli_32, Bluejay or AM32 on supported hardware. Older BLHeli_S ESCs required replacement firmware to provide this telemetry.

  1. Flash ESC firmware that supports bidirectional DShot and select a DShot protocol in the flight controller.
  2. Enable bidirectional DShot and set the correct motor pole count in the configurator.
  3. Confirm that RPM telemetry appears for every motor and that the error rate stays near zero.
  4. Fly a test pack with Blackbox logging enabled and review the gyro noise spectrum.
  5. Adjust low-pass filtering and PID gains only after the logs show the motor peaks removed.

Many firmware versions disable the RPM filter automatically when telemetry is missing or invalid, so a silent setup error can leave the aircraft with weaker filtering than expected.

Common problems with RPM filtering

RPM filtering is robust once configured, but several faults recur. The following table links typical symptoms to their usual cause and fix.

SymptomLikely causeFix
Hot motors after a short flightFilter disabled while filtering was reducedVerify telemetry and restore filters
High telemetry error rateIncompatible ESC firmware or noisy signalUpdate ESC firmware, check wiring
Remaining peaks in logsFrame resonance, not motor noiseEnable a dynamic notch or stiffen the frame
Jitter at very low throttleNotch too close to the control bandRaise the minimum frequency
Symptoms, causes and fixes

The most important warning is that an RPM filter does not fix mechanical problems. Bent propellers, damaged motor bearings and loose arms create noise that changes from flight to flight, and these faults should be repaired before any filter tuning.

Stripped to the essentials

A drone’s motion sensor feels two things at once: the real movement of the drone and the buzz of the spinning motors. If the flight computer reacts to the buzz, the drone shakes and the motors heat up.

An RPM filter works like noise-canceling headphones tuned to each motor. The motors report how fast they spin, so the filter knows the exact pitch of the buzz and removes only that pitch. The flight computer then hears the real movement clearly and quickly, and the drone flies smoother.

Where it is applied

A freestyle FPV pilot flies a 5-inch quadcopter on 6S batteries and notices propwash wobble during dives and warm motors after each pack. The ESCs already run firmware that supports bidirectional DShot, but the feature was never enabled in the flight controller.

The pilot enables bidirectional DShot, sets the motor pole count to 14 and keeps three harmonics. A Blackbox log of the next flight shows the strong motor peaks between roughly 300 and 1,200 Hz nearly gone from the gyro trace.

With the cleaner signal, the pilot raises the gyro low-pass cutoff and increases D gain slightly. The result is cooler motors and noticeably less propwash in dives, and the aircraft feels more connected to the sticks.