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

  Finite difference method

Use the finite difference method to calculate the temperature at the point specified since it is easier.

  Determine the necessary shell temperature

In a shell-and-tube heat exchanger, one fluid passes through a central tube while another fluid flows through an outer shell in the opposite direction. The purpose is to heat the fluid passing through the central tube.

  Find the integral of a function at an arbitrary location

Write a Matlab function to perform numerical integration of a set of evenly spaced data points using the trapezoidal rule

  Compute the speed of single-stage planetary gear train

Write a MATLAB function [speed] = planetary (N, emesh, first, last, arm) that computes the speed of a given link in a single-stage planetary gear train.

  Calculate and plot the error in the numerical derivative

Write a program to calculate and plot the error in the numerical estimate of the derivative.

  Create the graph using matlab functions

Create the graph, which contains a piecewise function where a line exists in the first interval, a parabola in the second interval, and the sine function in the third interval.

  Develop a simulation program

Develop a simulation program

  Create a vector in matlab

Create a three dimensional diagram of function.

  Open a named pipe and to read data from the pipe

Open a named pipe and to read data from the pipe in matlab

  Write the commands that will create the matrix

Write the commands that will create the matrix.

  Lagrange interpolating polynomial of degree

Lagrange interpolating polynomial of degree

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