Question
please use MATLAB, screenshot the code and the plots. Answer all parts.


Laboratory description: The speed control of a high-speed train is represented by the system shown in Figure 1. The transfer
where D(S) is a PID controller. Assume that the input r(t) is a unit step. Determine the steady-state error and use MATLAB to
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Suppose we have a simple mass-spring-damper system.

Mt9 | m

The governing equation of this system is

(3)më + bc + kc = F

Taking the Laplace transform of the governing equation, we get

(4)ms-x(s) + b3X(s) +kX() = F(8)

The transfer function between the input force $F(s)$ and the output displacement $X(s)$ then becomes

(5)$$ \frac{X(s)}{F(s)} = \frac{1}{ms^2 + bs + k} $$

Let

    m = 1 kg
    b = 10 N s/m
    k = 20 N/m
    F = 1 N

Substituting these values into the above transfer function

(6)$$ \frac{X(s)}{F(s)} = \frac{1}{s^2 + 10s + 20} $$

The goal of this problem is to show how each of the terms, $K_p$ , $K_i$ , and $K_d$ , contributes to obtaining the common goals of:

  • Fast rise time
  • Minimal overshoot
  • Zero steady-state error

Open-Loop Step Response

Let's first view the open-loop step response. Create a new m-file and run the following code:

s = tf('s');
P = 1/(s^2 + 10*s + 20);
step(P)

Step Response 0.05 0.045 0.04 0.035 0.03 Amplitude 0.02 0.015 0.01 0.005 0 0. 5 1 2 2.5 3. 1.5 1 Time (seconds)

The DC gain of the plant transfer function is 1/20, so 0.05 is the final value of the output to a unit step input. This corresponds to a steady-state error of 0.95, which is quite large. Furthermore, the rise time is about one second, and the settling time is about 1.5 seconds. Let's design a controller that will reduce the rise time, reduce the settling time, and eliminate the steady-state error.

Add a comment
Know the answer?
Add Answer to:
please use MATLAB, screenshot the code and the plots. Answer all parts. Laboratory description: The speed...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT