Escolar Documentos
Profissional Documentos
Cultura Documentos
Abstract
Lock-In Amplifiers are devices used to recover signals with low signal-noise ratios by the
principle of the phase sensitive detection. The scope of the present analysis is the design of
a Micro-Ohmmeter using said principle to measure low resistances in circuit by using the
software Proteus
R
8. Simulations of the circuit were run and the main features of the phase
sensitive detection were exposed with results of the effects of different phase shifts for the
demodulation process. The simulation results were in accordance with the mathematical
model obtaining low relative errors between them.
1 Introduction 2 Overview
The required task was to design and test,
In order to apply the theoretical principles of stage by stage, a micro-ohmmeter based on
Signal Conditioning, a Lock-In Amplifier based a lock-in amplifier in able to measure small
Micro-Ohmmeter circuit was designed with the resistances without applying large currents, an
objective to select correct values of different application useful for measuring short circuits
electrical components in order to generate an in printed circuit boards. The electronic
audible tone from a buzzer when a small resis- design software Proteus 8 was used for the
R
tor value was measured. To accomplish this design and simulation of each of the circuit
task, a circuit outline with connections was stages.
available for its reproduction using the soft-
ware Proteus
R
8. The objective of the exposed A proposed block diagram for the circuit is
document is to understand the operating prin- shown in Figure 1 in which the circuit main
ciple of the Phase Sensitive Detection and the elements are shown:
importance of the different elements in a signal
conditioning circuit. • Signal Source (Modulation)
2
If the condition fs << fc is satisfied, the without loss of generality the demodulated sig-
original signal is carried from its original nal is given by:
frequency fs to a higher value of fc ± fs .
Vdem = Vm (t) · Vref (t)
= V (t) · Sin(2πfc t) · Sin(2πfref t + φ)
(4)
Again by equation 2, it can be re-written as:
1
Vdem = V (t) Cos(2π(fref − f c)t − φ)
2
− Cos(2π(fref + f c)t + φ) (5)
3
An important remark to both modulation equal to +3V with different phase delays (0o ,
and demodulation is the fact that both carrier 90o , 180o , 270o ).
and reference signal are not necessarily to
be sinusoidal and the presented derivation The 555-timer has two different config-
remains valid because any signal can be urations, mono-stable (or single shot) and
expressed as its equivalent Fourier Series a-stable (continuous/free-run). As a contin-
transformation. uous supply-signal was required the a-stable
configuration was adopted. Figure 4 shows
the 555 circuit outline as it is shown in the
4.3 Filtering Proteus work-space. The resistor R2 value had
to be chosen to guarantee a 1700Hz frequency
As seen before Vdem has two main components: for the 555-Timer pin 3 output.
1
Vdem1 = · V (t) · Cos(φ)
2 (7)
1
Vdem2 = − · V (t) · Cos(2πfc t + φ)
2
And trough the implementation of a
low pass filter in cascade to remove the
2πfc components of Vdem the output signal
has all the characteristics of V (t), is clean
of noise (ideally), and has half of its amplitude.
4
8:
Vdis = 2Vcc /3 · Exp − t2 /R1 C3
(10)
t2 = R1 C3 Ln(2)
As the total period of the ’charge-discharge’
cycle is equal to the inverse of the required fre-
quency (1700Hz) the value of the resistor R2
was found as:
T = t2 + t1 = (2 · R1 + R2 )C3 Ln(2) = 1/f
R2 = 1/(C3 · f · Ln(2)) − 2R1 = 82.864kΩ
R2 = 82kΩ
(11)
Choosing the value of 82kΩ in order to use one Figure 6: 4013 Quadrature Divider’s Circuit
standard resistor and because the frequency (Proteus)
output using R = 82kΩ was closer to 1700Hz.
The instrument input in this case is repre-
The designed circuit for the 555-Timer was sented by the resistor R5 whose range must be
made by selecting the following components between 0 and 0.22Ω. The outputs V1 and V2
from the Proteus component library: from this stage have both a mean value of 3V
and also a 180o phase shift. Theoretically the
• 555-Timer tension in the middle of the resistor R5 is equal
• Resistor (Generic) x2. to 3V. Therefore a 3-resistors tension divider
can be written as:
• Capacitor (Generic) x2.
Vcc R5
While the schematics for the connection are ∆V = · (12)
R3 + R4 + R5 2
shown in Figure 4.
5
With Vcc = 6V the value of ∆V is then
defined for any given value of R5 . As
R5 << R3 + R4 it can be neglected in the
denominator of equation 12. In practice there
is also a tension drop inside the quadrature
divider so the effective value for Vcc is ap-
proximately 5.5V. Equation 12 represents
the modulated version of R5 as this resistor
change is the measured value and therefore
it is equivalent to V (t) from 4.1 Modulation.
∆V = 5.5/(R3 + R4 ) · R5 /2
(13)
∆V = 5.5/(R3 + R4 ) · R5 /2 = 275µV Figure 8: Input Stage (Proteus)
In consequence the outputs from pins V1 Although the amplification can be done by
and V2 are equal to 3 ± ∆V valid for any value using only one Operational Amplifier in either
of ∆V . As the maximum values are required inverting/non-inverting configuration it is not
for design and because ∆V grows with R5 recommended as it is possible to saturate the
the value of ∆V = 275µV was chosen as the OP-amp and lose some of the information.
design value. Another problem is that any common mode
noise in the input signal is also amplified.
The proves V0 , V90 , V180 and V270 are dif- Therefore an Instrumentation Amplifier is
ferent values of the carrier signal that can be required.
used as reference for the signal demodulation
(see 4.3 Analogue Switch). An Instrumentation Amplifier is a circuit
The outputs from these stages (V1 , V2 ) are composed by three operational amplifiers in
shown in Figure 7. two amplification stages as shown in Figures
In the design case V1 = 3 + ∆V and 8 & 9.
V2 = 3 − ∆V but simulations shown a slightly
difference form the ideal case. The Instrumentation Amplifier has the
advantage to not load the input signal due to
In order to design this circuit some compo- its high impedance and also does not affect the
nents were selected from the Proteus compo- output signal due to its high common-mode
nent library: rejection rate. It is able to amplify the
differential mode input without amplifying
• 4013 Flip Flop x2 the common mode input.
6
By superposition, grounding V2 and connect- • MC33172P Operational Amplifier x1
ing V1 the ouputs from the pins VA0 and VB0 are
equal to: • Resistor (Generic) x4
• Capacitor (Generic) x4
VA0 = (1 + R10 /R9 ) · V1
(14) The connection scheme is again shown in
VB0 = −R10 /R9 · V1
Figure 9.
Similarly, by grounding V1 and connecting
V2 , the outputs from VA00 and VB00 are: In between those stages, as said before, the
Phase Sensitive Demodulation occurs through
VA00 = −R10 /R9 · V2
(15) a Analogue Switch with unit gain. The task
VB00 = (1 + R10 /R9 ) · V2 was to determine a value for R9 . VRF for R5 =
0.22 had to be set at 1.5V (from ground) or
Then as VA = VA0 + VA00 and VB = VB0 + VB00 ,
4.5V from Virtual Earth as a design constrain.
from witch the gain for VA − VB is equal to:
VRF = GIA1 · GIA2 · 2∆V + VV G
VA = (1 + R10 /R9 ) · V1 − R10 /R9 · V2 (20)
(16) R9 = 73.6Ω
VB = (1 + R12 /R9 ) · V2 − R12 /R9 · V1
Given V1 = Vcom + ∆V and V2 = Vcom − ∆V
The output from this stage is given by: notice how the common mode input is lost
after this stage. As the Operational Amplifiers
Vo1 − Vo2 = (1 + 2R10 /R9 ) · 2∆V
(17) are single supplied, the information related
GIA1 = (1 + 2R10 /R9 ) to the negative semi-cycle of this difference is
The components required in this stage were: going to be lost. Therefore the signal reference
must be lifted by Vcom = 3V therefore VV G
• MC33172P Operational Amplifier x2 must be equal to Vcom to compensate the loss
of the common mode input and being this
• Resistor (Generic) x7
one of the reasons of why a Virtual Earth
• Capacitor (Generic) x2 (VV G = 3V See 4.5 Virtual Earth) was
necessary.
The connection scheme is shown in Figure 8.
7
5.4 Virtual Earth
8
Figure 14: Salen Key Equal Value LP-Filter
Figure 13: Virtual Earth (Proteus) (Proteus)
The components required in this stage With GF = 1.27 the filter’s gain.
were:
In particular for this design the filter cut-off
frequency was chosen to be F0 = 10Hz. There-
• MC33172P Operational Amplifier x1
fore as C11 = 0.1µF the value of the resistor
R23 is determined as:
• Resistor (Generic) x3
F0 = 1/(2πR23 C11 ) = 10Hz
• Capacitor (Generic) x2 (25)
R23 = 159kΩ
• Capacitor (Electrolytic) x2
5.5 LP-Filter
From Figure 11 the output VRF from the
Instrumentation Amplifier + Analogue Switch
is almost DC but has some spikes. In order
to remove those spikes and obtain a smooth
DC averaged signal output the rectified signal
from the previous stage VRF had to be passed
through a Sallen-Key Equal Value Low-Pass
Filter. Figure 15: Filtered output for different values of
φ
9
From Figure 15 notice how the filter removes Figure 16: Voltage Controlled Oscillator (Pro-
all the spikes from VRF (Figure 11) averages teus)
and amplifies its value by GF as time grows.
The transistor Q1 can be seen ideally as a
For φ = 0 and φ = 180 the filtered signal
switch. When Q1 is open, i.e. when the ouput
final VDC ≈ 4.75 value still has some energy
from U7:B is negative the capacitor C13 starts
content. However for φ = 90 and φ = 270 the
charging at constant current I1 = VF /R31 .
filter averages to ’earth’ at a value of VV G , or
a system ’zero’.
At every moment ideally the positive input
to U7:A is hold at VF /2 due to the voltage
In theory the filter amplifies the signal by
divider between R32 and R33 , therefore the
GF respect to ’earth’. Therefore:
negative input is also at VF /2 and the current
VF = GF · VRF + VV G (26) flow R31 is equal to I = VF /R31 .
For R5 = 0.22 it drives to VF = 4.91V . When Q1 is closed, i.e. when the output
from U7:B is positive R34 is grounded and a
For the filter, the required components were: current flow I2 = VF /R34 flows through R34 .
10
5.7 Buzzer/Mute
The final elements of the Micro-Ohmmeter
were the sounding element (Buzzer) and a con-
trol element for when R5 were out of the work-
ing range [0, 0.22Ω].
11
The buzzer elements is just shown as there The circuit model equations are given by:
were no calculations related to it, but its con- 2 · GA1 · GA2 · Vcc0
nections are shown in Figure 20 and the re- VRF = · R5 + VV G (32)
R4 + R3
quired components were:
• Buzzer x1 2 · GF · GA1 · GA2 · Vcc0
VF = · R5 + VV G (33)
• Resistor (Generic) x 1 R4 + R3
12
And plot of those errors is shown in Figure
25.
7 Conclusions
Figure 24: f Theory vs Simulation
In the other hand the results from frequency A computational simulation of a Micro-
the simulation show a lesser linearity in Ohmmeter
was realized through the software
comparison to the theoretical model. Proteus 8 and it showed a good compro-
R
13
8 References
1. Texas Instruments (2016), Handbook of
Operational Amplifier Operations. Appli-
cation Report SBOA092B, pp.29.
14