Control Systems Calculators
Free control systems calculators: PID tuning, Bode, Nyquist, z-transform, lead-lag compensators, notch filters, state-space, observers, and Kalman gain.
Control Systems Calculators - PID Tuning and Transient Response
Feedback control design comes down to two linked questions: how do you choose controller gains that make a loop behave well, and how do you predict exactly how well it will behave once tuned. The PID Controller Tuning Calculator (Ziegler-Nichols), Settling Time and Rise Time Calculator, and Percent Overshoot Calculator cover both sides: converting a measured ultimate gain and period into working PID gains, and converting a system’s natural frequency and damping ratio into the transient-response specs engineers actually design against.
Twenty-Five Control Systems Calculators
PID Controller Tuning Calculator (Ziegler-Nichols) - Converts the ultimate gain and ultimate period from the classic closed-loop test into P, PI, or PID gains, in both the time-constant form (Kp, Ti, Td) and the parallel form (Kp, Ki, Kd).
PID Tuning Calculator (Cohen-Coon) - Converts an open-loop process reaction curve’s gain, time constant, and dead time into PID gains using the Cohen-Coon method, for processes where a closed-loop ultimate-gain test is impractical.
PID Tuning Calculator (IMC) - Converts a first-order-plus-dead-time process model into PID gains using IMC-based (Rivera-Skogestad-Morari) tuning, with a single adjustable tuning parameter (lambda) for closed-loop speed versus robustness.
Settling Time and Rise Time Calculator - Finds settling time (2% criterion), peak time, and rise time for an underdamped second-order system from its natural frequency and damping ratio, with an interactive step-response chart marking all three.
Percent Overshoot Calculator - Converts between percent overshoot and damping ratio in either direction, for the standard underdamped second-order step response.
Sampling Rate Selection Calculator - Recommends a digital sampling rate (fs = k x fmax) from a signal’s maximum frequency and a chosen oversampling factor above the Nyquist minimum.
Transfer Function Poles and Zeros Calculator - Poles and zeros of a 2nd-order transfer function G(s) = N(s)/D(s) from six coefficients, handling both real and complex-conjugate roots, with a left-half-plane stability verdict and a plotted pole-zero map.
Bode Plot Gain and Phase Margin Calculator - Gain margin, phase margin, and crossover frequencies for a K/(s(1+sT1)(1+sT2)) open-loop system, found by numeric root search, with magnitude and phase Bode plots and an automatic stability verdict.
Nyquist Stability Criterion Calculator - Nyquist plot of the same K/(s(1+sT1)(1+sT2)) open-loop system with the critical point -1+j0 marked, backed by an authoritative Routh-Hurwitz stability verdict on the closed-loop characteristic equation.
Root Locus Breakaway Point Calculator - Exact real-axis breakaway point and gain K for a three-real-pole open-loop system 1/(s(s+a)(s+b)), with a labeled pole-and-locus diagram on the real axis.
Routh-Hurwitz Stability Array Calculator - Builds the full Routh array for a characteristic equation up to degree 4 and counts sign changes in the first column for an exact right-half-plane pole count and stability verdict, with explicit handling of the leading-zero and all-zero-row special cases.
State Space Representation Calculator - Converts a 2nd-order transfer function into controllable canonical form state-space matrices A, B, C, D, with eigenvalues of A cross-checked against the transfer function’s poles and a labeled signal-flow block diagram.
Controllability and Observability Matrix Calculator - Kalman’s rank test for a 2-state system, building the controllability matrix Co = [B | AB] and observability matrix Ob = [C; CA] with their determinants, and a controllable/observable verdict for each.
State Feedback Gain (Pole Placement) Calculator - State feedback gain vector K = [k1, k2] that places a 2-state system’s closed-loop poles at a target damping ratio and natural frequency, with the open-loop and closed-loop poles plotted on the same pole-map diagram.
Observer (Luenberger Estimator) Calculator - Luenberger observer gain vector L = [l1, l2] that places a 2-state system’s estimation-error poles at a target damping ratio and natural frequency, the exact dual of state feedback pole placement, with the open-loop and observer poles plotted on the same pole-map diagram.
Kalman Filter Gain Calculator - Steady-state Kalman gain and a-priori/a-posteriori error covariance for a scalar discrete-time system, solved in closed form from the discrete algebraic Riccati equation, with a Riccati-recursion convergence chart.
Steady-State Error Calculator - Position, velocity, and acceleration error constants (Kp, Kv, Ka) and the resulting steady-state error for step, ramp, and parabolic inputs, by system type number 0, 1, or 2, via the Final Value Theorem.
Dead Time and Smith Predictor Calculator - Phase margin and ultimate-gain improvement a Smith Predictor recovers over naive proportional control for a first-order-plus-dead-time process, with both loops charted against dead time.
Cascade Control Loop Tuning Calculator - SIMC PI gains for a nested secondary (inner) and primary (outer) control loop, with an automatic pass/fail check of the 3-5x speed separation rule of thumb.
Feedforward Control Estimator - Feedforward gain Gff = -Gd/Gp that cancels a measurable disturbance before it hits the output, with a simulated peak-error reduction versus feedback control alone.
Discrete-Time Z-Transform Pole-Zero Calculator - Poles and zeros of a 2nd-order discrete-time transfer function H(z) = N(z)/D(z) from six coefficients, with a unit-circle stability verdict and a plotted pole-zero map on the z-plane.
Bilinear (Tustin) Transformation Calculator - Converts a continuous G(s) to a discrete H(z) using the Tustin substitution, with the exact frequency-warping identity and a warped-vs-naive magnitude response chart.
Gain and Phase Crossover Frequency Calculator - Gain crossover and phase crossover frequencies for a K/(s(1+sT1)(1+sT2)) open-loop system, found by numeric bisection search, with a crossover-frequency-vs-gain chart.
Lead-Lag Compensator Design Calculator - Solves the standard lead-network design equations for a required phase boost, or the standard lag-network decade-separation rule for a steady-state error improvement factor, with a direct phase/magnitude verification at the design frequency and Bode plots of the compensator alone.
Notch Filter for Resonance Suppression Calculator - Depth, -3dB bandwidth, and bandwidth edge frequencies for a finite-depth 2nd-order notch biquad with independent zero Q and pole Q parameters, verified by direct frequency-response computation at the notch, at the bandwidth edges, and far from resonance.
Why PID Tuning and Transient Response Matter
Ziegler-Nichols is a starting point, not a finished loop - The classic closed-loop method targets a quarter-amplitude decay response, a deliberately aggressive starting point. Most engineers trim the calculated proportional gain downward once the loop is running on real hardware, trading some speed for a smoother response.
Damping ratio sets the shape, natural frequency sets the speed - For a fixed damping ratio, settling time, peak time, and rise time all scale inversely with natural frequency. Percent overshoot, by contrast, depends only on the damping ratio, not on how fast the system moves.
Settling time and rise time answer different questions - Rise time measures how fast a response first reaches its target. Settling time measures how long the oscillations that follow take to die down within a tolerance band. A fast-rising system can still settle slowly if it rings.
Frequently Asked Questions
What is the Ziegler-Nichols method used for?
It converts two measurements from a real or simulated closed loop, the ultimate gain and ultimate period at the edge of sustained oscillation, into ready-to-use P, PI, or PID controller gains. The PID Controller Tuning Calculator computes all three modes from the same two inputs.
How do I find the settling time of my control loop?
For a standard underdamped second-order system, settling time (2% criterion) is ts = 4/(zeta x wn), where zeta is the damping ratio and wn is the natural frequency in rad/s. The Settling Time and Rise Time Calculator computes this alongside peak time and rise time, with a labeled step-response chart.
What damping ratio do I need for a target overshoot?
Percent overshoot and damping ratio are related by %OS = 100 x exp(-zeta x pi / sqrt(1 - zeta^2)). The Percent Overshoot Calculator solves this in either direction, so you can enter a target overshoot spec and get back the minimum damping ratio needed.
How do I estimate states I cannot measure directly?
A Luenberger observer reconstructs the full state vector from the measured input and output alone, placing the estimation-error poles at a chosen damping ratio and natural frequency. The Observer (Luenberger Estimator) Calculator computes the observer gain L for a 2-state system, and the Kalman Filter Gain Calculator solves the related but distinct problem of minimizing estimation-error variance under known process and measurement noise.
How is discrete-time stability different from continuous-time stability?
A continuous-time system is stable when every pole has a negative real part (left half of the s-plane), while a discrete-time system is stable when every pole has magnitude less than 1 (inside the unit circle in the z-plane). The Discrete-Time Z-Transform Pole-Zero Calculator applies this unit-circle test directly, and the Bilinear (Tustin) Transformation Calculator converts a continuous G(s) to its discrete equivalent so the two stability tests can be compared on the same design.