Question 10.24: Control of a Single-Degree-of-Freedom Mass–Spring–Damper Sys...
Control of a Single-Degree-of-Freedom Mass-Spring-Damper System
Consider a single-degree-of-freedom mass-spring-damper system as shown in Figure 5.29, where m=2 \mathrm{~kg}, b=2 \mathrm{~N} \cdot \mathrm{s} / \mathrm{m}, and k=50 \mathrm{~N} / \mathrm{m}. A PD controller, f=-k_{\mathrm{p}} x-k_{\mathrm{D}} \dot{x}, is designed to adjust the input force f so that the mass block can be maintained in the equilibrium position regardless of disturbance forces applied to the block. The performance requirements of the closed-loop system are overshoot M_{\mathrm{p}}<5 \% and rise time t_{\mathrm{r}}<0.25 \mathrm{~s}.
a. Design a PD controller to meet the performance requirements.
b. A Build a block diagram of the feedback control system, in which the plant is constructed using Simscape blocks and the controller is constructed using Simulink blocks. Find the closed-loop response if the mass block is initially 0.1 \mathrm{~m} away from the equilibrium position.

Learn more on how we answer questions.
a. The dynamics of the plant is described by
m \ddot{x}+b \dot{x}+k x=f
where the control force is
f=-k_{\mathrm{p}} x-k_{\mathrm{D}} \dot{x}.
Combining the two equations gives the dynamics of the closed-loop system,
m \ddot{x}+\left(b+k_{\mathrm{D}}\right) \dot{x}+\left(k+k_{\mathrm{p}}\right) x=0,
which is a second-order system. Thus, the coefficients in the above differential equation can be related to the natural frequency and damping ratio of the closed-loop system via
\begin{aligned} \frac{b+k_{\mathrm{D}}}{m} & =2 \zeta \omega_{\mathrm{n}}, \\ \frac{k+k_{\mathrm{p}}}{m} & =\omega_{\mathrm{n}}^{2} . \end{aligned}
The requirement for overshoot indicates
\zeta>0.69.
Pick \zeta=0.75 and substitute into the requirement for rise time to obtain
\omega_{\mathrm{n}}>9.26 \mathrm{rad} / \mathrm{s}.
Pick \omega_{\mathrm{n}}=10 \mathrm{rad} / \mathrm{s}. Simultaneous solution of the two relations given above yields k_{\mathrm{p}}=150 and k_{\mathrm{D}}=28.
b. Figure 10.85 is the block diagram of the resulting feedback control system built using Simulink and Simscape. The plant is constructed based on the physical mass-springdamper system and the details on Simscape modeling can be found in Example 5.4. The controller is constructed using Simulink blocks and its structure is similar to the PD control discussed in Section 10.4 with the reference signal r set as 0. To specify a nonzero initial position, double-click on the Translational Spring block, type 0.1 for the Initial deformation, and choose the unit as \mathrm{m}. This implies that the spring is initially elongated by 0.1 \mathrm{~m}. Also, double-click on the Ideal Translational Motion Sensor block, type 0.1 for the Initial position, and choose the unit as \mathrm{m}. The corresponding displacement response of the system is shown in Figure 10.86.

