Phase 09 · 21 lessons

Signals, Systems & Control

A first course in signals and systems and a first and second course in automatic control, at the level of MIT 6.003, 16.06 and 16.30/16.31, taught through aerospace control loops and organised around one idea: model, analyse, design, verify. Every lesson writes the plant model with its assumptions, analyses it in the time domain and the frequency domain, designs something, and checks every main result by an independent route. The checks include convolution against FFT multiplication, a reduced transfer function against a simulation of the unreduced block diagram, a Bode plot against the steady state of a simulated sine test, and an aliasing prediction against the FFT of a sampled tone. Root-locus points must satisfy the angle condition, Nyquist encirclements must agree with the closed-loop poles, and a Riccati solution must agree with scipy.linalg.solve_continuous_are and with its own residual. A describing-function prediction is compared with a simulated limit cycle, unconstrained MPC with the Riccati recursion, and in lesson 21 an identified model against your own closed-loop measurement.

Lessons

  1. P09.01computational Signals & Systems Build it: Signal toolkit (elementary signals, energy and power, even/odd parts, time shift and scale; tests for linearity, time invariance, causality, memory and BIBO stability)
  2. P09.02computational Convolution & Impulse Response Build it: Discrete convolution from scratch (direct sum against FFT; continuous convolution by Riemann sum; an RC IMU front end and a first-order servo)
  3. P09.03computational Transfer Functions & Block Diagrams Build it: Block diagram reducer (series, parallel, feedback; poles, zeros, DC gain; a pitch-attitude loop by hand and by code)
  4. P09.04computational Time Response & Poles Build it: Step response analyzer (rise, peak, overshoot, settling; ζ–ω_n formulas; dominant poles; the effect of a zero; partial fractions)
  5. P09.05computational Frequency Response & Bode Plots Build it: Bode plotter from scratch (exact and asymptotic, unwrapped phase; checked against a simulated sine test)
  6. P09.06computational Sampling & Aliasing Build it: Anti-aliasing filter design (alias calculator, Butterworth prototype, order selection for an IMU vibration line, sinc reconstruction)
  7. P09.07computational Digital Filters Build it: FIR and IIR from scratch (windowed sinc, moving average, prewarped bilinear IIR, difference equations)
  8. P09.08computational Feedback & Steady-State Error Build it: Cruise controller (airspeed hold: system type, error constants, disturbance rejection, S and T)
  9. P09.09computational Root Locus Build it: Root locus plotter (asymptotes, breakaway, jω crossings by Routh; gain for a damping target on an altitude hold)
  10. P09.10computational Nyquist & Stability Margins Build it: Nyquist plotter and margins (indented contour, winding number, Z = N + P; gain, phase and delay margins)
  11. P09.11computational PID Design & Tuning Build it: Pitch-attitude PID with anti-windup (derivative filter, saturation, clamping and back-calculation; Ziegler–Nichols and pole placement)
  12. P09.12computational Lead-Lag Compensation Build it: Loop shaping a servo (lead for phase margin at a target crossover, lag for steady-state error)
  13. P09.13computational State-Space Models Build it: State space from ODEs (companion and modal forms, similarity transforms, TF ↔ state space both ways)
  14. P09.14computational Controllability & Observability Build it: Rank tests (controllability and observability matrices, PBH, Gramians; a reaction-wheel satellite with a failed wheel or sensor)
  15. P09.15computational Pole Placement & Observers Build it: Full-state feedback and a Luenberger observer (Ackermann from scratch, duality, separation)
  16. P09.16computational LQR Build it: Riccati solver and LQR design (Hamiltonian eigenvectors and Newton–Kleinman; guaranteed margins; Bryson's rule; satellite attitude)
  17. P09.17computational Digital Control Build it: Discretisation and the z-transform (ZOH by the augmented matrix exponential, Tustin, matched pole-zero; sample-rate and delay effects on a pitch loop)
  18. P09.18computational Robustness & Uncertainty ★ Build it: Sensitivity functions and an H∞ introduction (Ms, Mt, disk margins, multiplicative uncertainty and the small-gain test, H∞ norm by sweep and by Hamiltonian bisection, the Bode sensitivity integral)
  19. P09.19computational Nonlinear Control Basics Build it: Lyapunov and feedback linearisation (Lyapunov equation, region-of-attraction estimate, describing functions of saturation and relay with limit-cycle prediction)
  20. P09.20computational Model Predictive Control ★ Build it: Linear MPC from scratch (condensed QP, equivalence with finite- and infinite-horizon LQR, input and rate constraints by an active-set QP; receding horizon on an altitude hold)
  21. P09.21physical experiment Home Lab: Servo Feedback Control 🔬 Build it: Close the loop on a servo or small motor; identify a model from a step test; design a P or PI gain; predict, measure and compare rise time, overshoot and settling

By the end you can:

You get a tested Python module for each of these. The mathematics is not new: Phases 01–03 supplied the linear algebra, the Laplace and Fourier transforms and the numerical methods, and Phase 04 the circuits and the bench microcontroller. What is new is systems thinking: signals as objects, LTI systems as operators, feedback, stability and design. The aerospace loops recur across lessons: a pitch-attitude autopilot, a control-surface servo actuator, an altitude hold, an IMU's anti-aliasing and digital filtering, and a reaction-wheel satellite. Each is a representative model stated as typical, never a specific vehicle's data.

One lesson has a physical experiment (marked 🔬): the servo feedback home lab. A learner without the kit completes it with the synthetic dataset supplied, which is labelled synthetic wherever it appears; a simulation is never presented as a measurement. Every other lesson's part 4 is a computational experiment, such as a parameter sweep, a sensitivity study, a method comparison, or an analysis of a synthetic dataset clearly labelled synthetic (the IMU and gyro records of lessons 06 and 07). Lessons 18 and 20 are marked ★: they go beyond a first control course, and no other lesson lists them as a prerequisite.

Lesson ids are P09.01 to P09.21. Each lesson's metadata table gives its exact prerequisites, and every lesson's metadata table reads:

Time unmeasured

The Time row stays unmeasured until pilots measure it. No time estimate is given here for the same reason.

Prerequisites

Phases 00–05 (no later phase is assumed), in particular:

Skill checks before starting: you can find the roots of a quadratic and the eigenvalues of a 2 × 2 matrix by hand, take the Laplace transform of e^{−at} and invert a partial-fraction expansion, compute the magnitude and angle of a complex number such as (1 + jω/a)⁻¹, write a second-order ODE as two first-order ones, and propagate an uncertainty through a product.

The project kit

The kit lives in projects/p09-servo-control/. It holds:

Read safety.md before buying anything and again before every session. The kit's safety.md is authoritative. The limits below summarise the hard rules that every version of this kit must keep, and nothing in the kit may relax them. The prediction, with its uncertainty, is written down and dated before the loop is first closed, raw data are never edited, and the report states which numbers were measured, which were computed, and which are synthetic.

Nothing in this phase involves mains voltage, propellers, flight, lithium-cell charging, or anything attached to a moving shaft beyond the pointer. Every IMU, gyro and servo record outside lesson 21's own measurements is synthetic and seeded. A report without a completed safety box and the logged pre-run tests is not graded.

Running the code

From the repo root, pytest curriculum/phase-09/lesson-NN- tests your starter/main.py. AEFS_IMPL=solution pytest curriculum/phase-09/lesson-NN- runs the same tests against the reference solution in solutions/phase-09/lesson-NN-/solution.py. Tests check properties rather than single numbers:

Everything in the tested code is implemented from scratch in NumPy; scipy.integrate.solve_ivp is used for nonlinear simulation where a lesson says so, and the python-control package is not used anywhere. Anything random is seeded. Tests need no network and write files only to a temporary directory. python scripts/check_lessons.py checks every lesson's structure.

The exam and the mini-project

Phase exam and mini-project: assessments/phase-09/. The exam has four parts:

The exam has not been piloted, so no time limit is suggested. Choose one in advance and record it. Results are reported per competency: (1) reasoning, (2) analysis, (3) computation, (4) interpretation. The worked solutions and pass thresholds are in solutions/phase-09/exam/. The mini-project is the servo feedback report from lesson 21, graded with the rubric. Seeded unseen cases for the computational lessons are planned in parameterized-cases/. Outcomes are recorded as practice completed, self-assessed mastery or externally reviewed mastery. None of these is a credential, and nothing in this phase qualifies anyone to design, tune or approve the control software of a real aircraft or spacecraft.

References: the phase's reference map is references/phase-09.md; it lists, for each lesson, the verified free sources with exact lecture, topic and section titles, what to extract, and the gaps the lessons fill with original instruction. Every required reading is free. The signals-and-systems lessons use the MIT 6.003 lecture notes (@mit-ocw-6-003-signals-and-systems) and the MIT 18.03 lectures (@mit-ocw-18-03-differential-equations). The classical-control lessons use MIT 16.06 (@mit-ocw-16-06-principles-of-automatic-control) and MIT 16.30 (@mit-ocw-16-30-feedback-control-systems). The state-space lessons use 16.30, MIT 6.011 (@mit-ocw-6-011-signals-systems-and-inference) and MIT 18.06 (@mit-ocw-18-06-linear-algebra). LQR, robustness and MPC use 16.30 and the MIT 16.323 lecture notes (@mit-ocw-16-323-principles-of-optimal-control). Supplementary-free sources: MIT 6.341 (@mit-ocw-6-341-discrete-time-signal-processing) for filters, MIT 6.243J (@mit-ocw-6-243j-dynamics-of-nonlinear-systems) for nonlinear systems, the NASA F-8 digital fly-by-wire report (@nasa-tn-d-7843-f8-digital-fly-by-wire) for flight context, and two texts that are free to read but not openly licensed and are therefore linked only, never copied: Smith's Scientist and Engineer's Guide to DSP (@smith-dsp-guide, personal use) and Rawlings, Mayne and Diehl's Model Predictive Control (@rawlings-mayne-diehl-mpc-2nd-edition, all rights reserved). The SciPy documentation (@scipy-userguide) documents the oracle routines. The home lab uses @micropython-docs and @sparkfun-learn-tutorials. Each lesson's references row names the exact sections; paid textbooks appear only as optional further study in the map. The curriculum links to every source and writes its own explanations.

This page on GitHub