Solved–Lab Assignment 5– Solution

$30.00 $19.00

Objective The main goal of this assignment is to design and implement LEAD and LAG compensators for cart’s position system. Your responsibility Your responsibility is to answer all questions which have been asked throughout this assignment and submit all your answers in addition to Matlab codes and Simulink results. Questions Using the coe cients you…

You’ll get a: . zip file solution

 

 

Description

5/5 – (2 votes)
  • Objective

The main goal of this assignment is to design and implement LEAD and LAG compensators for cart’s position system.

  • Your responsibility

Your responsibility is to answer all questions which have been asked throughout this assignment and submit all your answers in addition to Matlab codes and Simulink results.

  • Questions

    1. Using the coe cients you have found in Lab3-Q4 (estimated coe cients of the system), de ne a transfer function in Matlab and nd Bode diagram of the system (consider position as the output of the system). Using the bode diagram nd the phase margin and gain margin of the system.

    1. Use the value of Kp, in Lab4-Q3, plot the open-loop bode diagram of the system. Design a LEAD Controller, which can achieve phase margin of 60 .

Hint: If you do not remember design method for LEAD compensator you can follow these steps:

1

(a) Suppose LEAD compensator is of the form:

:T s + 1

Clead(s) = Klead T s + 1

  1. Set Klead = 1, since there is no requirement on steady-state error.

  1. Find the current open-loop phase margin of the system.

  1. Calculate required phase for reaching 60 , phase margin.(also include a small safety factor)

  1. Find coe cient , using following formula:

max = sin 1

1

+ 1

  1. Find the desired wm by looking at the Bode plot of the system and nd the frequency at which gain equals:

p

20 log(K ) dB

(g) Find T using following equation:

1

T = p

  1. Using transfer function blocks in simlulink, simulate the step response of your estimated system in presence of proportional feedback controller, with and without the compensator. (In your Simulink model instead of physical system insert the estimated transfer function)

  1. Using the cart system (physical system), nd the step response of the system to proportional feedback controller with and without compensator(plot both step responses in one gure). Compare the results with simulations.

  1. Describe the e ect of LEAD compensator on rise-time, steady state error, and bandwidth of the closed loop system.

  1. Add a LAG controller to the LEAD you just designed to get a LEAD-LAG system.

Your LAG controller should reduce the steady state error to a ramp input by a factor of at least 10. Your combined system should have the speci ed phase margin of 60 .

Hint: If you do not remember design method for LEAD compensator you can follow these steps:

2

(a) Suppose the the compensator is of the form :

T s + 1

c (s) = K

  1. calculate KV : = lims!0 s:H(s):Klag: . Where H(s) is your transfer function.

  1. using the fact that ess = KV 1, nd proper Klag

(d) Determine the frequency w at which the phase equals 180 + desired phase margin +

10

(e) Calculate the amount of , using the desired dropped gain

dBdrop

=10 20

    1. Fix the place of zero by setting T = 10w , to nd T .

  1. Using simulation environment you used in Question-3, plot the step response of proportional feedback controller with LEAD and LEAD-LAG compensators in one gure. plot the ramp response of proportional feedback controller with LEAD and LEAD-LAG compensators in one gure.

  1. Using the cart system (physical system), nd the step response of your estimated system in presence of proportional feedback controller, with LEAD-LAG compensator.

  1. Compare step response of the your LEAD-LAG compensator and PID you tuned in LAB4

3