PID Tuning & Filters

PID tuning is the art of making your quad fly exactly how you want. Properly tuned PIDs give you locked-in, responsive flight with no oscillations or sluggishness. This guide covers what PIDs do, how to tune them, and the critical role of filters.

What Are PIDs?

PID stands for Proportional, Integral, Derivative — a feedback control loop that keeps your quad stable. Every axis (Roll, Pitch, Yaw) has its own PID values. The FC reads the gyro, compares actual rotation to desired rotation (from your sticks), and adjusts motor speeds thousands of times per second.

The Analogy

Imagine driving a car toward a lane center. P (Proportional) steers harder the further from center you are. I (Integral) builds up correction if you keep drifting. D (Derivative) slows steering as you approach center to prevent overshoot. Your quad does this on 3 axes simultaneously, 8,000 times per second.

Default PID Values

Betaflight ships with reasonable defaults. These work for most builds out of the box. Tune from here only if needed.

AxisRoll PRoll IRoll DPitch PPitch IPitch DYaw PYaw I
BF 4.4+ Defaults4285304690324285
5" Freestyle4590285095304590
5" Racing551003258105355095
Cinematic (smooth)3880254285284080
3" Toothpick5090265595284585

What Each PID Term Does

Proportional (P) — The Reactor

P responds to the current error. Higher P = more aggressive correction. Too high and the quad oscillates rapidly (high-frequency buzz). Too low and it feels sloppy, drifting on turns.

Integral (I) — The Corrector

I accumulates error over time. It corrects for sustained drift (like wind or unbalanced props). Higher I holds angle better but can cause slow "wobbles" or drift in hover.

Derivative (D) — The Damper

D responds to the rate of change of error. It dampens oscillations by counteracting fast changes. Think of it as a shock absorber.

Quick Tuning Tips

The 5-Minute Tune

  1. Start with Betaflight defaults — most 5" builds fly fine
  2. If oscillating → lower P by 5 at a time
  3. If drifting → increase I by 5-10
  4. If bouncy on stops → increase D by 3-5
  5. Always change one axis at a time (Roll first, then Pitch)
  6. Test in smooth air, not gusty conditions

⚠️ Golden Rule

If defaults fly well, DON'T TUNE. Many pilots spend hours chasing a "perfect tune" on an already good setup. Save your time for flying! Only tune when you notice a specific problem.

Filters

Filters clean up gyro noise before the PID loop processes it. Noisy gyro = bad flight performance regardless of PID values. Betaflight has several filter types working together.

Lowpass Filters

Lowpass filters remove high-frequency noise above a cutoff frequency. Lower cutoff = smoother but adds latency. Higher cutoff = more responsive but noisier.

FilterDefault CutoffRecommendedPurpose
Gyro Lowpass 1250 Hz200-250 HzRemoves motor/prop noise
Gyro Lowpass 2500 Hz400-500 HzSecondary noise filtering
DTerm Lowpass 1150 Hz120-150 HzCleans D-term noise
DTerm Lowpass 2250 Hz200-250 HzAdditional D filtering

Notch Filters

Notch filters cut a specific frequency band — like surgical noise removal. Use them to target known noise sources.

Dynamic Notch Filter

The dynamic notch automatically tracks and filters the loudest noise frequency. This is incredibly effective for varying motor/prop noise across RPM ranges.

Dynamic Notch Settings

Rates Explained

Rates control how fast your quad rotates per stick input. They don't affect PID stability — only the feel of the sticks.

Rate TypeDescriptionBest For
Betaflight (default)RC Rate + Super Rate + ExpoMost pilots, good balance
RaceflightRate + Acro + ExpoRacers, very linear center
KISSRate + RC Curve + ExpoSmooth cinematic feel
ActualMax deg/s at full stickEasy to understand, direct

A common freestyle starting point: RC Rate 1.0, Super Rate 0.7, Expo 0.2 on all axes. This gives ~670°/s max rotation with a soft center stick feel.

Blackbox Analysis

Betaflight's Blackbox recorder captures gyro data, PID outputs, and motor signals. Analyzing this data is the most accurate way to tune.

How to Use Blackbox

What to Look For

SignalHealthyProblem
Gyro traceSmooth, follows setpointNoisy / oscillating
Setpoint vs GyroGyro tracks setpoint closelyLarge gap = weak P or I
DTerm traceClean, slight noiseVery noisy = lower D or add filtering
Motor outputsSmooth, synchronizedErratic = over-filtered or bad PIDs

FFT Analysis

Blackbox Explorer has an FFT (frequency spectrum) view. Use it to identify dominant noise frequencies — these are your targets for notch filters. Sharp peaks in FFT = exact frequencies to notch out.

PID Profiles & Rate Profiles

Betaflight supports 3 PID profiles and 3 rate profiles. Use them for different flying styles:

Switch profiles via stick commands or assigned switches on your radio.

Next: ELRS & ESC Firmware →