department of electronic engineering practical...

14
1 DEPARTMENT OF ELECTRONIC ENGINEERING PRACTICAL MANUAL CONTROL SYSTEMS 3 (Process Instrumentation and Mechatronics) CSYS 302 Latest Revision: Semester 1-2016 Name: Student number: Mark:

Upload: haxuyen

Post on 12-May-2018

216 views

Category:

Documents


2 download

TRANSCRIPT

1

DEPARTMENT OF ELECTRONIC ENGINEERING

PRACTICAL MANUAL

CONTROL SYSTEMS 3

(Process Instrumentation and Mechatronics)

CSYS 302

Latest Revision: Semester 1-2016

Name: Student number: Mark:

2

INTRODUCTION

The practical component of this course is compulsory for all registered students. Attendance of all practical sessions is mandatory and should a student be given permission to miss a particular session (for medical reasons, for example) it is then the responsibility of the student to make up for this laboratory time. Students will not work in groups and will be expected to complete all the practical work listed. For a student to succeed in this subject he/she must:

Have a good knowledge of all prerequisite subjects;

Be proficient in graphical representation and analysis of numerical data;

Be proficient in the use of a multimeter, oscilloscope, function generator and dual-rail psu;

Be proficient in the use of hand tools;

Have a good working knowledge of data logging applications;

Revise and if necessary, summarize material covered during lectures.

Read all material issued to them.

Complete any problems set in class.

Do any reading indicated to support practical work.

Actively participate in practical work. RULES FOR PRACTICAL LABORATORY SESSIONS

Students who do not comply with these rules will be ejected from the laboratory.

No eating or drinking in the laboratories (this includes the chewing of gum).

Closed shoes are to be worn at all times (slip-slops, bare feet and open shoes are not allowed).

Cell phones are not to be used in the labs for making calls.

No unsupervised access is allowed in any of the Instrumentation and Control laboratories. Permission must be obtained before entering a laboratory.

Each student is expected to have his/her own equipment, including flat screwdriver, star screwdriver, side cutters, long nose pliers, soldering iron, multi-meter, breadboard and toolbox. Note that students will not be permitted into the laboratory without these minimum requirements.

IMPORTANT DATES AND MARKING

Practical sessions will commence at the start of the second week of lectures. There will be 10 weeks of

practicals. The purpose of the pre-practical tutorials is to give insight into and prepare students for the

practical itself. The practical manual is to be handed in at the end of each practical session and is to be

collected by 12:00 on the Friday of each week.

Marks are allocated for the progress throughout each practical, as indicated. All of these marks will count

towards the practical mark for the subject. A minimum practical mark of 50 % (see Departmental rule EL11

(1)) is required. Some answers only count for one mark while other lengthier answers count up to four

marks. The general marking rubric is as follows:

3

Work is not done or is so poorly done that it is considered totally wrong. 0

An attempt was made but very little is correct. 1

Work was done with some mistakes. 2

Work is complete but is untidy or not properly labelled. 3

Work is complete, neat and tidy and of an acceptable standard. 4

PRACTICAL ONE – DYNAMIC RESPONSE

The purpose of this practical is to revise the work done in Control Systems 2 on Matlab as well as introduce students to the use of Simulink. Several new Matlab commands and functions are required and students are expected to research these. Consider the following position control system given in block diagram form:

PRE-PRACTICAL TUTORIAL

1.1 Choose the state variables as indicated and derive the state space representation.

r(t) +

- +

- 4

5 e(t) c(t)

x1 x3

x2

2

4

PRACTICAL (2 weeks)

1.2 For the state space model, write a Matlab script that will plot r(t), x1(t), x2(t), x3(t) and e(t) due to a unit ramp input. These plots should all be on the same set of axes, with a time axis of 2 s. Write out the script in the box provided. Make use of the lsim command.

1.3 Construct a Simulink model directly from the block diagram to give the same result as in 1.2. Save

this model to your flash drive and now write a Matlab script that calls and runs the model. Show the Matlab script here.

4

W1

10

W2

4

5

PRACTICAL TWO – ANALOG VERSUS DIGITAL SIMULATION

In most engineering disciplines simulation is a very important process. In this practical you are required to

build an analog circuit that will simulate a transfer function, apply a 1 v step input to the circuit and record

the output, then compare this output with that obtained from a pure digital simulation (done in Matlab).

PRE-PRACTICAL TUTORIAL

2.1 The circuit diagram shows two resistors connected to form a voltage divider. What is the equation for the output voltage in terms of the input voltage?

2.2 Now sketch a diagram to show how this same voltage divider can be implemented using only a

potentiometer. Fully label your diagram and give the input/output equation. 2.3 Revise the operational amplifier circuit configured as a summer, an integrator, an inverting amplifier

and a non-inverting amplifier. Sketch the respective circuit diagrams and give the input/output equations.

Summer Integrator Inverting amplifier Non-inverting amplifier

vi(t) R1

R2 vo(t)

1

2

2 2 2 2

6

2.4 Research the LM324 quad operational amplifier. Pay particular attention to the power connections for use with a dual rail supply. Draw a neat sketch indicating the pin out configuration.

2.5 Construct a simulation diagram for a system that yields the following transfer function. Show only

your final diagram.

10

36,02

ss

s

sR

sC

2.6 Write a simple Matlab script to plot the step response of this transfer function over a time range of

from 0 to 10 s.

4

2

2

7

2.7 Save and print the figure window showing the response. Paste the response here.

PRACTICAL (4 weeks)

2.8 Design an operational amplifier circuit to implement the simulation diagram. Pay careful attention to the “sign” of the signals throughout the circuit. Your circuit must have at least one non-inverting amplifier. Note that for a gain of less than one you may not use an amplifier but rather a voltage divider. The concept of minimum component count should be used. Show your final diagram only in the box provided on the next page.

2.9 Your circuit and this parts list need to be checked and signed off. This will allow you to get

components and build the circuit.

No. Quantity Correct Part Description

1

2

3

4

5

6

7

8

Supervisor Signature: _________________________________ Date: ____________________

2

2

8

4

W1

9

2.10 Construct the circuit and do any fault finding to ensure the correct response (as found in 2.7). Now using the oscilloscope, save the response to a .CSV file. You must show the lecturer what your response is.

2.11 Now starting with the script from section 2.6, load the values from the .CSV file and plot the two sets

of values on the same figure window. Show the script here. 2.12 Print the figure window and paste it here.

W2 4

4

39

4

W4

10

PRACTICAL THREE – EXPERIMENTAL DETERMINATION OF A TRANSFER FUNCTION

At the beginning of the Control Systems 2 course we saw how to derive transfer functions of simple

electrical and mechanical circuits. Most often it is found that this is not possible and the control system

designer needs some other way of finding the transfer function. Frequency domain techniques offer a

simple way of estimating a transfer function.

In this practical a simple circuit is constructed and then its transfer function is to be experimentally derived.

PRE-PRACTICAL TUTORIAL

You are required to research a simple passive circuit for a phase lead compensator. Your research must

include the circuit diagram, Bode plot, most common use of the compensator, etc. You also need to

investigate the implementation of a phase lead compensator using active components and this should

include the relative advantages and disadvantages of the two types of circuits. As a start to this research

the following references, with page numbers, are given:

[1] Ogata K, Modern Control Engineering, 4th Edition. Prentice Hall, New Jersey, 2002 (584 to 589). [2] Nise N S, Control Systems Engineering, 5th Edition. John Wiley and Sons, Asia, 2008 (581 to 588). [3] D’Azzo J J and Houpis C H, Linear Control System Analysis and Design, 4th Ed. McGraw-Hill, New York,

1995 (262). [4] Bolton W, Control Engineering. Longman Scientific and Technical, England, 1992 (273 to 275). 3.1 Passive phase lead compensator circuit diagram. 3.2 Phase lead compensator Bode plot.

2

4

11

PRACTICAL (2 weeks)

3.3 Using the circuit found in the pre-practical tutorial and the following values; R1 = 5,6 k, R2 = 470

and C = 0,01 F, build a lead compensator on your breadboard.

3.4 Now connect channel one of the oscilloscope to the input and channel two to the output. Set the function generator to a sinusoidal output of about 3 v peak to peak and connect this to the input. Note that no power supply is needed.

3.5 Starting at a frequency of around 100 Hz (and going up to around 1 MHz) measure the input and

output amplitudes and their phase difference. Use the oscilloscope for all these measurements. To do this you must fill in values in columns 1, 3, 4, 6 and 7. Twenty sets of measurements are

required over this range of frequencies and be sure to space them correctly. Complete all measurements at each frequency before moving on to the next frequency. Once all your measurements are complete you must calculate the values for the remaining columns in the table.

1 2 3 4 5 6 7 8

Freq (Hz) Freq (rad/s) vi (v) vo (v) Lm (dB) ∆t (s) T (s) Phase (deg)

3.6 With the above table complete sketch the Bode magnitude and phase angle plots on semi-log

graph paper.

W1 4

12

4

13

3.7 Using asymptotic approximations (straight lines) on the magnitude plot, estimate the transfer function. Write down only the transfer function, in the normal form.

3.8 Explain what information is obtained from the phase angle diagram. 3.9 Now derive the transfer function from first principles and write it in the normal form.

4

4

4

14

3.10 Write down the two transfer functions for comparison purposes.

Experimental transfer function. First principles transfer function. 3.11 Give reasons for their differences.

30

W2

4