Project - Position control of mass spring damper system
PROBLEM:
Given:
The parameters of the spring mass damper system is as follows:
m=3.6;%mass attached to spring
k=400;%spring constant N/m
c=100;% damping coefficient Ns/m
The transfer function of the spring mass damer system is given as follows:
`1/((m*s^2)+(c*s)+k`
The simulation model of the above problem is as follows:

The parameters of each block are given below:
Pulse generation:

The pid controller is auto tuned and the values taken for the equation are as follows:

The output of the simulation model is given below:

Here the blue line indicates the output of the equation and yellow line indicates the reference signal of the system