Build Nights / Night 13
Night 13 of 18Week 26 · Term 3: Signals, sensors and controlProposed · no date yet
Design a Simulated Control System
Cruise control holds 50 km/h up a hill; a drone holds still in the wind. Can you design a controller that meets a written specification, and prove it does?
This night is part of a proposed programme. It has not been scheduled and has not taken place. When it is scheduled it will appear on /live/. You can do everything below on your own, today.
The big question
What does each of the P, I and D terms do? How do we measure a step response (rise time, overshoot, settling time, steady-state error), and why can too much gain make a system worse?
In the real world
PID controllers run in factories, ovens, 3D-printer nozzles, cruise control and drones. Engineers usually write the specification first (how fast, how much overshoot, how accurate) and then tune and test against it, because “it looks fine” is not something you can check.
Try it: the guided experiment
Everything runs in your browser. No real hardware, ever.
- Guided experiment “Proportional control never quite arrives”: record the steady-state error for three values of Kp.
- Guided experiment “How long until it settles?”: add integral action and record the settling time.
- Add derivative action and record what happens to the overshoot.
- Switch to the second-order plant and repeat one setting. What changes?
The design challenge
Write a specification before tuning: overshoot under 10%, zero steady-state error, settling time as short as you can. Tune a controller, record all four metrics, and state which line of the specification was hardest to meet and what you traded for it.
At your level
- Level 1 · ExplorerSpot closed loops in everyday life (a person steering a bike, a thermostat). Describe overshoot in words from the chart.
- Level 2 · BuilderRecord rise time and overshoot for three Kp values and describe the pattern.
- Level 3 · InnovatorMeet the specification with a PI or PID controller and record all four metrics.
- Level 4 · Systems EngineerUse P-only steady-state error = r/(1 + Kp·K) to predict the error for two Kp values, check in the lab, and explain why integral action removes it.
- Level 5 · Research EngineerInvestigate how Kd changes overshoot and settling time across at least four values with Kp and Ki fixed, on both plants.
What the model leaves out
The lab simulates linear first- and second-order plants with small fixed time steps. Real motors and heaters add friction, delay, limits and nonlinearity.
Where you’ll work
Watch first (optional)
- What Is PID Control? | Understanding PID Control, Part 1 (opens YouTube in a new tab)MATLAB · 11 min 42 s · Level 3Shows how proportional, integral and derivative terms each help a system reach its setpoint quickly without overshooting or drifting.
- PID Control - A brief introduction (opens YouTube in a new tab)Brian Douglas · 7 min 44 s · Level 2A short, friendly first look at PID that you can watch before any of the maths.
- Cheese, Catastrophes, & Process Control: Crash Course Engineering #25 (opens YouTube in a new tab)CrashCourse · 11 min 1 s · Level 2Real factory examples of why feedback loops matter and what happens when they fail.
Afterwards
Watch “What Is PID Control?”, then use your controller in BUILD 002 Level 4 or BUILD 007 Level 4.
Everyone can take part
- Slides use large, high-contrast text and never rely on colour alone. The host describes every chart and animation aloud.
- Live captions switched on and tested before the session; the host reads each on-screen instruction aloud.
- Every lab and Build works by keyboard, gives text readouts of its results and respects reduced-motion settings.
- Worksheet available to print, in large print and as plain text; answers can be typed, drawn, or spoken to a helper.
- The feedback lab reports each metric as text; read them aloud after every run.
How the live session is kept safe
- A host and a separate adult supervisor are there for the whole hour.
- Your camera, microphone and chat stay off. Ask questions in the moderated box; they are read out without your name.
- Nobody will ask for your personal details, photos, school or location.
- Everything happens in a simulation or on paper. Never open or change a real device.
Running this with a group? Open the printable facilitator kit.