AnyLearn
All lessons
Roboticsintermediate

Feedback Control Fundamentals

Understand why feedback beats open-loop, how the classic closed-loop architecture works, and what the key performance metrics — rise time, overshoot, settling time, steady-state error — actually mean for a real system.

Not signed in — your progress and quiz score won't be saved.
Lesson progress1 / 9

Open-loop versus closed-loop

An open-loop controller fires a pre-computed command and ignores what actually happens. Spray a fixed voltage on a motor and hope it reaches the right speed. Simple, but brittle — any friction change, load variation, or temperature drift sends the output somewhere unexpected.

A closed-loop controller measures the real output and adjusts. The difference is profound: instead of betting on a perfect model, you correct errors as they arise. Think of driving a car: you don't compute the exact steering angle to stay in your lane — you watch the road and steer continuously. Closed-loop is why spacecraft navigate despite thruster mismatches and why thermostats handle a suddenly opened door. Feedback trades complexity for robustness.

Full lesson text

All 9 steps on one page — for reading, reference, and search.

Show

1. Open-loop versus closed-loop

An open-loop controller fires a pre-computed command and ignores what actually happens. Spray a fixed voltage on a motor and hope it reaches the right speed. Simple, but brittle — any friction change, load variation, or temperature drift sends the output somewhere unexpected.

A closed-loop controller measures the real output and adjusts. The difference is profound: instead of betting on a perfect model, you correct errors as they arise. Think of driving a car: you don't compute the exact steering angle to stay in your lane — you watch the road and steer continuously. Closed-loop is why spacecraft navigate despite thruster mismatches and why thermostats handle a suddenly opened door. Feedback trades complexity for robustness.

2. The anatomy of a feedback loop

Every closed-loop system has the same five actors:

  1. Reference r(t)r(t) — the desired output (setpoint). "I want the arm at 90°."
  2. Error e(t)=r(t)y(t)e(t) = r(t) - y(t) — how far off you are right now.
  3. Controller C(s)C(s) — computes the control action u(t)u(t) from e(t)e(t).
  4. Plant P(s)P(s) — the physical system being controlled (motor, arm, heater).
  5. Sensor — measures the true output y(t)y(t) and feeds it back.

The controller never touches the plant directly; it only ever sees the error signal. That signal encodes everything: if e>0e > 0 the output is too low, if e<0e < 0 it overshot. Sensor accuracy matters enormously — feedback is only as good as your measurement.

3. Closed-loop block diagram

The canonical feedback loop: reference enters on the left, sensor closes the loop on the bottom.

flowchart LR
  R["Reference r(t)"]
  SUM["Summing junction e = r - y"]
  C["Controller C(s)"]
  P["Plant P(s)"]
  Y["Output y(t)"]
  S["Sensor"]
  D["Disturbance d(t)"]
  R --> SUM
  SUM --> C
  C --> P
  D --> P
  P --> Y
  Y --> S
  S --> SUM

4. Setpoint tracking and disturbance rejection

Feedback serves two distinct jobs, and good controller design must handle both.

Setpoint tracking: The reference changes (e.g., a new joint angle is commanded). The controller must drive e0e \to 0 quickly and smoothly. Fast tracking is good; oscillation on the way is not.

Disturbance rejection: Something hits the plant from outside — a gust of wind, a load dropped onto a conveyor, a temperature spike. The controller must sense the output deviation and correct it without being told anything about the disturbance. This is feedback's killer advantage: it compensates for disturbances it has never seen.

A badly designed controller can excel at one and fail at the other. High-bandwidth designs track fast but amplify sensor noise; low-bandwidth designs reject noise but respond sluggishly to disturbances.

5. Key performance metrics

Engineers characterize a closed-loop step response with four numbers:

MetricSymbolWhat it means
Rise timetrt_rTime to go from 10% to 90% of the step
Overshoot%OSPeak above setpoint, as % of the step size
Settling timetst_sTime until output stays within ±2% of setpoint
Steady-state erroresse_{ss}Permanent offset that never goes away

These metrics pull in opposite directions. Aggressive gains shrink trt_r but balloon %OS. Adding integral action zeroes esse_{ss} but may slow tst_s. Real control design is managing these trade-offs, not maximizing a single metric.

6. Stability: the non-negotiable requirement

A controller that reduces steady-state error but drives the plant into growing oscillations is worse than useless — it is dangerous. Stability means the output remains bounded and eventually settles.

For a linear system, stability is determined by the poles of the closed-loop transfer function T(s)=C(s)P(s)1+C(s)P(s)T(s) = \frac{C(s)P(s)}{1 + C(s)P(s)}. Poles in the left half-plane → stable (decaying transients). Poles in the right half-plane → unstable (exponentially growing). Poles on the imaginary axis → marginally stable (sustained oscillation).

Practical stability margins — gain margin and phase margin — tell you how much you can perturb the loop gain or phase before instability. A phase margin below ~30° usually means the system will ring badly under any small model error.

7. Why feedback is robust to model error

The closed-loop transfer function T(s)=CP1+CPT(s) = \frac{CP}{1+CP} has a remarkable property: when the loop gain CP1|CP| \gg 1, T(s)1T(s) \approx 1 regardless of what PP does. The plant's exact dynamics are divided away by the feedback. Halve the motor's torque constant? The controller sees more error and applies more effort, largely compensating.

Open-loop control requires a precise model — any mismatch translates directly into error. Feedback inverts this: the controller corrects in real time, so only the sensor noise and bandwidth matter, not the perfect knowledge of every friction coefficient and moment of inertia. This is why feedback is the backbone of every production robot: you cannot model everything, but you can always measure and correct.

8. Putting it together: a simple position controller

Suppose you want a DC motor to hold a joint at r=90°r = 90°. A proportional feedback law:

u(t)=Kpe(t)=Kp(ry(t))u(t) = K_p \, e(t) = K_p \bigl(r - y(t)\bigr)

At t=0t=0, the error is large so the motor gets a big command. As the joint approaches 90°, the error shrinks and so does the command — the motor naturally decelerates. If KpK_p is too small, the response is sluggish. Too large, and the motor overshoots, corrects, overshoots again — oscillation.

# Minimal proportional position control simulation
import numpy as np

Kp = 5.0          # proportional gain
dt = 0.01         # time step (s)
y  = 0.0          # initial angle (deg)
r  = 90.0         # setpoint (deg)

for _ in range(500):
    e = r - y
    u = Kp * e    # control signal
    y += u * dt   # first-order plant: dy/dt = u
    print(f"y={y:.2f}  e={e:.2f}")

This tiny loop captures the full feedback idea: measure, compute error, act, repeat.

9. Summary and what comes next

Feedback control is engineering's most powerful idea for managing uncertainty. The loop — reference, error, controller, plant, sensor — is replicated in every autopilot, thermostat, and robotic joint on the planet.

Key takeaways:

  • Open-loop is fragile; closed-loop corrects errors automatically.
  • Error e=rye = r - y is the fundamental signal driving the controller.
  • Performance is measured by rise time, overshoot, settling time, and steady-state error.
  • Stability is non-negotiable; gain and phase margins quantify robustness.
  • Feedback robustness comes from the 1/(1+CP)1/(1+CP) denominator suppressing plant uncertainty.

Next: we'll attach specific math to the controller block — the PID controller — which is how 95% of industrial loops are actually implemented.

Check your understanding

The lesson ends with a 5-question quiz. Take it in the player above to see your score.

  1. A robotic arm is commanded to move to 45°. After settling, it consistently stops at 43°. Which performance metric best describes this?
    • Overshoot
    • Steady-state error
    • Rise time
    • Phase margin
  2. Why does feedback control tolerate model error better than open-loop control?
    • It uses a more accurate sensor than open-loop systems.
    • The closed-loop gain $T(s) \approx 1$ when loop gain is large, dividing out plant uncertainty.
    • It requires a more precise mathematical model of the plant.
    • Feedback controllers always operate slower, which reduces sensitivity.
  3. Closed-loop poles in the right half of the s-plane indicate:
    • The system is critically damped.
    • The system is stable with fast settling.
    • The system is unstable — outputs grow without bound.
    • The system has zero steady-state error.
  4. A controller handles setpoint tracking perfectly but cannot reject a sudden load disturbance. What is most likely missing?
    • Sufficient proportional gain to overcome the disturbance
    • A feedforward term based on the reference signal
    • Adequate closed-loop bandwidth to sense and correct the disturbance fast enough
    • A faster reference trajectory
  5. Which two performance metrics most directly conflict when tuning a proportional gain $K_p$?
    • Steady-state error and phase margin
    • Rise time and overshoot
    • Settling time and gain margin
    • Disturbance rejection and sensor noise

Related lessons

Robotics
beginner

Closing the Loop: Microcontrollers and Feedback

Open-loop control is a guess; closed-loop control is a conversation. Learn why feedback transforms an unreliable robot into a reliable one, how the read-compute-actuate cycle works, what microcontrollers and single-board computers each do best, and why loop timing is just as critical as the algorithm running inside it.

10 steps·~15 min·audio
AI
advanced

Reinforcement Learning in 2026: Where It Ships and Where It Stalls

An honest map of RL in 2026 — the domains where it actually reaches production (LLM post-training, robotics policies, ad bidding, RLHF, reasoning models) and the places where it still cannot reliably cross the lab-to-deployment gap.

12 steps·~18 min·audio
Robotics
beginner

Sensors: How Robots Perceive

A robot is only as good as what it can measure. Explore the full sensor toolkit — encoders, IMUs, ultrasonic rangefinders, LiDAR, cameras, and force/torque sensors — and learn the four metrics that determine whether a sensor is fit for purpose: resolution, range, noise, and sampling rate.

10 steps·~15 min·audio
Robotics
beginner

What Is a Robot? Anatomy and the Sense-Plan-Act Loop

Strip any robot to its bones and you find three things: sensors that gather data, a controller that thinks, and actuators that move. Learn how these pieces fit together through the Sense-Plan-Act paradigm, why reactive control sometimes beats planning, and what makes a Roomba and a welding arm both qualify as robots.

10 steps·~15 min·audio