Control Systems Tutorial
Learn Control Systems step by step: 37 lessons in 9 chapters with examples, quizzes, diagrams and projects.
Start learning →
of lessons completed
Getting Started
- What Is a Control System? Learn what a control system is, its parts (plant, sensor, controller, actuator), everyday examples, and how to simulate one in Python with NumPy.
- Open-Loop and Closed-Loop Control Compare open-loop and closed-loop control, see why feedback handles model errors and disturbances, and simulate both in Python with real numbers.
- Block Diagrams and Feedback Basics Read control block diagrams, derive the closed-loop formula G/(1+GH), and compute the sensitivity function and loop gain with NumPy polynomials.
- The Control Design Workflow and Python Toolkit Follow the standard control design workflow from specifications to testing, and build a small Python toolkit for simulating systems with SciPy and RK4.
Modelling and Transfer Functions
- Modelling Physical Systems Derive differential equations for mass-spring-damper, RC circuit, DC motor and tank systems, see their analogies, and linearize nonlinear models in Python.
- The Laplace Transform for Control Learn the Laplace transform pairs and properties used in control, solve differential equations in the s-domain, and do partial fractions with SciPy residue.
- Transfer Functions, Poles and Zeros Define transfer functions, find poles, zeros and DC gain, and see how zeros in the right half-plane cause undershoot, all computed with NumPy and SciPy.
- Block Diagram Reduction Reduce complex control block diagrams with series, parallel and feedback rules and by moving junctions, then check the result with polynomial code in Python.
- Signal Flow Graphs and Mason's Rule Draw signal flow graphs, identify forward paths and loops, and use Mason's gain formula to get transfer functions, with a Python implementation to check it.
Time-domain Analysis
- Test Signals and First-Order Response Learn standard test inputs (impulse, step, ramp), derive the first-order step response and its time constant, and estimate T from noisy data with Python.
- Second-Order System Response Understand the standard second-order system, damping ratio and natural frequency, the four damping cases, and compute step responses with NumPy and SciPy.
- Time-Domain Specifications Define rise time, peak time, overshoot and settling time, translate them into pole regions, and design a gain to meet specifications, verified in Python.
- Steady-State Error and System Type Compute steady-state error with the final value theorem, learn system type and the Kp, Kv and Ka error constants, and verify ramp tracking in Python.
- Dominant Poles and the Effect of Added Poles and Zeros Learn when a high-order system acts like a second-order one, how an extra pole slows a response, how a zero adds overshoot, with simulations in Python.
Stability
- Stability and Pole Locations Learn what stability means for control systems, BIBO and marginal stability, how pole locations decide it, and test stability with NumPy roots and simulation.
- The Routh-Hurwitz Criterion Build the Routh array step by step, count right-half-plane roots from sign changes, and implement the Routh-Hurwitz test in Python to check against np.roots.
- Routh Special Cases Handle the two special cases of the Routh array, a zero in the first column and an entire row of zeros, with the epsilon trick and auxiliary polynomial in Python.
- Gain Ranges and Relative Stability Use Routh-Hurwitz to design stable parameter ranges, measure relative stability by shifting the axis, and see how time delay limits gain, with Python checks.
Root Locus and Frequency Response
- Root Locus Basics Learn what the root locus is, how closed-loop poles move as the gain K grows, and how to trace and read a locus numerically with NumPy.
- Root Locus Rules and Examples Sketch a root locus by hand with the standard rules: real-axis segments, asymptotes, breakaway points and imaginary-axis crossings, each checked in Python.
- Bode Plots and Frequency Response Understand frequency response and Bode plots: compute magnitude and phase of a transfer function, read corner frequencies and slopes, and find bandwidth in Python.
- Nyquist Plots and Stability Margins Use the Nyquist criterion to judge closed-loop stability from the open-loop frequency response, and compute gain margin, phase margin and delay margin from scratch.
PID and Compensators
- PID Controller Basics Understand the PID controller: what the proportional, integral and derivative terms do, how each changes a step response, and how to code a PID loop in Python.
- PID Tuning and Ziegler-Nichols Methods Tune a PID controller with the Ziegler-Nichols step-response and ultimate-gain methods, a relay autotuner, and a gentler rule, with every result simulated in Python.
- Lead and Lag Compensators Design lead and lag compensators from frequency-response specs: add phase margin with a lead, boost steady-state accuracy with a lag, and verify both in Python.
- Practical PID: Windup, Filters and Limits Make a PID controller work on real hardware: integrator anti-windup, derivative filtering, setpoint weighting, output limits and bumpless transfer, all simulated.
State Space
- State-Space Models Learn state-space models of dynamic systems: build A, B, C, D matrices, convert to and from transfer functions, simulate with the matrix exponential, and use eigenvalues as poles.
- Controllability and Observability Learn controllability and observability: rank tests, hidden modes and pole-zero cancellation, Gramians as a measure of how hard a state is to reach, with NumPy code.
- State Feedback and Pole Placement Design full-state feedback u = -Kx to place closed-loop poles where you want them, derive Ackermann's formula in code, scale the reference, and see the cost of speed.
- State Observers and Output Feedback Estimate unmeasured states with a Luenberger observer, design its gain by duality, combine it with state feedback via the separation principle, and weigh speed against noise.
- LQR Optimal Control Design the linear-quadratic regulator: pick Q and R, solve the algebraic Riccati equation with SciPy and from scratch, and see how weights trade accuracy for control effort.
Digital Control
- Sampling and the Z-Transform Understand how computers sample and hold signals, what aliasing does, how the z-transform maps s-plane poles to the unit circle, and why slow sampling destabilizes a loop.
- Discretization Methods Convert continuous controllers and plants to discrete time with forward Euler, backward Euler, Tustin (bilinear) and zero-order hold, and compare accuracy and stability.
- Digital PID Implementation Implement a PID controller as a difference equation: rectangular and Tustin integrals, positional versus velocity form, filtered derivative, and the effect of sample time.
Projects and Practice
- Project: Cruise Control Build a car cruise controller step by step: model the vehicle, tune a PI controller from pole placement, reject a hill disturbance, and add anti-windup for saturated engine force.
- Project: Inverted Pendulum with LQR Balance an inverted pendulum on a cart: derive the model, linearize it, design an LQR controller, and test it on the full nonlinear dynamics to find its region of attraction.
- Control Systems Practice Problems Ten worked control-systems problems covering second-order response, steady-state error, Routh stability, root locus, gain margin, PID tuning, state space, LQR and discretization.