PID versus LQR Full-State Feedback Control of a Cart–Inverted Pendulum System: Tuning and Robustness under Parameter Variation
The cart–inverted pendulum is a standard benchmark for unstable, underactuated dynamics, yet published comparisons of PID and LQR control often stop at a single nominal case. This study compares the two controllers on a linearised cart–pendulum model (cart 2 kg, pendulum 0.1 kg, rod 0.25 m) built in MATLAB/Simulink, and asks how each copes when the plant itself changes. The model was derived from Newton’s laws, confirmed to be controllable and observable, and written in state-space form. PID gains were obtained by auto-tuning and by trial and error over eleven combinations, and LQR weights were explored over ten Q and R settings. Every design had to keep cart velocity below 1 m/s, pendulum angle below 10° and angle settling time under 20 s. The best PID controller (Kp = 100, Ki = 90, Kd = 40) settled in 9.48 s with a 0.92° peak angle, whereas the best LQR controller (Q = diag[100, 1, 10, 1], R = 0.008) settled in 3.69 s with a 0.44° peak. Across nine variations in cart mass, pendulum mass and rod length, LQR settled in 3.8–5.4 s every time, while PID needed 9.2–10.7 s and failed to settle when the cart mass rose to 10 kg. All results come from simulation and should be confirmed on hardware.
Authors
- Sazuan Nazrah Binti Mohd Azam
- Arfah Syahida Mohd Nor (ORCID: https://orcid.org/0009-0003-2772-3137)
- Nur Syahmina Mohd Shafik
- Mohamad Haniff Bin Harun
- Nor Hidayah Binti Rahim
Institutions
- Technical University of Malaysia Malacca (MY)
Publication Details
- Journal
- International Journal of Research and Innovation in Social Science
- Published
- 2026-11-26
- DOI
- https://doi.org/10.47772/ijriss.2026.101100256
- Primary Topic
- Advanced Control Systems Design
- Type
- article
- Field-Weighted Citation Impact
- 0.00