Difference between revisions of "User:DukeEgr93/Lab 7"

From PrattWiki
Jump to navigation Jump to search
(Building The Plants)
Line 18: Line 18:
 
* '''With the gain set to 4 V/V, make a graph with the five probed signals.  Save this graph and rename it StepResponse1.'''
 
* '''With the gain set to 4 V/V, make a graph with the five probed signals.  Save this graph and rename it StepResponse1.'''
 
* ''' With the gain set to -4 V/V, make a graph with the five probed signals.  Save this graph and rename it StepResponse2.'''
 
* ''' With the gain set to -4 V/V, make a graph with the five probed signals.  Save this graph and rename it StepResponse2.'''
* ''Confirm for yourself that the first response is typical of a marginally stable system with a frequency of 2 rad/s and the second response is typical of an unstable system (until the om-amp voltages saturate at 12V for the Probe 4 and 5 readings.
+
* '''Confirm for yourself that the first response is typical of a marginally stable system with a frequency of 2 rad/s and the second response is typical of an unstable system (until the om-amp voltages saturate at 12V for the Probe 4 and 5 readings.'''
 +
 
 +
== PD Control for Marginal System ==
 +
You will now design a compensator to make the system response satisfy particular design criteria.  Specifically, you will want a settling time of 0.1 sec and a %OS of 1%.  Use SISOtool to figure out what a PD controller would look like for the marginally stable system (where $$K=4$$) and then look at the step response simulation.  Take a screen shot of that ste response, then build an active PD controller in multisim.  The basic circuit you will be working with to control the plant is:
 +
[[File:TwoPoleControlledBlank.PNG|600px]]
 +
where your compensator will be built on the ''CompAmp'' amplifier.  Set V1 to 1 mV, the Kcorrection value to -1 and the K value to +4 V/V.  This will allow you to get a step response for a step of 1 mV for the initially marginally stable system.  In your graph, choose a time scale that shows how the system responds to the step.  You will be comparing this to the numerically simulated response from SISOtool.  Remember, if your graph is blocky you may need to manually set the maximum time step for the document to 1e-5.  Save the graph and then turn off the Probe 3 voltage, manually change the vertical scale to focus on the input (probe 1), error (probe 2), and output (probe 5), and save the graph again.
 +
 
 +
Next, turn Probe 3 back on a scale to see all the probes.  Go back to the schematic, change V1 to 1 V and re-run the simulation.  Once again choose a time scale you believe shows all the interesting parts of the response (1 sec works well).  Save this graph - this shows what happens when the controller saturates.

Revision as of 19:16, 30 July 2020

This page provides guidance for Labs 6 and 7 for Controls in Summer 2020. It assumes knowledge of SISOtool and Root Locus design as given by User:DukeEgr93/RL Example and Chapter 9 of Nise 8e.

Introduction

For this part of the lab, you will end up designing and simulating a PD controller for a marginally stable plant and a lead controller for an inherently unstable plant. The plants themselves will be built using passive elements and operational amplifiers. In your report, you will be discussing how well your designs satisfy the criteria given for the system based on both the mathematically simulated results and the circuit simulations.

Building The Plants

The plants for this lab will be second plants with two poles and no zeros. The first plant will be marginally stable with poles at $$\pm j2$$ and the second will be unstable with poles at $$\pm 2$$. The gain in each case will be 4, meaning:

\( \begin{align*} G_1&=\frac{4}{s^2+4} & G_2&=\frac{-4}{s^2-4} \end{align*} \)

These transfer functions are easy enough to simulate in MATLAB, but you will also be building circuits to simulate them. Unstable circuits generally require some kind of amplification and some kind of feedback. For this lab, the plant will consist of two pure integrators cascaded together (creating a double pole at the origin) along with a difference amplifier (to provide a feedback loop) and a voltage controlled voltage source to adjust the value of $$K$$. Build the following in multisim: TwoPolePlantGain.PNG

For the capacitors, select each and set their initial conditions to 0 through the Item dialog block (click on a capacitor, then click on the gear at top right if the Item block is not open). For the document, select the Initial conditions section and change the dropdown box to User defined. Set the transient to graph for 5 seconds.

  • With the gain set to 4 V/V, make a graph with the five probed signals. Save this graph and rename it StepResponse1.
  • With the gain set to -4 V/V, make a graph with the five probed signals. Save this graph and rename it StepResponse2.
  • Confirm for yourself that the first response is typical of a marginally stable system with a frequency of 2 rad/s and the second response is typical of an unstable system (until the om-amp voltages saturate at 12V for the Probe 4 and 5 readings.

PD Control for Marginal System

You will now design a compensator to make the system response satisfy particular design criteria. Specifically, you will want a settling time of 0.1 sec and a %OS of 1%. Use SISOtool to figure out what a PD controller would look like for the marginally stable system (where $$K=4$$) and then look at the step response simulation. Take a screen shot of that ste response, then build an active PD controller in multisim. The basic circuit you will be working with to control the plant is: TwoPoleControlledBlank.PNG where your compensator will be built on the CompAmp amplifier. Set V1 to 1 mV, the Kcorrection value to -1 and the K value to +4 V/V. This will allow you to get a step response for a step of 1 mV for the initially marginally stable system. In your graph, choose a time scale that shows how the system responds to the step. You will be comparing this to the numerically simulated response from SISOtool. Remember, if your graph is blocky you may need to manually set the maximum time step for the document to 1e-5. Save the graph and then turn off the Probe 3 voltage, manually change the vertical scale to focus on the input (probe 1), error (probe 2), and output (probe 5), and save the graph again.

Next, turn Probe 3 back on a scale to see all the probes. Go back to the schematic, change V1 to 1 V and re-run the simulation. Once again choose a time scale you believe shows all the interesting parts of the response (1 sec works well). Save this graph - this shows what happens when the controller saturates.