The mechatronics project: specification, simulation and results
Introduced
6:36
System Dynamics and Control
The cooling loop needs one more part - a valve that sets the flow, moved by a small motor and a controller. This course builds the models, reads their…
English narration · English and 中文 subtitles you can switch
In this lesson
| English | Meaning |
|---|---|
| Anti-windup/ˈænti ˈwɪndʌp/ | A method that stops the integral term growing while the actuator is saturated. |
| control/kənˈtrəʊl/ | Making a system's output follow a desired value, usually by measuring it and correcting the input. |
| overshoot/ˌəʊvəˈʃuːt/ | How far a step response goes past its final value, usually given as a percentage of the step. |
| rate limit/reɪt ˈlɪmɪt/ | The largest rate of change an actuator or signal is allowed to have. |
| windings |
Show that it meets the specification
- The course ends with a valve positioner. It must move 90° quickly, stop exactly and hold against the water. The project shows, with numbers anyone can trace, where it meets the specification and where it does not.
- Write a specification with measurable targets, simulate the full nonlinear model, compare every design against every target, and check the simulation first. Good anti-windup 抗积分饱和 turns out to decide the result.

Put the project method in order.
Difficulty 3/5 · 200 coins + a small bonus on first completion today
Checkpoints come before any reported result.
Checkpoints for the simulation
- Three results are known without simulating: the saturated speed of 3.58 rad/s; P control 控制 stopping $3.0/133.5$ rad $= 1.29°$ short; and 4.6% overshoot 超调量 for a small unloaded step at $\zeta = 0.7$.
- The simulation reproduces all three, so its other numbers are worth reporting.
P-only shortfall under load: 3.0/134 rad in degrees (two decimals)?
Difficulty 2/5 · 140 coins + a small bonus on first completion today
0.0224 rad.
Saturated speed 12 x 0.398 - 3.0 x 0.398 (two decimals, rad/s)?
Difficulty 2/5 · 140 coins + a small bonus on first completion today
9 V of useful drive.
The results table
- Specification: 90° within $\pm0.5°$ by 0.6 s, overshoot below 5%, under a 5 N·m load.
- P only stops 1.29° short: fails. PI without anti-windup 抗积分饱和 overshoots to 159°: fails.
- PI with clamping is inside the band at 0.52 s with no overshoot: passes, also when sampled at 1 kHz.
Pass, fail or limit?
Classify each result in the project report.
Which candidate passes the spec?
Difficulty 1/5 · 100 coins + a small bonus on first completion today
It reaches the band at 0.52 s without overshoot.
Limits, stated
- With no load, a small 5° step overshoots 超调量 by 18%: the integral zero adds overshoot that the load normally hides.
- The margin is only 0.08 s, and it depends on the supply: at 11 V the valve reaches the band at 0.58 s. Not tested: encoder faults, a sticking valve, and the copper's +0.4%/K resistance change.
Time margin of a 0.52 s result against a 0.6 s spec (two decimals, s)?
Difficulty 2/5 · 140 coins + a small bonus on first completion today
0.6 minus 0.52.
A passing design needs no stated limits.
Difficulty 1/5 · 100 coins + a small bonus on first completion today
The report must say where it stops being valid.
The move time by hand
- At the loaded rate limit 速率限制, 90° takes $1.571/3.58 = 0.44$ s. The simulation's 0.52 s adds 0.08 s for the final, linear approach into the band.
- At 11 V the motor runs at $(11 - 3.04)/0.05 = 159$ rad/s, 3.18 rad/s at the valve: $0.49 + 0.08 = 0.57$ s, against the simulated 0.58 s. A hand estimate this close is a second check on the simulation.
A 90° move at a rate limit of 3.58 rad/s: slewing time (two decimals, s)?
Difficulty 2/5 · 140 coins + a small bonus on first completion today
$1.571/3.58 = 0.439$ s.
Worked example: a hot motor
- After long running the windings 绕组 are 50 K warmer. Copper's +0.4%/K raises $R$ by 20%, to 1.44 Ω.
- Under the same load the motor turns at $(12 - 2.54 \times 1.44)/0.05 = 167$ rad/s, 3.34 rad/s at the valve.
- The fast part takes 0.47 s and the whole move about 0.55 s. It still passes, with 0.05 s of margin. Name this case in the report: it is a worst case the specification did not list.
Winding resistance 1.2 Ω at +0.4%/K, 50 K warmer: new resistance (two decimals, Ω)?
Difficulty 2/5 · 140 coins + a small bonus on first completion today
$1.2 \times (1 + 0.004 \times 50) = 1.44$ Ω.
With 1.44 Ω, 12 V and 2.54 A: valve speed through 50:1 (two decimals, rad/s)?
Difficulty 2/5 · 140 coins + a small bonus on first completion today
$(12 - 2.54 \times 1.44)/0.05 = 166.9$ rad/s; $/50 = 3.34$.
Three common mistakes
- Trusting a simulation never checked against a known result. Its numbers cannot be trusted.
- Writing "meets the specification" without the margin. Say how close it is.
- Reporting only the design that passed. Show every one.
Recap
- Checkpoints first: 3.58 rad/s, 1.29° short, 4.6% overshoot.
- Against 90° within ±0.5° by 0.6 s, with under 5% overshoot:
| Controller | Result | Verdict |
|---|---|---|
| P only | stops 1.29° short | fails |
| PI, no anti-windup 抗积分饱和 | overshoots to 159° | fails |
| PI with clamping | in the band at 0.52 s, no overshoot | passes |
- Margins and limits are part of the result.
What went wrong? Only the site team sees this.