PID_MASS_DAMPER_SYS​TEM

The main objective is to study the dynamic response of the system while manually tuning the PID parameters (Kp, Ki, Kd)
1 Download
Updated 8 Feb 2026

View License

Project Description
The system models a classical second-order mechanical system governed by mass, damping, and spring stiffness. A PID controller is applied to regulate the system position based on the error between the reference input and the actual displacement.
The proportional, integral, and derivative actions are implemented separately and summed to generate the control force applied to the plant. The plant dynamics include inertia, viscous damping, and spring force, modeled through differential equations and solved using integrators.
A key focus of this project is manual PID tuning, allowing users to directly adjust Kp, Ki, and Kd values and observe their impact on system behavior. This hands-on approach helps in understanding the physical meaning of each PID term and its influence on transient and steady-state response, rather than relying on automatic tuning methods.
The model is intended for educational and experimental purposes, enabling users to explore control concepts through trial-and-error parameter adjustment and real-time response analysis.

Cite As

Abd Al-Rhman Reda (2026). PID_MASS_DAMPER_SYSTEM (https://uk.mathworks.com/matlabcentral/fileexchange/183218-pid_mass_damper_system), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2025b
Compatible with R2025b to R2026a
Platform Compatibility
Windows macOS Linux
Tags Add Tags
Version Published Release Notes
1.0.0