Amazon Cyber Monday deals See deals →ad

Mets Minor League Blog

Music theory, instruments and musicians

Mets Minor League Blog

Music theory, instruments and musicians

ID Tuning Guide: Step-by-Step for Beginners

ID tuning (also called integral-derivative tuning or identifier tuning in some contexts) is the process of adjusting the parameters of a controller or system so it responds the way you want. In most practical cases, this refers to tuning a PID (proportional-integral-derivative) controller, but the same principles apply to any system where you adjust gains to change behavior. This guide walks you through the steps to tune an ID (or PID) controller from scratch, using the manual method that works for most systems, from temperature controllers to motor speed controls. You’ll learn how to set the gains, test the response, and refine until you get a stable, responsive system.

What You’ll Need

  • A working controller (hardware or software) that exposes at least two gain parameters: integral (I) and derivative (D). If you also have a proportional (P) gain, that’s fine — the method still applies.
  • A way to observe the system’s output over time (a graph, a display, or a data logger).
  • A way to apply a step change to the setpoint (the target value).
  • A stopwatch or timer (or just a sense of time) to measure oscillation periods.
  • Access to the controller’s settings (via a panel, software, or code).
  • Safety gear if the system involves high voltage, heat, or moving parts — always follow your equipment’s safety manual.

Step-by-Step

  1. Start with all gains at zero. Set the integral (I) and derivative (D) gains to 0. If you have a proportional (P) gain, set that to 0 as well. This gives you a baseline where the controller does nothing.
  2. Turn on the system and bring it to a stable state. Let the system run with no control action (or with a fixed manual output) until the output is steady. Note the current output value and the setpoint.
  3. Introduce a small step change. Change the setpoint by a small, safe amount (e.g., 10% of the full range). Watch the output. If the system is stable (output doesn’t run away), you can proceed. If it oscillates or goes unstable, reduce the step size or check your system for issues.
  4. Increase the proportional gain (P) first (if you have it). If your controller has a P term, set it to a small value (e.g., 1.0) and apply the same step. Observe the response: the output should move toward the setpoint but likely will not reach it (steady-state error). Increase P gradually (double it each time) until the output starts to oscillate at a constant amplitude (sustained oscillation). Note the value of P that causes sustained oscillation — call it Pu (ultimate gain). Also measure the period of that oscillation in seconds — call it Tu (ultimate period). If you don’t have a P term, skip to step 6.
  5. Set P to about half of Pu. If you found Pu, set P = 0.5 * Pu. This gives you a stable starting point. If you don’t have a P term, proceed to step 6.
  6. Add integral gain (I) to eliminate steady-state error. Start with a small I value (e.g., 0.1 per minute, or whatever units your controller uses). Apply the step and watch the output. The integral term will slowly push the output toward the setpoint, eliminating the offset. Increase I gradually (e.g., double it) until the output reaches the setpoint in a reasonable time without causing oscillation. A common starting point is I = 1 / Tu (if you measured Tu). If you don’t have a P term, you’ll need to adjust I alone to get a stable response — start with a very small value and increase slowly.
  7. Add derivative gain (D) to reduce overshoot and settling time. Start with a small D value (e.g., 0.1). Apply the step and observe. The derivative term acts like a brake, damping oscillations. Increase D gradually until the output settles quickly with minimal overshoot. Too much D will cause high-frequency noise amplification or instability. A common starting point is D = Tu / 8 (if you have Tu). If you don’t have a P term, use D to damp any oscillation from the I term.
  8. Fine-tune iteratively. After setting initial P, I, and D, apply a step and observe the response. Adjust one gain at a time: if the output oscillates too much, increase D or decrease P; if it’s too slow, increase P or I; if there’s a persistent offset, increase I. Make small changes (10-20%) and test after each change.
  9. Test with a realistic disturbance. Once the step response looks good, apply a disturbance (e.g., a load change or a sudden setpoint change) and see how the controller recovers. Adjust gains as needed to get a fast, stable recovery.
  10. Document your final gains. Record the final P, I, and D values, along with the test conditions. This is your baseline for future tuning.

Common Mistakes

  • Skipping the P-only step. If you jump straight to adding I and D without finding the ultimate gain, you’ll likely end up with a poorly tuned system. The P-only step gives you a reference point.
  • Increasing I too aggressively. Too high an integral gain causes oscillation and overshoot. Always start low and increase slowly.
  • Ignoring the derivative term’s noise sensitivity. Derivative amplifies measurement noise. If your output is noisy, D will make it worse. Use a filter if available, or keep D low.
  • Changing multiple gains at once. If you tweak P, I, and D simultaneously, you won’t know which change caused what effect. Change one at a time.
  • Testing with too large a step. A huge step can drive the system into a nonlinear region, making the response misleading. Use a small step that stays within the linear range.

Tips

  • Use a data logger or graph. Visualizing the response makes it much easier to see oscillation, overshoot, and settling time.
  • Start with a conservative baseline. If you’re unsure, use the Ziegler-Nichols rules: P = 0.6*Pu, I = 0.5*Tu, D = 0.125*Tu (if you have P). These are good starting points, but you’ll still need to fine-tune.
  • Think about the physical system. A temperature system is slow, so gains will be small. A motor speed system is faster, so gains may be larger. Use your intuition.
  • Keep a record of each test. Note the gains, the step size, and the response characteristics. This helps you track progress.
  • Be patient. Tuning is iterative. Expect to spend at least 30 minutes on a simple system.

Troubleshooting

  • System oscillates continuously. This usually means gains are too high. Reduce P and I (and D if it’s causing noise). If oscillation is at a high frequency, reduce D. If it’s slow, reduce I.
  • Output never reaches setpoint (offset). Increase I. If I is already high and you still have offset, check that the controller output isn’t saturating (hitting a limit).
  • Output is very slow to respond. Increase P and I. If the system is sluggish, the gains are too low.
  • Output overshoots a lot. Increase D to damp the overshoot, or decrease P. If D is already high, try reducing I.
  • Output is noisy or jittery. This is often due to derivative action on noisy measurements. Reduce D, or add a low-pass filter on the feedback signal if available.
  • System becomes unstable (output runs away). Immediately reduce all gains to zero and check your system for mechanical or electrical issues. Instability can also be caused by a wrong sign in the feedback (e.g., positive feedback instead of negative).

Frequently Asked Questions

What’s the difference between ID and PID tuning?

ID tuning refers to tuning a controller that has only integral and derivative terms, while PID includes proportional. The method is similar, but without P you rely on I for the main response. In practice, most systems have all three, so this guide covers the general case.

How do I know what units my gains are in?

Gains are usually in units of output per error (P), output per error per time (I), and output per error per time (D). Check your controller’s manual. The exact units matter less than the relative values.

Can I tune a system without a step change?

Yes, you can use a disturbance or a sine wave, but the step change is the simplest and most common method for a first tune.

How often should I retune?

Retune when the system’s dynamics change (e.g., different load, different environment) or after maintenance. Otherwise, a well-tuned system can run for years.

Is there a software tool that can auto-tune?

Many modern controllers have auto-tune functions that do a similar procedure automatically. They’re a good starting point, but manual tuning helps you understand the system better.

What if my controller doesn’t have a derivative term?

Then you’re tuning a PI controller. The steps are the same, just skip the derivative part. You’ll have more overshoot, but it’s often acceptable.

ID Tuning Guide: Step-by-Step for Beginners
Scroll to top