Docsity

Like analog computazing technique, Study notes of Physics

Toggle sidebar
bg1
Analog Computing
Technique
by Robert Paz
Chapter 1
Programming Principles and Techniques
1. Analog Computers and Simulation
An analog computer can be used to solve various types of problems. It solves them in an
“analogous” way (pun intended). Two problems or systems are considered analogous if
certain or all of their respective measurable quantities obey the same mathematical equations.
Most general purpose analog computers use an active electrical circuit as the analogous system
because it has no moving parts, a high speed of operation, good accuracy and a high degree of
versatility. Active electrical networks consisting of resistors, capacitors, and op amps
connected together are capable of simulating any linear system since the forward voltage
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13

Partial preview of the text

Download Like analog computazing technique and more Study notes Physics in PDF only on Docsity!

Analog Computing

Technique

by Robert Paz

Chapter 1

Programming Principles and Techniques

  1. Analog Computers and Simulation

An analog computer can be used to solve various types of problems. It solves them in an “analogous” way (pun intended). Two problems or systems are considered analogous if certain or all of their respective measurable quantities obey the same mathematical equations. Most general purpose analog computers use an active electrical circuit as the analogous system because it has no moving parts, a high speed of operation, good accuracy and a high degree of versatility. Active electrical networks consisting of resistors, capacitors, and op amps connected together are capable of simulating any linear system since the forward voltage

2 Analog Computer Principles

transfer characteristics of these networks are analogous to the basic linear mathematical operations encountered in the system’s mathematical model. By using diode function generators and special circuits which have non-linear voltage transfer characteristics, it is also possible to simulate nonlinear systems.

The mathematical model of an analog computer programmed to simulate a specific physical system is identical to the mathematical model of the system. The voltage transfer characteristics of the electrical networks are analogous to the desired mathematical operations. The input and output voltages (computer variables) are analogous to the corresponding mathematical variables (problem variables) of the problem. Because of limitations of the computer or its associated input/output equipment, it is usually necessary to change the scale of the computer variables, thus forcing the values of a computer variable to differ from the corresponding problem variable values. It is important to understand that an analog computer solution is simply a voltage wave form whose time dependency is the same as that of the desired variable.

The normal procedure for simulating a system starts with determining the mathematical model describing the physical quantities of interest. An analog block diagram is made to relate the sequence of mathematical operations and to aid in scaling the variables. From the analog block diagram the electrical components are connected together (patched). The computer is operated and the computer variables observed on a recorder or oscilloscope. Since the output is a computer variable (voltage wave form) it is necessary to convert the output variable back to the original problem variable.

  1. Solving Differential Equations with an Analog Computer.

A typical simulation of a physical system involves a mathematical model consisting of a set of one or more differential equations and initial conditions on the variables. If the system is linear, the differential equations are linear and the operations required are 1) summation, 2) sign inversion, 3) multiplication by a constant, 4) integration and 5) differentiation. For practical reasons, the integration operation is easier to implement than the differentiation operation. The reason lies in the fact that computer signals are real voltages and, therefore, are corrupted by noise to some extent. Since integration has a tendency to average out the effects of noise (while differentiation will accentuate it), a more precise solution can be obtained using integration techniques.

Each of these operations may be represented as shown in Figure 1.1 Actual realization of these will be discussed in the next section.

4 Analog Computer Principles

computer solution of differential equations. This is not unreasonable since the differential equation determines the class of solutions, while the initial conditions determine the specific solution.

A higher order linear differential equation may be handled by reducing it to a set of first–order equations and following a similar procedure. For example,

d y dt

dy dt y y y

2 2 +^ +^ =^0 ,^ (^0 )^ =^1 , ˙ (^0 )^ =^0 ,^ (1.3)

may be turned into the set of equations

x ˙ 1 = x 2 , x 1 ( 0 ) = 1 (1.4a)

x ˙ 2 = −x 1 − x 2 , x 2 ( 0 )= 0 (1.4b)

where x 1 = y, and x 2 = dy dt. The equivalent integral forms are

x t x x d

t 1 ( )^ =^1 (^0 )^ +^ ∫ 0 2 ( )t^ t^ ,^ (1.5a)

x t x x x d

t 2 ( )^ =^2 (^0 )^ −^ ∫ 0 [^1 ( )t^ + 2 ( )t^ ] t^ (1.5b)

Equations (1.5a) and (1.5b) may be implemented using the circuit shown in Figure 1.3.

    • ∫

x 1 (t)

x 1 (0)

(Equation 1.5b) (Equation 1.5a)

x 2 (0)

x 2 (t)

Figure 1.3: Circuit Realization of the Second Order Equation.

  1. Physical Realization of Linear Operations on an Analog Computer.

In section 2, the differential equation was expressed in terms of a set of general mathematical operation. No attempt was made to discuss how these operations were realized with physical

Chapter 1. Programming Principles and Techniques 5

components. In this section, the basic linear operations of summation, multiplication by a constant, and integration will be discussed. The operation of sign inversion will be inherent in the summation and integration operations as a result of construction convenience and versatility.

(a) The Operational Amplifier (Op Amp).

The operational amplifier is a high gain amplifier with a wide variety of applications. The amplifier is usually described in terms of its gain, input impedance, output impedance, bandwidth, and offset characteristics. An operational amplifier usually has two input terminals. The two input terminals are marked with a (+) to indicate the noninverting input and a (–) to indicate the inverting input. An equivalent circuit for an op amp and a standard symbol are shown in Figure 1.4.

V 1

V 1

Vo

V (^) o

V 2 V 2

Rin Rout

(a) (^) (b)

  • V^ g V g = A^ v(V 2 – V 1 )

Figure 1.4: (a) The Circuit Symbol for an Op Amp, (b) An Equivalent Op Amp Circuit.

(b) Summers and Inverters.

The electrical circuit whose transfer characteristics are analogous to the mathematical operation of summation is shown in Figure 1.5 ( for an n –input summer). Applying Kirchoff’s current law at the summing junction gives

i 1 + ... + i (^) n + i (^) f =ia (1.6)

or, in terms of voltages

V V R

V V
R
V V
R
V
R

x n x n

o x f

x in

1 1

Note that since V (^) o = − A Vv x, then equation (1.7) can be rewritten

Chapter 1. Programming Principles and Techniques 7

K
R
R

i f i^ n i

= , = 1 , K,. (1.12)

Vo

V 1

V (^) n

K 1

K (^) n

Figure 1.6: Weighted Summing Amplifier

Since the circuit in Figure 1.5 is to be implemented on the analog computer, it is essential that the summing operation indicated by Figure 1.6 and equations (1.11) and (1.12) be understood thoroughly.

Note that the inherent sign inversion is a result of the negative voltage gain of the op amp. Thus, the inverter which inverts the sign of its input is a special case of the summer with only one input and with K 1 = 1. The transfer characteristic is given by

V (^) o = −V 1. (1.13)

1 10 1 10

V (^) o

V 1
V 2
V 3
V 4

Figure 1.7: Analog Diagram for Example 1.1.

Example 1.1: Determine the circuit to produce the output voltage given by

V (^) o = −V 1 − 10 V 2 + V 3 + 10 V 4. (1.14)

Solution: An analog diagram (i.e. in terms of symbols) for equation (1.14) is given in Figure 1.7. The circuit diagram which must be patched on the analog computer to realize equation (1.14) is shown in Figure 1.8.

8 Analog Computer Principles

50kΩ

5kΩ

5kΩ

50kΩ

50kΩ

50kΩ 50kΩ

V 4

V 3

V 2

V 1

Vo

Figure 1.8: Electronic Circuit for Example 1.1.

In an actual amplifier, the output voltage will not be zero when V (^) i and V (^) n are zero. This

effect is called the offset and is usually measured as is shown in the drawing below. The value of V (^) os required to reduce V (^) o to zero under the conditions shown is called the offset voltage. Under the conditions shown ( V (^) o = 0 ), the offset current, I (^) os , is defined as I (^) x − Iy. Note

the termination attached to the noninverting input in Figure 1.9.

Rf

Vo

Rn

R (^) i Vos^ Ix

I (^) y

R
R R

n R R

i f i f

Figure 1.9: Op Amp Circuit Showing the Offset Voltage

In an actual amplifier, the output voltage V (^) o is not normally zero when V (^) x = Vy. This effect is

often described in terms of the common mode gain (CMG) and the common mode rejection ratio (CMRR). Measurement of the CMG and CMRR are illustrated in Figure 1.10.

CMRR = kV V

o CM

10 Analog Computer Principles

Figure 1.11: (a) Circuit Symbol, (b) Analog Computer Symbol for Potentiometer.

The gain a is always placed outside the pot with the inside reserved for a pot identification number. A constant term in a differential equation is obtained by using a dc reference voltage which is supplied on the computer. Its value is usually ± the range of the op amps. For the GP-6, this is ± 10v. Note that the actual dials for the potentiometer are illustrated in Appendix A.

Example 1.2: Determine the analog diagram and circuit to implement the equation

V (^) o = − 0 35. V 1 + 5 24. V 2 +2 6.. (1.17)

Solution: The analog diagram is given in Figure 1.12 and the electrical circuit in Figure 1.13. A GP-6 wiring diagram is supplied in Figure 1.14 to illustrate the actual connections needed.

Vo

V 1
V 2

Figure 1.12: Analog Diagram for Example 1.2.

.

50kΩ

5kΩ

50kΩ

5kΩ .

. 5kΩ

5kΩ

V 2

V 1

V (^) o

Figure 1.13: Circuit Diagram for Example 1.2.

Chapter 1. Programming Principles and Techniques 11

SJ

SJ’

1 1 1

. .

IC

B .1B

(^1) SJ

SJ’

1 1 1

. .

IC

B .1B

2

1 2 3

COEFFICIENT POT

V V

Figure 1.14: GP-6 Wiring Diagram for Example 1.2.

(d) Integrators.

Integration is the most important operation available on the analog computer. In fact, analog computers owe their existence to their ability to integrate rapidly. Integration is different from inversion and summation because it is time dependent. Integration can be accomplished by replacing the feedback resistor of the summer with a capacitor. The resulting electrical circuit for an integrator is shown in Figure 1.15.

C

  • • V (^) o
V 1

Vn

R 1

R (^) n

i 1

in

Vx

i (^) f

Figure 1.15: Electrical Circuit for an n- Input Integrator.

Using the same procedure and approximations as used for the summer, the transfer characteristic for the circuit of Figure 1.15 becomes

Chapter 1. Programming Principles and Techniques 13

terminal to get +V (^) o ( 0 )at the output and ii) the electronic switch, ES, is usually implied and

not shown unless it is used in an unconventional manner.

Circuit diagrams for the integrator are shown in Figure 1.18. In the initial condition state, illustrated by Figure 1.18a, the capacitor charges to −Vic which can be used to represent an

initial condition. When in the OP mode, the output of the system is the negative of the integral of the input starting from the initial condition. The equivalent circuit under these conditions is shown in Figure 1.18b. Note that the initial condition part of the circuit is grounded.

R R

C

  • (^) –

Vo

V (^) ic

V (^) i R^ i V (^) ic

R R

C

Vo

V (^) ic

V (^) i R^ i

(a) (b) Figure 1.18. (a) Integrator Circuit in IC Mode, (b) Integrator Circuit in OP Mode.

  1. A Systematic Procedure for Programming Differential Equations

Although the procedure presented in Section 2 may be used to determine the analog diagram of a linear differential equation, a more systematic version will be developed. This procedure does not require that a first order integral equation be considered for each integrator, but instead requires an equation for the highest order derivative. This equation will correspond to Equation (1.4) in Section 2. There is no essential difference in the theory or results of the two techniques. Only the steps required differ.

Consider, for purposes of illustration, the second order linear differential equation and initial conditions,

d x dt

dx dt x x x

2 2 +^ 0 5.^ +^ =^4 ,^ (^0 )^ =^0 , ˙(^0 )^ =^1.^ (1.18)

If any derivative of a variable is known, then it may be integrated to obtain the variable. In the case of Equation (18) if the second order derivative (d^2 x/dt^2 ) were known, then it could be

14 Analog Computer Principles

integrated once to obtain the first order derivative (-dx/dt) and a second time to obtain the variable (x). Note that since the integrator has a sign inversion associated with it, the output of every odd integration is negative. But Equation (1.18) gives the second order derivative in terms of the lower ordered derivative. Thus,

(1) If d x dt^2 2 is known, – dx dt and x may be obtained;

(2) If dx dt and x are known, d x dt^2 2 may be obtained.

This circular argument states that only the relationship between the inputs and outputs of the integrators are known, not the actual values of the inputs and outputs. This should not seem too strange since a differential equation represents only the class of solutions. The boundary values or initial conditions are necessary to determine a particular solution. The initial conditions have not yet been considered.

The programming procedure is then as follows:

(a) Assume that the highest order derivative ( d x dt^2 2 in this case) is known and generate all lower order derivatives as shown in Figure 1.19. Note that the output should always be x , not

  • x , since x is the desired solution.
    • ∫

1 –x x

x 1

  • ∫

Figure 1.19: Analog Circuit for a Double Integrator

(b) Solve the differential equation for the input to the integrator string and form the indicated sum.

d x dt

dx dt x

2 2 = −0 5^.^ −^ +^4 (1.19)

(Don’t forget that the “summer” also inverts!). See Figure 1.20.

1

  • 4.0 ••x

.5 (^) x^ •

x

Figure 1.20: Generating the Second Derivative.

16 Analog Computer Principles

SJ

SJ’

1 1 1

. .

IC

B .1B

SW OP

SJ

SJ’

1 1 1

. .

IC

B .1B

SW OP

(^1 )

1

1 1

.

SJ 5

1 2 3

7

COEFFICIENT POT

Figure 1.23:. GP-6 Wiring Diagram for Figure 1.

As another example, consider a general third order linear differential equation. The procedure may be extended for a system of any order. We have

d x dt

a d x dt

a dx dt a xo f t

3 3 2

2

  • 2 + 1 + = ( ) , (1.20)

with initial conditions

x ( 0 ) = x (^) o , ˙(x 0 ) = x˙ , ˙ (^) o x˙( 0 ) = x˙˙o. (1.21)

Using the procedure outlined above:

(a) Form the integrator string

  • •••x 1 ••^ x 1 –x^ • 1 x
    • ∫ (^) – ∫ – ∫

Figure 1.24: A Third-Order String of Integrators.

(b) Solve for the input to the integrator string and form the indicated sum.

Chapter 1. Programming Principles and Techniques 17

− d x= + + − dt

a d x dt

a dx dt a xo f t

3 3 2

2 2 1 ( ),^ (1.20)

1

1

1

f(t) –x^ •••

1

–a^ • 1 x

–a 0 x

–a^ •• 2 x Figure 1.25: Generating the Third Derivative.

(c) Combine the results of (a) and (b).

(d) Add the initial conditions and remove the summer since one less amplifier is required. The result is shown in Figure 1.26.

–[x(0)]

1 1 1 x

1

1 1

1

f(t)

1 1

–[x••(0)] ••• –x •• x –x^ •

  • ∫ – ∫ – ∫ a 2 a 1

a 0

–[–x•(0)]

Figure 1.26: The General Third-Order System.

  1. Tricks with Transfer Functions

Suppose we have the first-order transfer function

G s Y^ s U s

a s b ( ) ( ) a b ( )

This can be drawn in either of the all-integrator diagrams shown in Figure 1.27.

u(t) y(t) a

b

u(t)^ y(t)

  • (^) –

a

b

Chapter 1. Programming Principles and Techniques 19

G s d c s p

c s p

c s p

n n

1 1

2 2

L

then we may implement this transfer function using the first-order circuits in parallel, with the output of each entering into a summer. In this case, circuit (b) would be preferable to prevent loading the input.