Simulate the state trajectory of the closed-loop

Assignment Help MATLAB Programming
Reference no: EM132983628

Question 1:

The ball and beam system (see Figure 1) has been used frequently in testing different control algorithms.

981_figure6.jpg

Figure 1 Figures 2 and 3 illustrate the model of the system.

723_figure7.jpg

Figure 2

1882_figure8.jpg

Figure 3


(1). Define x1 = x, x2 = x·, write down the nonlinear state space model of the ball and beam system. Then assume the beam angle (input) is small, linearise this system and get the linear continuous time state space model of the system.

(2). Using either hand calculation or MATLAB, perform the following tasks for the linear state space model obtained in (1),

(2A) Analyze the system stability, controllability and observability.

(2B) Design the state feedback control law such that the poles of closed loop system are -2 and -3.

(2C) Design the state feedback LQR control law for 1320_figure.jpg

(2D) Design the state observer such that the poles are -1 and -2.

(2E) Design the Ka1man-Bucy filter with 357_figure1.jpg

(3). Analyze the performance of the closed-loop systems:

Compare the LQR performance index for the closed-loop system using state feedback (2B) and the closed-loop system using state feedback in (2C). Use the Q and R given in (2C). Compute the value of the performance index of each system for three different initial state values

2411_figure2.jpg

(4). Assume we want to control the ball position to -0.2 instead of 0, design the state feedback set point control law with the poles of the closed-loop to be -2 and -3.

Question 2:

Examine the state space model of the inverted pendulum (Question 1 in Assignment 1), write MATLAB code to

(1) Design a state observer such that the poles of the observer are -1,-1.5,-2,-2.5.

(2) Design state feedback control law u=-Kx such that the poles of the closed-loop system are -2, -3, -4, -6 (as in Assignment 1 Question 1). Describe the state-space model of the closed-loop system including the observer and feedback control.

(3) Simulate the state trajectory of the closed-loop for any given initial states.

Question 3:

Consider system

232_figure3.jpg

choose V(x) = x12 + 2x22 and use Lyapunov stability theorem to demonstrate that the equilibrium state of the system is stable.

Question 4:

Consider a mobile robot following a circular trajectory. The mobile robot position at time t is denoted as (x(t), y(t)) and its orientation at time t is denoted as θ(t), the velocity and turn rate are denoted as v(t) and ω(t) respectively. The nonlinear motion model can be simplified as

x· = v cosθ, y· = v sinθ, θ·· = ω

Suppose the desired trajectory (reference trajectory) is a circular trajectory

xr(t) = xo + R sin(ωrt), yr (t) = yo - R cos(ωrt), θr(t) = ωrt

where (xo, yo) is the centre of the circle, and R is the radius of the circle. Then the reference trajectory satisfies

x·r = Vr cos θr, y·r = Vrsin θr, θ·r = ωr,

where vr = Rωr.

Consider the difference between the actual robot trajectory and the desired robot trajectory in the robot local frame. That is, define new state as

904_figure4.jpg

Then the tracking error model is

x·e = ωye - v + vrcosθe

y·e = -ωxe + vrsinθe

θ·e = ωr - ω

Define the new control as

ve = v - vrcosθe, ωe = ω-ωr.

(1) Derive the nonlinear state space model of the system with state (xe, ye, θe) and control (ye, ωe).

(2) Assuming Xe, ye, θe, ve, ωe are all close to zero, linearise the system at the operating point (xe, ye, θe, ve, ωe) = (0, 0, 0, 0, 0) to derive the state-space model of the linearised control system.

(3) Let vr = 0.3, ωr = 0.2. Design state feedback control law for the lin¬earised system such that the poles of the closed loop system are -1,-2,-3.

(4) Let vr = 0.3, ωr = 0.2. Design the state feedback LQR control for the linearised system with 2297_figure5.jpg

Question 5:
Use MATLAB simulator to test the controller design using the model developed in Question 4 (set the desired velocity as 0.3 and the desired turn rate as 0.2). A template of the MATLAB simulator is provided which is used to simulate a robot moving along a straight line. You are required to
(1) change the simulator to be the circular trajectory situation and complete the open-loop (simply fix the velocity and turn rate) and closed-loop control design (using pole placement and LQR on the linearised model as in Question 4) and integrate it with the MATLAB simulator,
(2) compare the performance of the closed-loop systems using different controllers with that of the open-loop system, and discuss the results obtained.

Run Ass2_49329_Simulation_template.m for the simulator. Choose open-loop or closed-loop in line 9-10:
closed_loop=0; % open-loop closed_loop=1; % closed-loop

You can change the simulation time period in line 12:
time_period = 100; % simulation time period

For the closed-loop design, you need to modify the file: control_velocity_turnrate_49329.m

Attachment:- Control of Mechatronic Systems.rar

Reference no: EM132983628

Questions Cloud

Calculate the amount of net sales revenue : On April? 2, Weston sold merchandise with cost of? $1,510 for? $2,643 to customer on account with the terms? 2/15, n/30. Calculate amount of net sales revenue
Calculate the residual income/eva of clinton hospital : Superior has established a required rate of return equal to 18 percent of invested capital. Calculate the residual income/EVA of Clinton Hospital
Assess skills in data management and statistical analysis : Assess skills in data management and statistical analysis using descriptive statistics - confirm the work is your own, first display the data file information
What price of house will the family need to purchase : What percentage of houses in Madison, WI costs less than the family's current house? What price of house will the family need to purchase
Simulate the state trajectory of the closed-loop : Analyze the system stability, controllability and observability and Simulate the state trajectory of the closed-loop for any given initial states
What is the expected monetary value : What should the company do & what is the expected monetary value of your suggested course of action
Features of a high-road hr strategy : Which of the following are typically features of a high-road hr strategy?
Compute the price of the european call : A stock currently trading at $121 pays a $8 dividend in four months and $5 dividend seven months. Compute the price of the European call
Explain the meaning of a temporary difference : Question - Explain the meaning of a temporary difference as it relates to deferred tax computations, and give three examples

Reviews

len2983628

9/7/2021 10:16:31 PM

I need all calculation report and Matlab program file Fulfill all requirements which is needed

Write a Review

MATLAB Programming Questions & Answers

  Write a Matlab script to generate an array

Write a Matlab script to generate an array of 100 random samples between -5 and 5. The script should then copy the samples one by one to a new array

  Compute the output response

Write a MATLAB M-file to compute the output response y[n] of the 6-point MA filter to the input x[n]=5sin(pn/10 + p/4), for 0

  Evaluate the maximum value of the time constant

Evaluate the maximum value of the time constant - Compute the coding efficiency of above Huffman code and Compute the average length of codewords

  Simulate an atm machine and provide the code

Simulate an ATM machine and provide the code. I have the answer already but i do not understand it; I need expert to guide through it step by step. thanks!

  Matlab: create a function that will use the secant method

MATLAB: Create a function that will use the Secant method

  Write a mileage per gallons and miles per dollar program

Write a mileage per Gallons and miles per dollar calculator program using two functions, one to calculate MPG and one to calculate MPD. The application will prompt the user to type the odm readings, number of gallons and the cost in US dollars for..

  Define the future-value-of-money formula

The future-value-of-money formula relates how much a current investment will be worth in the future, assuming a constant interest rate.

  Why does matlab keep telling that you need input arguments

how do you solve this problem and why does MATLAB keep telling that you need more input arguments - Create a function that returns true if the input is a numeric array and false otherwise

  Write a matlab program to compute the kalman gain

Write a MATLAB program gain.m to compute the Kalman gain K(n) for a stationary process with: x(n) = Ax(n - 1) + w(n)

  Create function called hallpetch that requires three inputs

Then plot a graph with the calculated yield strength versus diameter in MATLAB. Create a function called HallPetch that requires three inputs σo, K and d and calculates the value of yield strength.

  Downsampling and upsampling a discrete-time

In this MATLAB exercise, we will explore downsampling and upsampling a discrete-time signal corresponding to a piece of music. To start, type load handel. In your workspace, you should now have a vector y of length 73113. Play this piece of music ..

  Matlab program to calculate the rest of the coefficients

Step One: For the design specifications of your filter, see the excel file for specifications (UDO). You need to demonstrate for the first two iterations( n=0 & n=1), by hand, the calculation of the coefficients. Step Two: Develop a Matlab prog..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd