Control basics
Intent
Section titled “Intent”- Model a pulse-width modulator (PWM) and compute its small-signal gain.
- Compute the loop gain of a voltage-mode feedback loop at a given frequency.
- Quantify how feedback suppresses disturbances, and recognise where it stops helping.
Theory
Section titled “Theory”The PWM modulator
Section titled “The PWM modulator”A voltage-mode controller compares a control voltage with a sawtooth ramp of peak amplitude . The switch is on while the ramp is below the control voltage, so the duty ratio is proportional to the control voltage:
- duty ratio
- PWM ramp amplitude
- PWM control voltage
Assumptions, convention and source
- Assumptions
- trailing-edge PWM with a ramp from 0 to V_M
- Notes
- so the small-signal modulator gain is
- Source
- Erickson & Maksimović 2020, Ch. 7 (AC Equivalent Circuit Modeling)
- Derivation
- step-by-step sympy derivation
- Equation id
pwm.d· equations.yaml entry
The modulator’s small-signal gain, from control voltage to duty ratio, is therefore [Erickson & Maksimović 2020, Ch. 7].
The loop gain
Section titled “The loop gain”In a voltage-mode loop the output voltage is measured by a sensor of gain (often a resistive divider) and compared with a reference. The difference is amplified by the compensator and turned into a duty ratio by the modulator, and the converter’s control-to-output transfer function closes the loop. The loop gain is the product of the gains around the loop [Erickson & Maksimović 2020, Ch. 9]:
- loop gain
- compensator gain
- control-to-output gain
- sensor (divider) gain
- PWM ramp amplitude
Assumptions, convention and source
- Assumptions
- small-signal (linearised) model around a CCM operating point
- Notes
- magnitudes at one frequency; the phases of the factors add
- Source
- Erickson & Maksimović 2020, Ch. 9 (Controller Design)
- Derivation
- step-by-step sympy derivation
- Equation id
loop.T· equations.yaml entry
At each frequency the magnitudes multiply and the phases add. For the buck, is the transfer function of the small-signal page; for the boost and buck-boost it includes the right-half-plane zero.
What feedback buys
Section titled “What feedback buys”A disturbance that enters the loop, from the input voltage or from the load, reaches the output divided by [Erickson & Maksimović 2020, Ch. 9]:
- share of a disturbance that remains
- loop gain
Assumptions, convention and source
- Assumptions
- small-signal (linearised) model around a CCM operating point
- loop gain treated as a real magnitude (valid well below crossover)
- Notes
- at frequencies where a disturbance is divided by roughly
- Source
- Erickson & Maksimović 2020, Ch. 9 (Controller Design)
- Derivation
- step-by-step sympy derivation
- Equation id
loop.suppression· equations.yaml entry
Where the loop gain is large (at low frequencies), disturbances are suppressed by roughly the loop gain, and the output follows the reference divided by : it depends on the sensor and the reference, not on the converter’s gain. Where the loop gain is much smaller than 1 (above the crossover frequency), feedback has no effect. Near the crossover the loop gain is complex; with a small phase margin the magnitude of drops below 1, and disturbances there are amplified rather than suppressed [Erickson & Maksimović 2020, Ch. 9].
Worked example
Section titled “Worked example”The voltage-mode buck loop example, evaluated at dc:
| Symbol | Value | How it is obtained |
|---|---|---|
| input voltage | 24 V | given |
| PWM ramp amplitude | 2 V | given |
| PWM control voltage | 1 V | given |
| compensator gain | 10 | given |
| sensor (divider) gain | 0.2 | given |
| duty ratio | 0.5 | Duty ratio set by a PWM comparator |
| control-to-output gain | 24 V | Buck control-to-output dc gain, CCM |
| loop gain | 24 | Loop gain of a voltage-mode feedback loop |
| share of a disturbance that remains | 0.04 | Disturbance suppression by feedback |
The modulator turns the control voltage into a duty ratio of 0.5. At dc the loop gain is 24, so a slow disturbance reaches the output scaled by 0.04 relative to its effect without feedback.
Try it
Section titled “Try it”▶ Open in the equation explorer: Disturbance suppression by feedback
Preset from the example control-basic
Sweep the loop gain over several decades (logarithmic axis): each tenfold increase of a large loop gain buys another tenfold suppression.
Bench exercise
Section titled “Bench exercise”Measure the loop gain of a closed-loop converter by injection. Insert a small resistor in the feedback path, between the output and the sensing divider, and inject a small sinusoidal signal across it through an isolation transformer. The ratio of the signals on the two sides of the resistor, measured with a frequency response analyzer, is the loop gain [Erickson & Maksimović 2020, Ch. 9]. Find the crossover frequency and the phase margin, then compare how the output responds to an input-voltage step with the loop’s suppression at low frequency.
Gotchas
Section titled “Gotchas”- The modulator gain depends on the ramp amplitude. A controller whose ramp amplitude scales with the input voltage makes the buck’s loop gain independent of the input voltage, since the buck’s dc gain equals the input voltage (Buck control-to-output dc gain, CCM).
- Use the complex loop gain away from dc. The real-valued form above is exact only where is real. Elsewhere, divide by the magnitude of the complex sum ; where the loop gain is large, the two agree closely.
- A saturated modulator opens the loop. Once the control voltage leaves the ramp’s range, the duty ratio is clamped and the loop gain collapses; the equations on this page no longer apply.
Go deeper
Section titled “Go deeper”- Book chapter Controller Design (Ch. 9)
Loop gain, crossover frequency, phase margin and the design of PD/PI compensators. - Book chapter AC Equivalent Circuit Modeling (Ch. 7)
Averaging, perturbation and linearisation of converter equations, and the small-signal model of the PWM modulator. - Course Converter Control
Averaged small-signal models, converter transfer functions and feedback loop design.
A PWM modulator uses a sawtooth of peak amplitude . What duty ratio does a control voltage of produce?
Answer and explanation
Correct answer: B The switch is on while the ramp is below the control voltage, so the duty ratio is the control voltage divided by the ramp amplitude.
A voltage-mode loop has , , and at some frequency. What is the loop-gain magnitude there?
Answer and explanation
Correct answer: B The magnitudes multiply around the loop, and the modulator contributes : five times 12 times 0.25, divided by 1.5.
At dc a loop gain of 19 is measured. What fraction of its effect without feedback does a slow input-voltage disturbance still have at the output?
Answer and explanation
Correct answer: D The disturbance is divided by , that is by 20; it reaches the output at a twentieth of its effect without feedback.
How much does feedback suppress a disturbance at frequencies well above the crossover frequency?
Answer and explanation
Correct answer: A Where the loop gain magnitude is much smaller than 1, is close to 1, so the disturbance passes as if there were no feedback.
A loop has a small phase margin. What happens to disturbances near the crossover frequency?
Answer and explanation
Correct answer: C Near crossover the loop-gain magnitude is about 1, and with a phase close to the complex sum becomes small, so dividing by it amplifies the disturbance.
Why does scaling the PWM ramp amplitude with the input voltage keep the loop gain of a buck constant over the input range?
Answer and explanation
Correct answer: B The buck dc gain equals , and the modulator contributes . If is proportional to , their product, and with it the loop gain, no longer depends on .
The numbers in the examples, presets and exercises on this site are synthetic: round teaching values, not data from any real design.