ESR Elektor PDF
ESR Elektor PDF
ESR Elektor PDF
ESR/C Meter
A versatile meter
for
capacitors
Flemming Jensen
D
igital capacitance meters have advanced) type of meter. series with the ‘ideal’ capacitance (see
become fairly inexpensive. Most There’s another important property of Figure 1). The resistance represents
commercial capacitance meters a capacitor that cannot be measured the losses inside the component, and
have a measurement range of a few using a normal capacitance meter: its it largely corresponds to the quality of
picofarads to 2,000 mF. Some can even equivalent series resistance (ESR). the capacitor.
go as far as 20 mF, but that’s where it Beside the capacitance, it is one of the Electrolytic capacitors tend to dry out
stops. Large capacitors with values of most important properties of a capaci- after a long time, which causes their
several hundred millifarads, which are tor. An ideal capacitor is a purely reac- ESR to increase. A pure reactance can-
often used in power supplies, printers tive component, with a 90-degree not generate any heat, due to the
and photocopiers, cannot be measured phase shift between voltage and cur- phase shift of exactly 90 degrees
using such meters. That means you rent. However, practical capacitors between voltage and current, but a
will need a different (and more also have a non-zero resistance in resistance can generate heat. The heat
10k
C+ C- C15
+5V -5V
8 5 11 32
V+ VOUT
IC4 100n +5V
ICL7660 1 26 K1
7 6 C11 14 MCLR RX/RC7
OSC LV C7 15 1
RC0
10µ 4 6 33 16 2
MCLR RB0 INT/RB0 RC1
100n
3 16V 7 34 3
RB1 RB1 8
17 8 35 RE0/AN5 4
+VBAT RA0 IC2 RB2 RB2 9
18 9 36 RE1/AN6 5 P5
IC6 RA1 RB3 RB3 10
1 10 37 RE2/AN7 6
S2 78L05 +5V RA2 RB4 RB4
2 PIC16F84 11 38 IC1 19 7
RA3 RB5 RB5 RD0
3 12 39 20 8 22k
R28 RA4 RB6 RB6 RD1
13 40 21 9
RB7 RB7 RD2
10k
BT1 C8 C9
22 10
OSC2 OSC1 RD3 -5V
100n 100n 27 11
9V 15 5 16 RD4
PIC16F877 28 12
R29 RD5
29 13 LC DISPLAY
RD6
10k
30 14
7 RD7
RA5/AN4 15
6 17
RA4/T0CK RC2 16
5 18
RA3/AN3 RC3
4 23
RA2/AN2 RC4
3 24
RA1/AN1 RC5 +5V
2 25 R21
RA0/AN0 TX/RC6
1k
R26 OSC2 OSC1
12 14 13 31
10k
T1
C17
X1
1 100n
BC557
3
C3 20MHz C4
2
P3 P4 P2 4 8
Cx
+5V 22p 27p R
S1 1k 200 Ω 1M 2
4 TR
R18 R19 R17 IC5
6
14
120 Ω
8M2
7k85
C14 7 3
5 DIS OUT
IC3
TLC555
7 100n
6
THR
CV
5 1
IC3.C C2
R1 R12 1% P6 R22
11 10
56 Ω 1M 82k
47n
sense + R10 C1 100k
R3 R5 12
1k
signal + 56 Ω 2k2
IC3.B 1n 6
2x R7 R11 1% R20 +VBAT
4 3 2 7
1N4007 1M IC7.B 1k
2k2
R9
R30 1 5
R14 1% IC7.A 10k
180 Ω
D2 D3 D4 D5 5 3
1M C12
R8 R13
13 R24 IC7 = LF412 D1 100n
2x +5V 8
2k2
1M
R15 C6 C5
1 2
2k2
sense – R2
8 9 R16
56 Ω
10k
IC3 = 74HC4066 IC3.D -5V 040259 - 11 -5V
10 mF (milli-farad) are not measured to the capacitor being tested (the thus the voltage across the ESR. As the
continuously. Instead, a series of four ‘capacitor under test’ or C.u.T.). The two electronic switches are actuated
measurements are made and the value of the ESR can be determined by synchronously at the same frequency,
results are then averaged. measuring the AC voltage across the a constant differential voltage is pres-
This method ensures that the capaci- capacitor. If the capacitance is suffi- ent at the input to the opamp. The
tor is fully discharged and charged and ciently high relative to the frequency, opamp passes the differential voltage
generates highly reliable measure- the voltage drop due to the reactive (in this case 11 mV) to its output, so
ments. It also limits the current con- impedance is negligible, so the voltage the voltage at the output of the opamp
sumption. The instrument must be across the capacitor is entirely caused is proportional to the ESR value.
switched off and then on again in order by the ESR. This voltage is rectified Figure 4 shows a different example,
to make a new measurement. Contin- and fed to the voltmeter. with a test capacitor rated at 0.1 µF
uous measurements are made in all The operating principle is illustrated in and having an ESR of zero ohms. As
other ranges. Figure 3. Here it is assumed that the already noted, a fairly high frequency is
C.u.T. is rated at 100 µF and has an used to keep the effect of the reactive
ESR of 10 Ω. The reactive impedance impedance as small as possible so that
Measurement principle (XC) is equal to 0.5πfC or approxi- even small electrolytic capacitors with
of the ESR meter mately 0.0159 Ω, which is negligible values as low as around 0.1 µF can be
A 100-kHz square-wave signal that relative to the ESR value of 10 Ω. The measured. That makes it necessary to
supplies a constant current is applied voltage measured across the C.u.T. is further reduce the effect of the initial
2k2
0
XC = 0 11 mV
1 0
16F84 1M
100kHz 18
ESR
generator ESR = 1M
10Ω
2k2
1.244V
1M
+5V
0
0 2k2
1.255V
1.244V
0
C.u.T. ≈ 100 µF
012022 - 12
Figure 3. With a capacitor rated at 100 µF çnd having an ESR of 10 Ω, the reactive impedance is negligible
and the ESR (which is purely resistive) determines the output voltage of the opamp.
50 mV
0
+5V 2k2
0 50 mV 1M
0
2k2
0 50 mVpp
XC = 15
1 0 V DC
16F84 1M
100kHz 18
ESR
generator ESR = 1M
0Ω
2k2
50 mV
1M
+5V
0
0 2k2
50 mV
0
C.u.T. ≈ 100nF
012022 - 13
Figure 4. The situation with a capacitor rated at 0.1 µF and having an ESR of 0 Ω. Here the average output voltage of the opamp is 0 V.
integration of the voltage waveform. the actual ESR value of 10 ø, while the These modes are controlled by the
Here the ESR is zero and the reactive effect of the reactive impedance of 16F877, which uses interrupt routines
impedance is 0.5πfC, or approximately 16 ø would have been eliminated. to determine what the 16F84 has to do.
16 Ω. As can be seen, the differential
configuration of the opamp causes the
sawtooth integration waveform on the Multiple PICs Component selection
inputs to be summed to yield a saw- The frequency generator in the circuit As this circuit works with high fre-
tooth voltage on the output with an of the original design has been quencies and signal levels in the milli-
average value of 0 V. The resulting volt- replaced by a PIC (type 16F84). The volt range, a differential amplifier with
age after integration by the subse- 16F877 cannot be used for this purpose a low offset and large bandwidth must
quent RC network is 0 V, and this value because the signal cannot be inter- be used. The LF412 meets these
is applied to the input of the voltmeter. rupted unless a DC tests is being requirements and is also not all that
If the capacitor had an ESR of 10 Ω, the made. The 16F84 uses the same clock expensive.
sawtooth voltage on the output would oscillator as the 16F877. The advan- The HC version of the well-known 4066
still have the same form, but it would tage of using a second PIC is that it quad electronic switch IC provides fast
be superimposed on a DC component makes it unnecessary to align the 100- switching times, which reduces the
due to the ESR. After the sawtooth kHz generator frequency. It also allows effect of the undesirable reactance by
was filtered out by integration, the the generator to be easily switched a factor of 2.
remaining voltage would correspond to between AC and DC measurements. The best results will be obtained if the
C2
COMPONENTS LIST
BZ1
040259-1
P2
040259-1
+
P5
C11
C15
IC4
IC5
Resistors:
IC2
R1-R4 = 56Ω
P4
S1
C17
C+ C-
R5-R8,R24 = 2kΩ2
T1
C10
R17
R9,R10,R15,R16,R25,R26,R28,R29 =
D5
R27 R19
R21 10kΩ
D4
-
P3
R11-R14 = 1MΩ 1%
R18
BT1
C3
+
R5 R30 R4 signal-
D2
R19 = 120Ω
X1
D3
R7 R3
S2
signal+
R20,R21 = 1kΩ
P6
R6 R1
sense+
R8 R16 R22 = 82kΩ
R23 = 47Ω
C14
R22 R15
C16
R27 = 220Ω
P1
IC1
C9
D1
R30 = 180Ω
R24 R23
C4
IC3
R13
C6
K1
IC6
R11
R12
P3 = 1kΩ 10-turn preset
IC7
R9
R14
C8
P4 = 200Ω 10-turn preset
R10
C7
C5
P5 = 25kΩ preset
R29
R20
C13
R28
P6 = 100kΩ 10-turn preset
C1
R25
Capacitors:
C1 = 1nF
C2 = 47nF
C3 = 22pF
C4 = 27pF
C5 = 10µF 16V radial
C6 = 220nF
C7,C8,C9,C12-C17 = 100nF, lead
pitch 5mm
C10,C11 = 10µF 16V radial
Semiconductors:
D1 = zener diode 5V6 500mW
D2-D5 = 1N4007
IC1 = PIC16F877-20/P, programmed,
Publishers order code 040259-
41*
IC2 = PIC16F84A-20/P,
programmed, Publishers order code
040259-42*
IC3 = 74HC4066
IC4 = ICL7660
IC5 = TLC555
IC6 = 78L05
040259-1 IC7 = LF412CP
T1 = BC557
Miscellaneous:
Bz1 = AC (passive) piezo buzzer
040259-1 S1 = switch, 2 changeover contacts
S2 = switch, 1 make contact
K1 = LCD module, 2x16 characters
(e.g., Digikey # 153-1078-ND)
X1 = 20MHz quartz crystal
2 wander sockets for banana plug
Measurement cable
Enclosure, e.g., SERPAC H75 (Digikey
# SRH75-9VB-BD)
PCB, Publishers order code
040259-1*
Disk, source- and hex-code files,
Publishers order code 040259-
11* or Free Download
Karel Walraven
The first life signs of the circuit were and we were using a 1:10 probe quency divided by four, so in the- were invariably negative instead of
hopeful. The display produced leg- so extra capacitive loading would ory, at 20 MHz, it is able to supply positive, and the microprocessor
ible texts, so at least the micro- be small. This leaves several other new data on its I/O pins every programs was known to turn any
processor is running its program. fault factors to be considered: the 200 ns. That looked like a plausible negative value into a solid zero. In
Then came the problems. Measur- PIC may have been programmed explanation of the phenomenon we theory, this can happen if the
ing capacitors was troublesome if for ‘standard crystal’ instead of were faced with. This kind of error phase of the synchronous detector
not impossible — usually, the dis- ‘high speed crystal’, or the two xtal easily creeps into a design. The test has been swapped over. After a lot
play remained stuck at one firm ‘0’ loading capacitors may be too circuit runs fine at a lower clock of searching and debating, we
and that’s no incentive to build an large. Also, the crystal itself may be speed, hooray, the design is agreed that that was not the case.
ESR/C Meter. So we ran the usual at fault, some will simply refuse to ‘quickly optimised’ while drawing Wild theories were heard then in
checks on the board. Always start switch to overtone resonance. In our the schematic and then… a final the lab, until it transpired that the
by measuring the supply voltage case, it turned out that the PIC was check of the pulse timing is forgot- switch selecting between capaci-
directly on the IC pins — both the incorrectly programmed and the ten. However, it could also be an tance and ESR measurement was
+5 V and ground rails should be problem was solved quickly. Alas… undiscovered error — some LCDs incorrectly wired, causing a mighty
inspected. Next up is the micro- the display now greeted us with have no problems with 200-ns offset in the detector. Nobody had
processor clock and bingo there we total gobbledygook. Strange, but pulses, while others from a different thought of such a simple exchange
got 6.66 MHz instead of the still reassuring to know at this point series or manufacturer will hang. of two wires!
desired 20 MHz – the quartz crys- that there were no display wiring
tal was cheerfully resonating at its errors — after all, the display had We cast a critical eye on the LCD The moral of the story: always check
fundamental frequency instead of worked just fine we corrected the driver routine, created a longer obvious matters first. Do not fear the
the third overtone. Sometimes this is clock frequency. A timing error? LC enable pulse and reprogrammed worst and certainly do not dig
a false reading however, the 50-pF displays may not be driven too fast. the PIC. The LCD then worked as deeper than necessary!
scope probe capacitance wreaking For example, the datasheet tells us desired. By itself, that is, because
havoc at the oscillator input. How- to observe a minimum length of after all this hard work, the readout
ever, a rock solid 6.66 MHz was 450 ns for the enable pulse. Inter- was still meaningless. We quickly
measured at the oscillator output nally, a PIC operates at the xtal fre- found out that the measured values
recommended components are used. switch on the power. You can use P5 to
However, the performance is still adjust the contrast of the LCD module.
acceptable with a normal 4066. Short the probes together when you
are requested to do so. Now connect
the probes to a 10-Ω resistor and
Compact construction adjust P6 until the display shows a
Thanks to the use of two microcon- value of 10 Ω. Connect the meter to
trollers, the size of the overall circuit several working capacitors in turn,
remains relatively small, so the printed without and without a 10-Ω resistor in
circuit board designed for the circuit
(Figure 5) has quite modest dimen-
series, to verify that the meter is work-
ing properly. Things to pay
sions.
There are only a few components that
attention to
have to be connected to the circuit Calibrating the capacitance meter Always discharge the capacitor before
board via short leads. The LCD module You need a pair of precision capacitors connecting the meter to it.
is connected to K1. Switch S1, which is to calibrate the capacitance meter. A
used to select either capacitance or value of 470 pF / 1% is suitable for the Switch on the meter before connecting
ESR measuring mode, is wired to con- picofarad range, and a value of it to the capacitor to be measured.
nector S1 on the circuit board using six 220 nF / 1% can be used for the nano- Four measurements are made on
short leads. Points C+ and C– are con- farad range. Both values can be
capacitors with values greater than
nected to two measurement terminals obtained at a reasonable price from
or sockets located on the front side of various vendors, such as Farnell. Do 10 mF. After that, the meter displays
the enclosure. The pins marked Sig- not use values of 1000 pF or 1000 nF, ‘Ready’, and it must be switched off and
nal+, Signal–, Sense+ and Sense– are since that can cause the display to back on to make a new measurement.
for connecting the additional ESR test flicker between 999 pF and 1.00 nF or
Be patient when measuring capacitors
leads with their separate sense lines in 999 nF and 1.00 µF, respectively. The
with very large values. It takes approxi-
order to measure capacitors while they easiest way to adjust the range above
are still connected in a circuit (see Fig- 10 µF is to use a commercial capaci- mately 10 minutes to measure a 370-mF
ure 6). tance meter. An alternative method is capacitor.
The battery and power switch S2 (BT1 to use the formula t = RC and a simple
and S2, respectively) must also be con- stopwatch.
nected to the circuit board, as well as Keep the meter away from transform-
the beeper (BZ1). ers and strong 50- (60-) Hz fields. Warning
Switch on the meter, connect it to the
470-pF capacitor, and use P2 to adjust Although the inputs of the meter are pro-
Test probes the value on the display to match the tected by diodes, it is good idea to dis-
Four-wire measurement is used here to value of the capacitor. Next, connect charge large capacitors before measuring
compensate for the voltage drop in the the meter to the 220-nF capacitor and them. The risk of burning out the protec-
test leads. Each of the test leads has use P3 to adjust it to the right value. tion diodes is particularly high with fil-
two screened conductors, consisting of Finally, you can use P4 to set the right ter/buffer capacitors used in power sup-
a signal lead and a sense lead (see value for your reference electrolytic ply circuits.
Figure 6). This prevents the measure- capacitor.
ment from being corrupted by hum, After that the meter is ready for use.
noise or ESD interference and allows a From now own, no capacitor new, old
stable zero calibration to be imple- or NOS (new old stock) will hold any Figure 6. How to build the two dual
mented. secrets for you. shielded measurement leads that connect
(040259-1) the probes to the actual instrument.
36