Number2Pencil
- 204
- 1
Homework Statement
Derive the state space model of a spring-mass-damper system. Neglect friction, wind resistance, etc. Neglect the force of gravity. Assume the spring's equilibrium point is at y=0 and there is an arbitrary
Homework Equations
[X'] = AX + BU
y = CX + DU
The Attempt at a Solution
Newton's law:
<br /> F_{NET}=ma = m\ddot{y}<br />
The sum is an arbitrary input force, u, the recoil force that works in the direction towards the spring's equilibrium point, and the dampening coefficient which works against velocity:
<br /> u-c\dot{y}-ky=m\ddot{y}<br />
Rearranging terms:
<br /> \ddot{y} = \frac{1}{m}u - \frac{c}{m}\dot{y}-\frac{k}{m}y<br />
Setting up state-space integral form:
<br /> y = \int( -\frac{c}{m}y + \int (-\frac{k}{m}y + \frac{1}{m}u) dt) dt'<br />I call the entire outer integral X1 and the inner integral X2, using this nomenclature:
<br /> y = X_1<br />
<br /> \dot{X_1} = -\frac{c}{m}X_1 + X_2<br />
<br /> \dot{X_2} = -\frac{k}{m}X1 + \frac{1}{m}u<br />
<br /> \left[<br /> \begin{array}{cc}<br /> \dot{X1}\\<br /> \dot{X2}\\<br /> \end{array}<br /> \right] = \left[<br /> \begin{array}{cc}<br /> -\frac{c}{m}&1\\<br /> -\frac{k}{m}&0\\<br /> \end{array}<br /> \right]<br /> \left[<br /> \begin{array}{cc}<br /> X1\\<br /> X2\\<br /> \end{array}<br /> \right] + <br /> \left[<br /> \begin{array}{cc}<br /> 0\\<br /> \frac{1}{m}<br /> \end{array}<br /> \right]u<br /><br /> y = <br /> \left[<br /> \begin{array}{cc}<br /> 1&0<br /> \end{array}<br /> \right]\left[<br /> \begin{array}{cc}<br /> X1\\<br /> X2\\<br /> \end{array}<br /> \right] + 0u<br />So now I wanted to test it using a sine-wave input force to the system. Intuitively, I would expect a sine-wave output as the mass should be bobbing up and down on the spring. What I actually get is at the beginning, there is a much slower frequency component than my input sine-wave, as well as the input-frequency component, almost like the sum of two different sine waves. This slower-component then dies off and I am left with something that matches more closely to my input sine-wave. What is strange is that during that initial slow-frequency response, the amplitude gets quite large, much larger than when it is finally settled.
My question is: What is going on? Is my intuition just wrong and truly this mass has a large initial "push"? Is there an error in my state-space model? Or something I am forgetting to take into account. I tested that having a zero-force input, the spring remains at zero.
Edit: Also, my test constant values were m= 0.72kg, k = 0.5, c =1
Last edited: