A8 · Lesson 23 · Lab: second-order responses
Damping, overshoot and settling, computed and measured
Lessons 16 to 21 gave formulas for a second-order system's response: and from the parts, the overshoot from , the ringing from the roots. In this lab you'll compute those from component values, simulate step responses and measure them the way a scope would, estimate damping from the decay of a ringing waveform, and find out how good the familiar settling-time rule of thumb really is.
- The curve is the step response of with = 1 rad/s.
- Lower : the overshoot grows and the ringing lasts longer. The readouts give the formula values your code will check.
- At = 0.7 the overshoot is under 5%, a common design choice.
Predict
Two successive peaks of a ringing waveform are 1.0 and 0.53. About what is ?
About 0.1. The logarithmic decrement is , and . Each cycle multiplies the amplitude by , so the ratio of any two successive peaks gives , without knowing the starting amplitude or the frequency.
Name it
From parts to parameters
| Circuit | ||
|---|---|---|
| Series RLC | ||
| Parallel RLC |
Measuring a response
- Overshoot: the peak's excess over the final value, as a fraction; for an underdamped step response it's .
- Logarithmic decrement: for successive peaks of a free oscillation; .
- Settling time: the last time the response is outside a band (often 2%) around the final value. The rule of thumb comes from the envelope reaching 2%; the actual crossing depends on where in a cycle the response passes the band, so it's usually a little shorter.
Simulating
Write the equation in state form, , , and step it with RK4. With 1000 steps per second of a 1 rad/s system, RK4 is accurate to many digits.
Worked example
A series RLC has = 40 Ω, = 10 mH and = 1 µF. Find , and the step overshoot.
Show the solution
- Natural frequency.
- Damping ratio.
- Overshoot. The capacitor voltage swings 53% past its final value before settling.
Answer rad/s, , and the step response overshoots by 53%.
Worked example
A system with = 0.2 and = 1 rad/s. Compare the settling-time rule of thumb with the simulated value.
Show the solution
- The rule of thumb.
- The simulation. Simulating with RK4 and finding the last time gives 19.6 s.
- The envelope. The error's envelope, , reaches 2% at and the response, being inside its envelope, leaves the band a little earlier.
- Compare. The rule is a slightly conservative estimate.
Answer the rule gives 20 s and the simulation 19.6 s, so the rule is slightly conservative.
Check
A series RLC has = 20 Ω, = 10 mH and = 1 µF. What is ?
Check
Successive peaks of a free oscillation have the ratio 0.7. What is ?
Check
Write params(R, L, C) returning (zeta, w0) for a series RLC. Set z, w0 = params(40, 10e-3, 1e-6).
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Simulate the step response of ( = 1, = 0.2) from rest with RK4, = 0.001, out to 40 s. Set overshoot to the peak minus 1 and formula to .
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
A ringing record's successive positive peaks are in the starter. Estimate from each pair of neighbors by the logarithmic decrement, and set z_est to their average.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Simulate the step response for = 0.2 ( = 1) with RK4, = 0.001, out to 60 s, and set ts to the last time (plus one step) and rule to .
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Design for 5% overshoot: invert for , then set R to the series resistance that gives it with = 10 mH and = 1 µF.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Explain why
Why can the logarithmic decrement measure damping without knowing the starting amplitude or the circuit's parts?
A lightly damped free response is a sinusoid inside an exponential envelope, . Successive peaks are one period apart, , so their ratio is . The amplitude cancels in the ratio, and so does : the decay per cycle depends on alone. That's why a scope trace of any ringing system, a filter, a mechanical mount or a power supply's output, gives its damping from two peak heights, and the frequency between them then gives .
Practice
Keep practicing
6 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.