N5JLD dot NET

What I do in my Spare Time

User Tools

Site Tools


drone:maint:pid_tuning

This is an old revision of the document!


Step-by-Step Betaflight Slider Tuning Workflow

Modern Betaflight firmware simplifies tuning by grouping complex filter cutoffs and PID ratios into intuitive sliders. Always follow the golden sequence: Hardware Check → Filters First → PIDs Second → Fine-Tuning.

Pre-Tuning Safety Rules:
  • Remove propellers whenever working at the bench with a battery plugged in.
  • Never change filter sliders and PID sliders on the same test flight.
  • Fly short 20–30 second test hops and touch-check all four motor bells immediately upon landing. If motors are too hot to hold comfortably (>60°C / 140°F), land immediately and increase filtering or lower D-gain.

Phase 1: Baseline Setup & Pre-Flight Prep

Before moving any sliders, establish a clean baseline on a mechanically sound quad.

  1. Mechanical Inspection: Tighten all frame bolts, arm screws, and motor screws. Install fresh, undamaged propellers and secure the battery firmly with a non-slip pad and strap.
  2. Enable Bidirectional DShot & RPM Filtering:
    • On the Motors tab, enable Bidirectional DShot and set the correct Motor Poles count (typically 14 for standard 22xx/23xx motors, 12 for micro motors).
    • Verify the error percentage reads 0.00% at idle.
  3. Reset to Defaults: On the PID Tuning tab, click Reset Settings to start from clean Betaflight defaults (all sliders centered at 1.0).
  4. Configure Blackbox (Optional but Recommended): Set Debug Mode to GYRO_SCALED at a 1kHz or 2kHz logging rate.

Phase 2: Filter Slider Tuning (Filters First)

The goal of filter tuning is to reduce filtering (lowering phase delay and propwash) as much as possible without letting high-frequency noise overheat your motors.

Relevant Sliders (Filter Settings Sub-Tab)

  • Gyro Filter Multiplier: Controls low-pass filtering on raw gyro data. Moving right (>1.0) = less filtering (lower latency, more noise). Moving left (<1.0) = more filtering (higher latency, cooler motors).
  • D-Term Filter Multiplier: Controls low-pass filtering on the D-term loop. This is the primary slider affecting motor heat.

Step-by-Step Filter Procedure

  1. Baseline Flight (Sliders at 1.0): Fly for 30 seconds (hover, full-throttle punch, sharp turns). Land, disarm, and feel motor temperatures.
  2. Reduce Filtering Gradually: If motors are cool/barely warm and you have RPM Filtering enabled, move both the Gyro Filter Multiplier and D-Term Filter Multiplier to the right in 0.1 or 0.2 increments (e.g., 1.0 → 1.2 → 1.4).
  3. Listen & Feel: After each increment, fly a 20-second test. Listen for high-pitched motor trilling/whining and check motor heat upon landing.
  4. Dial Back for Safety Margin: The moment motors become noticeably hot or emit a faint high-frequency trill on throttle punches, move the D-Term Filter Multiplier back to the left by 0.1–0.2 to leave a safe thermal margin for bent props or windy days.
Typical Target Range: On a clean, modern 5“ freestyle build with RPM filtering active, both filter sliders typically land comfortably between 1.2 and 1.5. Older, noisier frames or 7”+ long-range quads often stay near 0.8 to 1.0.

Phase 3: PID Slider Tuning (PIDs Second)

Once filters are locked in and motors run cool, tune your PID sliders to achieve crisp stick tracking and zero bounce-back.

Relevant Sliders (PID Settings Sub-Tab)

Slider What It Controls When to Increase (Move Right) When to Decrease (Move Left)
Master Multiplier Scales P, I, and D together proportionally. Quad feels loose, floaty, or lacks authority in propwash/wind. Rapid high-throttle shuddering or high-frequency ringing.
P and D Gain (Damping) Controls balance between P (snappiness) and D (braking/damping). Quad bounces back at the end of sharp flips/rolls. Motors run hot or D-term noise increases without improving bounce-back.
Tracking (Feedforward) Direct stick-to-motor response before gyro error occurs. Quad feels sluggish or lags behind rapid stick movements. Quad feels twitchy/nervous around center stick, or overshoots stops.
I Gain Attitude hold strength against drift and throttle punches. Nose pitches up on full-throttle punches or drifts in wind. Slow, robotic wobble or stiff rebound after maneuvers.

Step-by-Step PID Procedure

  1. Step 1 — Raise Master Multiplier:
    • Increase the Master Multiplier in 0.1 steps (1.0 → 1.1 → 1.2…).
    • Test with full-throttle punches and hard propwash turns.
    • Stop and back down by 0.1 if you hear/feel fast shuddering at high throttle or if motors get hot.
  2. Step 2 — Eliminate Bounce-Back (P and D Balance):
    • Perform sharp roll and pitch snaps, returning the stick dead-center instantly.
    • If the nose bounces back after stopping, move the P and D Gain (Damping) slider slightly to the right (increasing D relative to P) in 0.05–0.1 increments until stops are crisp and flat.
  3. Step 3 — Dial In Stick Feel (Feedforward / Tracking):
    • Adjust the Tracking (Feedforward) slider to match your flying style.
    • Raise it (1.1–1.3) for ultra-locked-in racing/freestyle response; lower it (0.7–0.9) for smooth cinematic flying.
  4. Step 4 — Check Attitude Hold (I Gain):
    • Do a sustained full-throttle climb and a fast forward pass. If the nose pitches up or down on its own, increase I Gain by 0.1–0.2.
Dynamic Idle Check (Crucial for Propwash): If you still experience propwash oscillation in low-throttle dives after tuning sliders, go to the Motors tab and enable Dynamic Idle (typically 30–40 for 5“ quads). This prevents motor RPMs from dropping too low during zero-throttle descents, giving the PID loop instant stabilization authority.

Phase 4: Final Verification Checklist

  • [ ] Full-Pack Stress Test: Fly one complete battery pack at normal intensity (not just a 20-second hover).
  • [ ] Thermal Check: Land and verify all four motors are warm-to-cool and equal in temperature.
  • [ ] Backup Configuration: Open the CLI tab, type diff all, and save the output text to a backup file on your computer.
drone/maint/pid_tuning.1795097549.txt.gz · Last modified: by Jon