LC meter

July/11/2004

Updated Oct/28/2009

Construction of a inductance and capacitance measuring instrument with a PIC and LCD. The original idea seems to have come from Bill Carver, W7AAZ, in Communications Quaterly, Winter, 1993, and is described in EMRFD. The proposed circuit was published in the June/96 Electronics Now magazine and is the brainchild of Neil Heckt (AADE), who owns software international copyrights; He kindly allowed the material posted here, sufficient to homebrewing a similar instrument. AADE produces the L/C Meter IIB commercially, assembled or as a kit.

The version now presented on this page, with a different PIC, is the resulting effort from the radioamateurs of the Turkish group ANTRAK, in Turkey, specially Barbaros Asuroglu, TA2CBA, and was brought to Brazil by Carlos, PY2CSU

 

 

CLICK ON A PHOTO TO BRING UP A HIGHER RESOLUTION ONE

The LC meter with an 1mH choke.

View from below.

 

How it works

What makes the circuit interesting is the method used to measure capacitors and inductors. A comparator IC LM311 is used as an LC oscillator. L is the 68 uH XRF1 inductor and C is C2, the 680 pF capacitor. Hence the frequency is f1 = 740 kHz but there are infinity pairs of LC values producing the same frequency resonance. A capacitor with a precise value, C3 1000 pF, is put in parallel to C2 by means of a relay. The new equivalent capacity is 680 + 1000 = 1680 pF, and the new frequency is f2 = 468 kHz. It is not important the absolute value of these frequencies, what counts is the ratio between the two, which derives from the precision 1000 pF capacitor. The two frequencies are read by the PIC during self calibration at start-up. What matters is that if the 1000 pF capacitor is precise, then there is only one value for L (the 68 uH inductor) and only one value for C (the 680 pF capacitor) which can determine simultaneously these two frequencies, it doesn't matter their absolute values. In this way, the PIC "discovers" the real values of the inductor and 680 pF capacitor and keep them in memory, and now can measure an external L or C. The inductor under test is connected in series with the choke. The capacitor under test is connected in parallel to the 680 pF capacitor.

During self calibration, wiring stray inductance and capacitance are absorbed into the calculations done by the PIC. The switch CH3 "zeros" the display. This way, only the external added inductance or capacitance under test is shown.

 

Building

Bulding the LC meter does not present any special difficulty. Some details are important though:

1 - The switch CH3 is a "normally closed" type.

2 - The capacitor C4 doesn't exist. The precision of the meter depends mostly on C3. I used a polystyrene ("styroflex") 1000 pF 10% unit, in parallel to one disc ceramic 18 pF NP0, and a 30 pF trimmer to get the correct value. To set the trimmer, just a known precision capacitor is needed. I got a 10nF 1% polystyrene capacitor and used it as an external dependable reference, but any value will do, try to find an exemplar of low tolerance, 1% or even better. The LC meter from AADE comes with factory selected capacitors with 0.5% tolerance (1020pF in their model).

For C2 I used a combination of parallel capacitors as I didn't have a 680 pF in my junk box. Here we don't need low tolerance but thermal stability, avoid small unknown disc ceramics, a NP0 ceramic or polystyrene is prefered.

3 - At first I used a small RF choke for XRF1. I noticed the measurings were not stable, the oscillator drifted. Then I tried a toroidal coil wound with 82 turns, wire 30 SWG over an iron-powder Micrometals T50-1 (sold by Amidon, Palomar, Toroid King, etc...). The oscillator was much better! Avoid ferrite, its thermal parameters are terrible! As the Q of the toroidal core was way better than the small choke, I also noted that the range of the LC meter was now more extended. I was able to measure reliably a 10 uF cap!

 

How to put the code into the PIC

"Burning" a PIC is easy. You'll need hardware and software. The hardware is simple circuit, I use RDC Programmer. The software is free. You can use o IC-Prog or WinPic.

 

How to use the LC meter

The switches Lx and Cx must be open when turning the meter on, otherwise the display will show "switch error". Then the microcontroller will start auto-calibration, you will be able to hear the relay actuating. After that the display will show "ready".

To measure a capacitor: press Cx switch, the display will show some pF, that's stray wiring capacity. Press the CH3 ("calibrate" or "zero" switch) briefly. The display should show 0 pF. Now connect the capacitor you want to measure and read its value.

To measure an inductor: Press Lx switch. The display will show "not an inductor", that's because there's an open circuit at the test terminals. Short-circuit the test terminal and press CH3 to zero the display. Now connect the inductor and read its value.

Measuring range:
      1 nH to 150 mH
      .01 pF to 10 uF

Further information: http://www.antrak.org.tr/gazete/111998/barbar.htm

PLEASE NOTE C4 DOESN'T EXIST

29/may/2006 - Some people had problems with erratic functioning or lack of precision and related this to LM311 maker, the circuit seemed to work with some but not all 311. Arnaldo, PY5AQ traced this to a spurious oscillation in the HF region around 12MHz. AADE solved this with a 2.2 pF capacitor from pin 7 to pin 2 of the 311. It is recommended to put this capacitor.

The circuit I used may be found here (note: the pin 5 of the PIC must be grounded):
http://f6bon.albert.free.fr/lcmetre.html

Code file lcm.hex to burn the PIC (click with right mouse button and save locally).

Printed Circuit Board 1, 2, 3

List of material:

D1, D2 - 1N4001, (any one with PIV 50V or higher, 0.5A or more)

LM7805

LM311

PIC16C84 or PIC16F84

C1, C5, C6 - 10uF 10V tantalum

C2 - 680pF

C3+C4 - 1000pF

C7 - doesn't exist

C8, C9 - 22pF

C10 a C22 - don't exist

C23, C24 - 100nF (0.1uF)

C25, C26 - 470uF 16V

Cx1 - 10nF

Cx2 - 10 uF 16V

R1, R3, R6- 100k 1%

R2 - 1k 1%

R4 - 47k

R5 - 10k trim-pot

CH1, CH2 - 2 DPDT

CH3 - normally closed

Display - 1 line, 16 characters 

Xformer sec. 9+9V 200mA or more
XRF1 - 68 uH inductor
FU1 - fuse 0.25A
Relay - 12V SPDT

Similar LC meters links: Found a link not listed here? Please help me keep this list a comprehensive source of information free for all! Mail me: py2wm (at) arrl.net thanks!

http://www.aade.com/LCinst/lcm2b.htm

http://www.antrak.org.tr/gazete/111998/barbar.htm

http://f6bon.albert.free.fr/lcmetre.html

http://veron-meppel.atvrepeater.com/html/zelfbouw/lc-meter/lc_meter.htm

http://users.cableaz.com/~cappels/dproj/lgm/lgm.html

http://utenti.lycos.it/ik0gmm/resume.html

http://www.cqham.ru/lcmeter2.htm

http://www.hw.cz/constrc/lc_metr/

http://www.df3dcb.de/Elektronik/LC-Meter/lc-meter.html

http://www.sprut.de/electronic/pic/projekte/lcmeter/lcmeter.htm

http://ironbark.bendigo.latrobe.edu.au/~rice/lc/

http://www.oz5vf.dk/byggeprojekter/lc-meter/lc-meter.html

http://www.hw.cz/constrc/lc_metr/

http://xavier.fenard.free.fr/LCMeter.htm

http://www.qsl.net/iz7ath/web/02_brew/21_LCMeter01/

http://www.geocities.com/ttarsorg/contributors/homebrew-lc-meter-2.pdf

http://perso.wanadoo.fr/f6gog-web/files/brew.htm

http://www.touchinglittlelives.org/meter/

http://www.digital-measure.com

http://electronics-diy.com/lc_meter.php

http://ironbark.bendigo.latrobe.edu.au/~rice/lc/index2.html only a PIC, no LM311

http://members.optusnet.com.au/frankwinter/CLMeterB_Schematic.pdf

http://website.leidenuniv.nl/~kranenburgfj/LC%20Meter/lc-meter_project.htm

http://www.pi4zlb.nl/Zelfbouw/LC-meter.html

http://elm-chan.org/works/cmc/report.html capacitance meter using an ATMEL AVR AT90S2313

http://homepages.paradise.net.nz/peterfr2/lcmeter.html

http://www.amqrp.org/kits/elsie/ output results in Morse code!

http://home.ict.nl/~fredkrom/pe0fko/LCMeter/ using an ATMEL AVR AT90S2313

 

home