Git Product home page Git Product logo

control-assignment-iii's Introduction

Control Engineering Assignment III

In this assignment, I'm going to design a system using lead compensator with the help of root locus and check the final results using Matlab.

The system I'm going to design is as follows:

alt text

The damping ratio of closed loop poles is 0.5 and natural undamped frequency 2 rad/sec. It is desired to modify the closed loop poles so that natural undamped frequency becomes 4 rad/sec without changing the damping ratio.

Root Locus & Step Response

Before adding a compensator, lets check the root locus of the system and its response first. We can simply do it by using Matlab command line.

>> s = tf('s');
>> G = 4/(s*(s+2));
>> % Plot root locus
>> rlocus(G)

alt text

>> % closed loop transfer function (unity feedback)
>> sys0 = feedback(G,1);
>> % Plot root locus
>> rlocus(sys0)

alt text

From the closed loop poles, we can see that our system's damping ratio is 0.5 and undamped frequency of 2 rad/sec which is the same as the given system characteristics.

>> % Plot step response
>> step(sys0)

alt text

Our goal is to add a compensator to meet the system requirements (which are 0.5 for damping ratio and 4 rad/sec for undamped frequency).

Desired Closed Loop Poles

We can easily find our desired closed loop poles by using the system requirements:


alt text

alt text


Then, I'm going to draw our desired closed loop poles on the root locus and calculate the necessary angles to find the angle of deficiency.

Below are the calculations of the angle of deficiency:

alt text

alt text

alt text

alt text


Choosing new pole and zero

If we choose the zero of the lead compensator at s = -2 so that it will cancel the plant pole at s =-2, then the compensator pole must be located at s =-4.


Lead Compensator

Lead compensator is represented by the following transfer function:

alt text

So we can calculate the gain K by using the magnitude condition as follows:


alt text

alt text

alt text


Now, we get our lead compensator transfer function. Lets check again our step response of the new compensator system.

>> original_sys = feedback(G,1);
>> % Compensator Gc
>> Gc = 4*(s+2)/(s+4);
>> % Unity feedback with compensator
>> compensated_sys = feedback(Gc*G,1);
>> % Plot step response
>> step(original_sys, compensated_sys)

alt text

We can clearly see that our new system is better than the previous uncompensated one. Now, lets check the characteristics of the response.

alt text

You can see that our new system has the undamped frequency of 4 rad/sec and damping ratio of 0.5 which meets the system requirements.

Final Design Check

The static velocity error constant for the compensated system can be calculated as:


alt text

alt text

The steady state error is then calculated as:

alt text

Conclusion

There are many ways to achieve the system requirements such as adding a PID controller or others. In this system, I'll use the Lead Compensator. We can conclude that our control system design meets the system requirements by adding the lead compensator.

control-assignment-iii's People

Contributors

mlsdpk avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.