Phase-sensitive Rectifier (Lock-in Amplifier)

Lab Assignment 2
Phase-sensitive Rectifier (Lock-in Amplifier)
By:
Prof. Dr. rer. nat. habil. Albrecht Rost
University of Applied Sciences Merseburg
Department 1: Computer Science and Applied Natural Sciences
Physics, Laboratory of Measurement Technology
e-mail: [email protected]
Objective
• Investigate the properties of an analog multiplier using time-independent and various time-dependent signals.
• Build the circuit of phase-sensitive rectifier and investigate its function.
• Measure the output signal of the phase-sensitive rectifier in dependence on the phase shift between the measured
signal and the reference signal for both the auto-correlation and cross-correlation.
• Investigate the influence of noise superposed on the measured signal.
• Determine a unknown impedance using a phase-sensitive current voltage measurement.
Equipment Required
• Agilent 54622A Deep Memory Oscilloscope or Agilent 54600B Oscilloscope
• Agilent 34401A Multimeter
• Agilent 33120A Function Generator
• Agilent VEE software
• Agilent 4284A RLC meter
A. Theoretical Introduction
A phase-sensitive rectifier realises a correlation method: The input signal is compared with a reference signal and the
amount of similarity between these signals is determined. There are two kinds of correlation functions:
• The cross-correlation function
1
T → ∞ 2T
K xy (τ ) = lim
+T
∫ y(t)x(t + τ )dt
−T
describes the similarity between two different time-continuous functions y(t) and x(t) . If there is no similarity between
the both functions, then the correlation function K xy will be zero for all τ .
• The auto-correlation function
1
T → ∞ 2T
K xx ( τ ) = lim
+T
∫ x(t)x(t + τ )dt
−T
describes the independence of the function x(t) with respect to a time shift τ and, therefore determines the signal’s
similarity with itself. The following properties of the auto-correlation are characteristically:
− At τ = 0 the function has its maximum value, which is equal to the square of the RMS value: K xx ( τ = 0) = x 2 .
− The auto-correlation function is an even function with respect to the time-shift τ : K xx ( τ ) = K xx ( −τ ) .
− At τ → ∞ the function is equal to the square of the mean value: K xx ( τ → ∞) = x 2 .
In a simple correlation measurement a mean builder determines the so-called product mean value of the measured and
the reference signal, which is equal to the start value of the correlation function: x(t) ⋅ y(t) = K xy (0) .
Fref (t)
S
U in (t)
Fig.1:
U2(t)
R
Mean Value
Calculator
Basic Principle of a Phase-Sensitive Rectifier
ˆ sin(ω t + ϕ ) , and
In Fig.1 the basic principle of a phase-sensitive rectifier is shown. If we use an input voltage U in (t) = U
in
in
the switch S is opened and closed periodically with the frequency, ω , across the resistor R, the voltage
U 2 (t) = U in (t) ⋅ Fref (t) will be generated, where
1
F ref (t) = 
0
for 0 ≤ t < T 2
for T 2 ≤ t < T
and T = 2 π / ω .
Developing F ref (t) into a Fourier’s series and assuming ω in = mω ref , we obtain
1 ∞

)
2
U 2 (t) = U in sin( mωt + ϕ)  +
⋅ sin[(2n +1)ωt] .
 2 n= 0 (2 n + 1) ⋅ π

∑
Because sine term inside the brackets average to zero, the mean value of this voltage is
)
 U in

⋅ cosϕ
U2 =  mπ
0
with m = 2n + 1
with m ≠ 2n + 1
If we replace the switch by a multiplier, we can use an harmonic reference signal. With
Uin (t) = Uˆ in sin(ωin t + ϕin ),
Uref (t ) = Uˆref sin(ωt + ϕ ref )
we obtain
U 2 (t) =
ˆ
ˆ ⋅U
U
in
ref
cos(ω in − ω)t ⋅ cos(ϕ in − ϕ ref ) − cos(ωin + ω ref )t ⋅ cos(ϕ in + ϕ ref )
2
[
]
and, furthermore, with ω in = ω , ϕ in − ϕ ref = ϕ , ϕ in + ϕ ref = ψ
U 2 (t) =
ˆ
ˆ ⋅U
U
in
ref
(cosϕ − cos 2ωt ⋅cos ψ ) .
2
Once more the output voltage consists of a DC voltage, which depends on the phase-shift between the measured and the
reference signal and an AC voltage with the frequency 2ω . Also in this expression-only the first term contributes to the
mean value; therefore we obtain
ˆ
ˆ ⋅U
U
U2 = 1 ref cos ϕ .
2
Depending on the shape of the reference signal, we can distinguish between two different ways of using of the phasesensitive rectifier:
1) Sine-wave-responding (fundamental responding): A harmonic reference signal is used; an output signal will be
generated only at ω in = ω , the measured value is proportional to the RMS.
2) Square-wave-responding (flat-responding): A square-wave reference signal is used; an output signal will be
generated at (2n + 1)ωin = ω (with n = 01, 2... ). Using a harmonic input signal the output signal is proportional to the
RMS.
To understand the difference between these two methods consider the following example.
We use a square-wave input signal, which can be described by the following equation:
ˆ
U
in
U in (t) = 
ˆ in
− U
for t 0 ≤ t < t0 + T 2
for t 0 + T 2 ≤ t < t0 + T
1. Sine-wave responding:
Using a reference voltageU ref (t ) = Uˆref sin ωt , the mean value of the output signal is

t 0 + T
t0 +T
2
ˆ U
 2U
ˆ
ˆ
U in 
in ref

U2 =
U ref (t )dt −
U ref (t)dt =
T 
T

T
t
t0 +

 0

2
∫
∫
=−
ˆ U
ˆ
U
in ref
π
=−
ˆ U
ˆ
U
in ref
[cos(ϕ + π) − cos ϕ]
π
=
t0 +
∫
t0
T
2
T
ˆ U
ˆ
2U
2π t 0 + 2
in ref
sin ωtdt = −
cos
t
T t0
2π
2π 
2π 
T

cos T  t 0 + 2  − cos T t 0 
ˆ U
ˆ
2U
in ref
cosϕ
π
and, with ϕ = 0 , we finally obtain
2 πt 0
=ϕ
T
with
U2 =
ˆ U
ˆ
2U
m ref
.
π
2. Square-wave responding:
ˆ
U
ref
Using a square-wave reference voltage U ref (t ) = 
ˆ ref
− U
for t 0 ≤ t < t0 + T 2
for t 0 + T 2 ≤ t < t0 + T
the mean value of the output voltage is
T2
T

ˆ 
U
U2 = ref  U in (t)dt − U in (t )dt
T 

T2
0

∫
=
∫
ˆ
ˆ U
U
in ref
(π − 2ϕ )
π
and with ϕ = 0 we obtain
with
ϕ = 2π
t0
T
ˆ
ˆ U
U2 = U
in ref .
ˆ =U
ˆ = 1 , we obtain U = 1 .
In a special case, with U
in
ref
2
In the measurement technology the following applications of the phase-sensitive rectifier are important:
1. Detection of strong-noisy signals.
2. Small-band detection of low harmonic signals, superposed with other signals having a greater amplitude but different
frequency.
3. Phase-sensitive detection of harmonic signals superposed with phase-shifted signals with the same frequency.
B. Simulation Experiments
For better understanding of theory and usage of the phase-sensitive rectifier we use the simulation programs PSR1.VXE
and PSR2.VXE. To run these programs you need the run-time version of Agilent VEE (version 5 or above). With these
programs you can investigate the properties of a phase-sensitive rectifier used in the different modes and for the different
measurement applications.
As pointed out already an important application of the phase-sensitive rectifier is the determination of the distance of an
object by measuring of the travelling time of a reflected acoustic or electromagnetic signal . The principle of this method is
demonstrated in the simulation experiment PSR3.VXE. The user can equalize the measured signal to a maximum of the
product mean value by time-shifting of the reference signal. The distance, which is equivalent to this time-shift, will be
given as number of wavelengths.
C. Laboratory Experiments
1. Exercises
1.1. Investigate the properties of an analog multiplier using time-independent and various time-dependent signals.
1.2.1. Build the circuit of phase-sensitive rectifier and investigate its function.
1.2.2. Measure the output signal of the phase-sensitive rectifier in dependence on the phase shift between the measured
signal and the reference signal for both the auto-correlation and cross-correlation.
1.2.3. Investigate the influence of noise superposed on the measured signal.
1.2.4. Determine a unknown impedance using a phase-sensitive current voltage measurement.
2. Theoretical Background
Beside the operational amplifier the multiplier is another important universal circuit for the analog measurement
technology and signal processing. In normal operation the output signal is y = k ⋅ x1 ⋅ x2 with the input signals x1 , x 2 and
the constant transfer factor k. Depending on the allowed range of the input signals the circuits are divided into
• single quadrant multiplier: x1 , x 2 ≥ 0 ,
• two quadrant multiplier: x1 ≥ 0 , for arbitrary x2,
• and for quadrant multiplier: for arbitrary x1, x2.
The phase-sensitive rectifier (lock-in detector) is one of the possibilities to realise a correlation measurement method,
which compares the measured signal with a reference signal and determines the similarity between them. The result is
described with the correlation function.
Correlation methods are used for many different applications in the measurement technique, i.e.
• for measurement extremely noisy signals,
• for phase-dependent measurements of AC voltages, i.e. for impedance or admittance measurements ,
• for measurements of travelling times of acoustic or electromagnetic signals.
The basic principle of a circuit applicable for detection of noised signals as well as for phase-dependent measurements of
an AC voltage is shown in Fig.1, page 2. The reference function F ref (t) opens and closes periodically with the frequency
ω the switch S and therefore the signal
U 2 (t) = U in (t) ⋅ Fref (t)
across the resistor R will be produced . From this voltage the mean value
)
 U1
with m = 2n + 1

⋅ cos ϕ
U2 =  mπ
0
with m ≠ 2n + 1
will be determined by a low pass filter.
U ref (t)
U
in
x
k . xy
(t)
y
U2 (t)
Low Pass
.
Fig.2: Principle of Calculation of the Product Mean Value
Using a multiplier instead of a controlled switch (Fig.2) the circuit generates directly the product mean value
)
)
U in ⋅ U ref
U2 =
cosϕ .
2
If the time constant of the low pass filter is high enough, a noise superposed on the measured signal will be strongly
reduced.
A very useful method for resistance measurements is the current voltage method. This method can be used also for
measuring complex AC resistors, if it is possible to measure the real and the imaginary part of the AC current
independently. The basic circuit, using a current voltage converter, is shown in Fig.3, the output voltage of which is
U * = I x ⋅ R . The current I x is determined by the measured voltage U x and the unknown admittance Y x = 1 Z x :
I x = Y x ⋅ U x = (Gx + jBx ) ⋅ U x .
With a phase-sensitive rectifier we can measure a voltage proportional to
the real part of the current using an in-phase reference signal ( ϕ = 0 ) as
well as to the imaginary part using a 90 degree phase-shifted one
( ϕ = 90 o ). For the unknown admittance we obtain
)
)
U *0 o
U * 90o
Gx = )
,
Bx = )
.
Ux ⋅ R
Ux ⋅ R
Fig.3: Current Voltage Converter
Keep in mind, that the phase-sensitive rectifier delivers the mean value
)
ˆ* ⋅U
U
x
U=
2
.
3. Instructions on the Laboratory Exercises
Caution: All circuits should be constructed using the hps Analog Development Board. Check conscientious the various
circuits you build and determine there correct function by measurement and comparison of the signals at different circuit
points using the oscilloscope Agilent 54600.
Before applying power to the circuit, please, ask the teacher to check the circuit for you.
Exercise 1.1.:
10 k
10 k
100 k
phase shifter
10 k
amplifier
1
+
1 M log
10 n
U ref
y
2
+
10 k
k.xy
Uin
x
Fig.4: Measurement Circuit for Investigation of the Multiplier with Phase Shifter and Amplifier
At first investigate the multiplier by measuring the output voltage using two independent controllable DC voltages. All
voltages should be measured using DMM’s. Determine the transfer factor k and the allowed input voltage range.
Than investigate the properties of the multiplier using time-dependent input voltages:
)
• x1 = U 1 = const , x 2 = U 2 (t) = U 2 sin ωt ,
)
)
• x1 = U 1 (t ) = U 1 sin (ωt + ϕ) , x 2 = U 2 (t) = U 2 sin ωt (in this case a phase shifter and an amplifier must be added as shown
in Fig.4),
)
• x1 = U 1 (t ) = U 1 sin (ωt + ϕ) , x 2 = U 2 (t) : unipolare square-wave voltage.
You can generate controllable DC voltages with the potentiometers on the hps Development Board. For all timedependent signals you need signal sources with very high frequency stability; use the function generator Agilent 33120A.
Exercise 1.2.:
For this exercise use the complete circuit of phase-sensitive rectifier shown in Fig.5. Determine the principle of function
by measurement and comparison of signals at different circuit points.
1.2.1.:
10 k
10 k
100 k
phase shifter
10 k
amplifier
10 k
2
+
1 M log
U
noise
1 uF
y
+
10 n
10 k
U
in
10 k
1
U ref
low pass
k.xy
10 k
10 k
10 k
5
x
_
U
+
adder
4
10 k
+
10 k
Fig.5: Phase-Sensitive Rectifier (Complete Circuit)
Constru)ct the complete circuit on the hps Development Board and determine his function using the same voltage
U(t ) = U sin ωt for both signals U in and U ref (corresponding to auto-correlation; input U noise short-circuited). Measure the
signals in dependence of a phase shift ϕ at different circuit points using the oscilloscope. Measure the output signal U2 at
a constant phase shift ( ϕ = 0 or ϕ = 180 o ) for various frequencies in a range 0, 1kHz ≤ f ≤ 10kHz .
1.2.2.:
Measure U2 in dependence on phase shift in a range 0 ≤ ϕ ≤ 180 o at a frequency f = 1kHz
)
1. In the case of auto-correlation (connect the inputs U ref and U in with one signal U(t ) = U sin ωt );
2. In the case of cross-correlation you need two signal sources with very stable frequency, and furthermore the frequency
must be controllable in very fine steps. Use function generators Agilent 33120 A; after a warm-up time of about 30 min
the stability is high enough to start the measurements.
1.2.3.:
)
Use the circuit in auto-correlation operation. Superpose a noise voltage U noise to the measured signal ( U in = 1V , f = 1kHz )
; to generate the noise voltage use also a Agilent 33120 A. Measure the mean value with various amounts of noise
( 0 ≤ U noise ≤ 10V ).
1.2.4.:
Use the measurement circuit shown in fig.5 and use OpAmp4 on the hps Board as a current voltage converter
(withR = 10 kΩ ). As an unknown admittance use the parallel circuit of a resistor R x (1kΩ ≤ R x ≤ 10 kΩ ) a capacity Cx
(10 nF ≤ C x ≤ 50nF ).
Measure the output signal at ϕ = 0 (or ϕ = 180 o . Is this correct? - What is the difference?) and at ϕ = 90 o and calculate
the values R x and Cx .
Measure the unknown admittance with the RLC meter Agilent 4284 A at the same frequency and compare the different
results.