PID Controller Tuning Lab

GARR Foundation — Dr. APJ Abdul Kalam ZERO RESEARCH FUNDING Lab
ENGINEERING STREAMS: Electrical, Electronics, Mechanical, Instrumentation, Chemical, Aerospace, Robotics
Physical Hardware Equivalent
Rotary Inverted Pendulum / Motor Testbed
Coupled motor-generator & servo control trainer
IIT / IISc Physical Setup Cost
₹500,000 to ₹1,500,000 (₹5L - ₹15L)
Requires dedicated lab space, maintenance & hardware controllers
Indian Institutes Physical Deployment
IIT Bombay, IIT Madras, IIT Kharagpur, IISc Bengaluru
Control Systems & Mechatronics Research Labs
Kalam Lab Online Replacement Cost
₹0 (100% Free Open-Source)
Runs in browser on any smartphone or budget PC

Control Parameters

0%
Peak Overshoot
0s
Rise Time (10%-90%)
0s
Settling Time (2%)
0
Steady-State Error

How to Use the PID Tuning Lab

A Proportional-Integral-Derivative (PID) controller is the most common control loop algorithm used in modern automation (from cruise control in cars to drone flight stabilization and temperature management in industrial furnaces).

In this interactive lab, your goal is to make the System Output (y(t), blue line) quickly reach and lock onto the Setpoint Target (red dashed line) with minimum oscillation and zero offset.

Understanding the 3 Control Knobs

Adjust the sliders in the interface to see how each parameter changes system dynamics in real time:

1. Proportional Gain (Kp) — The Present Error Controller

2. Integral Gain (Ki) — The Past Error Corrector

3. Derivative Gain (Kd) — The Future Trajectory Predictor

Step-by-Step Tuning Guide (Ziegler-Nichols Manual Approach)

To tune the simulated system effectively, test this standard engineering procedure:

  1. Isolate Kp: Set Ki = 0 and Kd = 0. Slowly increase Kp until the system responds quickly without bursting into sustained, violent oscillations.
  2. Add Kd to Damp Oscillations: Gradually raise Kd. You will notice the overshoot shrink and the output curve smooth out.
  3. Add Ki for Zero Steady-State Error: Increase Ki slightly (e.g., 0.2 − 0.5) to pull the blue line directly onto the red setpoint line, eliminating remaining offset.

Why This Interactive Lab is Valuable for Engineering Students

Target Engineering Streams

This lab provides practical experience for students across several engineering departments:

Electrical & Electronics (EEE) Electronics & Communication (ECE) Mechanical Engineering Instrumentation & Control (ICE) Chemical Engineering (Process Control) Aerospace Engineering Robotics & Mechatronics