Docsity

Digital Control and Computer Data Acquisition Continuous Control Systems | ET 438B, Study notes of Engineering

Toggle sidebar
bg1
et438b-1.ppt 1
Digital Control and Computer Data Acquisition
Continuous Control System
Controller implemented with analog electronics (OP AMPS)
Summing, integration (low pass filter)
differentiation (high pass filter)
Digital Control
Analog Inputs and outputs
Continuous signals converted to digital values
Controller - Implemented with microprocessor
System control variable modified by mathematical functions + - x
/
Result converted to analog signal by digital-to-analog conversion
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download Digital Control and Computer Data Acquisition Continuous Control Systems | ET 438B and more Study notes Engineering in PDF only on Docsity!

Digital Control and Computer Data Acquisition

Continuous Control System

Controller implemented with analog electronics (OP AMPS)

Summing, integration (low pass filter)

differentiation (high pass filter)

Digital Control

Analog Inputs and outputs

Continuous signals converted to digital values

Controller - Implemented with microprocessor

System control variable modified by mathematical functions + - x

/

Result converted to analog signal by digital-to-analog conversion

Advantages and Disadvantages of Digital Process Control

Technical Problems of Digital Conversion

Most signals continuous in nature

Need Analog-to-Digital (A/D) Conversion

1.) sample and hold

2.) convert to number (binary)

Need high speed sampling for rapidly changing

signals

Precision of converted value. Infinite number

values mapped to a finite number of bits

8 bits 256 values

12 bits 4096 values

20 bits 1 M values approx..

Modeling of System Different - signals only exist in

controller at sample time

Must reconstruct most signals to analog for output

Need DAC (digital-to-analog converters)

Real-time applications difficult in high speed applications

Representation of Signals

Analog signal - defined at every point of independent variable

For most physical signal independent variable is time

Examples

s ( )t

. 5 sin

. 5 t

π

3

. 2 cos

. 6 t

. 2 π

3

Real life signals: Music, process sensor outputs

Analog representation - photograph of analog oscilloscope

traces.

Characteristic of digital signal - signal does not exist

at every point in time. It only exists at point of

measurement.

All plots of functions and graphs on computer are

sampled signals because function is not evaluated

at infinite number of points

Signals sampled at equally spaced points in time

This time is called the sampling time, T

s

Sampling frequency is given by f

s

= 1/T

s

equation

Example: Plot the s(t) function at two different sampling

rates over a 10 sec interval for sampling periods

T

s

= 0.05 and T s

= 0.5 sec

Mathcad method t := 0,.05..10 s

s ( )t

. 5 sin

. 5 t

π

3

. 2 cos

. 6 t

. 2 π

3

0 2 4 6 8 10 12

10

5

0

5

10

s( )t

t

At T s

= 0.05 plot appears smooth and approximates

actual function.

Use Matlab code to generate the plot for the 0.05 and 0.5 s

sampling intervals and plot on the same figure

Notation for Continuous and Sampled Signals

Continuous signal or functions s(t)

Sampled signals or functions s [ n ] = s (nT

s

Where n = integer ......-3, -2, -1, 0, 1, 2, 3.......

System Representations 1-D continuous signals

Analog input x(t) Analog output y(t)

Block diagram representation

Example: y(t) = [x(t)]

2 squaring function. For analog

systems need a circuit that can square input

For digital systems input signal converter to samples

input signal x[n] output signal y[n]

operation y[n] = [x[n]]

2

Every sample is multiplied by itself and then sent to

output

Block Diagram of sampled square function

Ideal sampling device and ideal analog-to-digital

converter

% define the time interval

f = 440;

Tp = 1/f;

% plot three periods

% the sampling rate is 5000 samples/sec

% Ts = 1/(sampling rate)

Ts = 1/5000;

t3=0:Ts:3*Tp;

% define the function

s3=10cos(2pi440t3-0.4*pi);

% use the stem plot function to plot the values

stem(s3);

xlabel('Index Variable: n'); %label the x-axis

ylabel('s[n]'); % label the y-axis

title('Sampled Time Signal-Sampling Rate 5000/sec');

grid on;

Sampled Sinusoids

The ADC converter determines the number of points

that can be converted to digital values. This is called

the sampling rate: Example 5000 samples/sec = f

s

1/f

s

= T

s

= 0.0002 sec

Representation of Sampled signals - stem plots

0 5 10 15 20 25 30 35

0

2

4

6

8

10

Index V ariable: n

s[n]

S am pled T im e S ignal-S am pling R ate 5000/s ec

Matlab code

to generate

plot

Analog Modulation and Frequency Spectrum

Consider amplitude modulation of two sine signals

Information signal

50 Hz sine

v s

( t )

. 1 sin ( )

... 2 π 50 t

Carrier signal

1000 Hz sine

v c

( t )

. 1 sin ( )

... 2 π 1000 t

v am

( t )

v s

( t ) v c

( t)

Amplitude modulation is product of the information

and the carrier signals

0 0.005 0.01 0.01 0.02 0.025 0.

1

0

1

v am

( )t

v s

( )t

t

Input signal with more than on frequency will create a

spectrum of frequencies centered around the carrier.

information

v s

( t )

. 1 sin ( )

... 2 π 50 t sin ( ) ... 2 π 25 t

carrier v

c

( t )

. 1 sin ( )

... 2 π 1000 t

Plot

0 0.02 0.04 0.06 0.

2

0

2

v am

( )t

v s

( )t

t

Derive the frequency components

sin( ) sin( ) =

1

2

α ⋅ β cos( α − β ) − cos(α +β)

1

2

Use the Trig identity below

s ( t )

. sin ( )

... 2 π 1000 t ( sin ( ) ) ... 2 π 50 t sin ( ) ... 2 π 25 t

Frequency components of s(t)

s( t)

sin ( )

2 π 1000 t sin ( )

2 π 50 t

sin ( )

2 π 1000 t sin ( )

2 π 25 t

s( )t

...

.

1

2

cos( )

... 2 π ( 1000 50 ) t

.

1

2

cos( )

... 2 π ( 1000 50 ) t

.

1

2

cos( )

... 2 π ( 1000 25 ) t

.

1

2

cos( )

... 2 π ( 1000 25 ) t

s( )t

cos( )

2 π 950 t

cos( )

2 π 1050 t

cos( )

2 π 975 t

cos( )

2 π 1025 t

s( )t

( cos( ) )

2 π 950 t cos( )

2 π 975 t

( cos( ) )

2 π 1050 t cos( )

2 π 1025 t

Signal contains four frequencies each with an

amplitude of 0.5 peak frequencies are:

950 975 1050 1025 Hz f

c

+- the signal frequencies

Sampling Process

sensor

physical

parameter

signal

conditioner

sample

and hold

to ADC

Data Sampling Signals

Analog Input Signal

time

voltage

v s

( )t

t

Pulse generator output (ideal pulse width = 0)

0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.

0

1

Data Sampling Pulses

time

Amplitude

p( )t

t

Data Sampling signals (cont.)

Pulse magnitude is multiplied with input signal value at each

sampling instant to give an amplitude modulated pulse

sequence.

0 5 1 0 1 5 2 0 2 5

  • 2

-1. 5

  • 1

-0. 5

0

  1. 5

1

  1. 5

2

I n d e p e d e n t V a r ia b l e : t i m e , t , n T s

V(t)

P u ls e s M u lt ip l ie d b y I n p u t

Signal after leaving the sample and hold circuit.

0 5 1 0 1 5 2 0 2 5

  • 2
    1. 5
  • 1
    1. 5

0

  1. 5

1

  1. 5

2

I n d e p e d e n t V a r i a b l e : t i m e , t , n T s

V(t)

S a m p l e a n d H o l d O u t p u t