LC METER

Tuesday 18 June 2013
LC Meter

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



 

http://py2wm.qsl.br/LC_meter/LC_meter.jpg 
http://py2wm.qsl.br/LC_meter/LCmeter_bottom.jpg 

 



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.

 

Bulding the LC meter

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.

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

Code file lcm.hex to burn the PIC

copy the code below

:080000008601E1306600850174
:08000800103065003830620081
:080010008B01BF2103308500C4
:080018008614C1218610861434
:08002000C12186108614C121E4
:08002800861002308500DF2183
:080030002830CF210C30CF2154
:080038000630CF21E321861AF6
:080040002428061B24282628B1
:08004800ED211F28E3215730D0
:08005000D4214130D4214930D4
:08005800D4215430D4211930E9
:08006000A000FF30C721A00B36
:080068003128E3214330D421CB
:080070004130D4214C30D421B1
:080078004930D4214230D421AB
:080080005230D4214130D4219B
:08008800CE215430D42149308F
:08009000D4214E30D421473089
:08009800D4210C30840080012A
:0800A000840A841E4F281C2273
:0800A800702206160930A000C9
:0800B000FF30C721A00B582806
:0800B8001C2279224C220612E1
:0800C00055227C234C2210089C
:0800C800A4001108A5001208B4
:0800D000A6001308A70020237D
:0800D8008A30AB007A30AC0065
:0800E000AD01AE01E32279221B
:0800E8004C225522E3224C22B8
:0800F000B230A4006630A50047
:0800F8006030A600B330A70040
:08010000202324088C002508CF
:080108008D0026088E00270877
:080110008F008130CF21861A17
:08011800A228061BA228861B89
:0801200035281C221E08031DF6
:08012800A1287022E3215230EE
:08013000D4214530D4214130F7
:08013800D4214430D4215930D8
:08014000D4212229861EA82803
:08014800061FA828ED21222961
:080150001C221E08031D0829F2
:080158004C22552220238130C6
:08016000AB00AC01AD01AE01E2
:080168007C232408031DBC28C0
:08017000A401A501A601A701ED
:08017800861EFD286722E32228
:080180002408980025089900ED
:0801880026089A0027089B00DD
:080190004C228E30A4001C304B
:08019800A5004030A600A701FC
:0801A0007C23A51BEC286F3045
:0801A800AB006A30AC00E1304D
:0801B000AD008B30AE00E3222C
:0801B8008130AB00AC01AD0188
:0801C000AE0184231808AB0016
:0801C8001908AC001A08AD0093
:0801D0001B08AE00E322F42835
:0801D8001808A4001908A50095
:0801E0001A08A6001B08A70085
:0801E800861FFA281C22702278
:0801F0000822FC280F22232144
:0801F80007295E22E322861FA5
:0802000005291C2270220822CE
:080208000729122223212229FB
:080210009E1C2229E3214E305F
:08021800D4214F30D4215430F1
:08022000D42119224130D42140
:08022800861E1E294E30D42170
:080230002030D421CE214C3016
:08023800D42122292030D42139
:080240004330D4218928A001FC
:080248002408803C0318312951
:080250008430AB002030AC004B
:08025800AD01AE012023A00A54
:0802600024298E30AB001C3094
:08026800AC004030AD00AE0116
:08027000E322CE2282222008C5
:08027800A400E4309D00703089
:080280009C002408031D4D2918
:08028800EB21E921B721B721A8
:08029000CE21861EA429BB212A
:08029800A529A40B5829B72188
:0802A000E921B721BB21CE21A9
:0802A800861EA429BB21A52933
:0802B000A40B6129B721B7215D
:0802B800E921BB21CE21BB218D
:0802C000A529A40B6A29B7214E
:0802C800B721BB21E921CE2181
:0802D000BB21A5296D309D0042
:0802D8006E30061C9C00A40B13
:0802E0008229861A752906180F
:0802E8007C29B721E921B721AF
:0802F000BB21CE21BB21A52991
:0802F800B721B721BB21BB2196
:08030000CE21A429E430061807
:080308009C00A40B9229861A47
:080310005A29061C5A29E921B3
:08031800EB21B721B721CE2132
:08032000BB21A529A40B9F29B4
:08032800861A6329061C6329F3
:08033000E921B721B721BB212F
:08033800CE21BB21A5292030D4
:080340009D00E4309C007529CA
:0803480019221922861EAE29BC
:080350001D08D4214830D4211E
:080358007930B1291C08D42101
:080360004630D4212730D421DE
:080368007330D421192AA60EFE
:080370002608D2210034A70E7B
:080378002708D2210034C12145
:08038000C1210730C7294030FC
:080388009F000130C8299F010C
:080390009E009F0BC9299E0B82
:08039800C9290034C030AC009B
:0803A0008601D7290F3930381E
:0803A800AC0008308600AC0E29
:0803B0002C088500861486105C
:0803B800AC0E2C088500861430
:0803C0008610C3210034013056
:0803C800CF21C1212830CF2113
:0803D000192A2E30D429303027
:0803D800D4295330D421573021
:0803E000D4214930D42154302E
:0803E800D4214330D421483038
:0803F000D4211922CE21453071
:0803F800D4215230D42152300F
:08040000D4214F30D421523009
:08040800D42119221922192A3E
:08041000E321EB21E921EB21BE
:08041800EB21EB21192A4C3005
:08042000D421142A4330D42139
:080428007830D4213D30D421CD
:0804300000342030D421003417
:0804380006086039A000A501CF
:08044000A601A70138309E005F
:08044800CD309F008101282A3C
:0804500001082702031C4A2ADF
:08045800031DA60F302AA50ABE
:08046000A7029F0B272A9E0B47
:08046800282A9E012508031D4E
:080470003E2A2608031D3E2A66
:080478009E14003406086039EF
:0804800020020319452A1E1495
:080488000034A9224C22E322FA
:080490009E0100340000302A37
:080498002408AB002508AC00AC
:0804A0002608AD002708AE009C
:0804A80000341408A40015083B
:0804B000A5001608A6001708BC
:0804B800A70000341008AB009E
:0804C0001108AC001208AD00A8
:0804C8001308AE0000340C081B
:0804D000AB000D08AC000E08A2
:0804D800AD000F08AE00003476
:0804E000240894002508950092
:0804E800260896002708970082
:0804F0000034240890002508E7
:0804F80091002608920027087C
:08050000930000342608AC0052
:080508002708AD0003101030BC
:080510009F00A501A601A7014F
:08051800AD0DAC0DA70DA60D01
:08052000A50D9F0B942A003485
:08052800273084009E222630DA
:0805300084009E2225308400A6
:080538009E228C2A033000070B
:080540009E009E19800030307E
:0805480000079E009E1B8000CD
:0805500000349830A400AF0153
:080558009E012508031DC12AC4
:080560002608A5002708A600EB
:08056800A7019E152508031DE3
:08057000C12A2608A500A6011E
:080578009E111E16250803194F
:08058000DE2A1E08A40203108C
:08058800A51BCB2AA70DA60D4F
:08059000A50DA403C42AAF1F4E
:08059800A5130034A517803003
:0805A000A402A41F0319DE2AC6
:0805A8002408183CA400031014
:0805B000A50CA60CA70CA40B7E
:0805B800D72A0034A501A601B9
:0805C000A701A4010034240886
:0805C800031D2B080319DE2AB4
:0805D00025082C06AF002B08E2
:0805D800A4078030031CF22A85
:0805E000A407F32AA407A517E4
:0805E800AC170310A801A901E2
:0805F000AA0118309E00271C2F
:0805F800072B2E08AA072D08AD
:0806000003182D0FA9072C08B7
:0806080003182C0FA807A80C31
:08061000A90CAA0CA50CA60C14
:08061800A70C03109E0BFB2A46
:08062000A81B172BA50DAA0D64
:08062800A90DA80DA403AF1FEA
:08063000A8132808A500290801
:08063800A6002A08A700003407
:0806400025082C06AF00A517E8
:08064800AC179E012508A80073
:080650002608A9002708AA00F2
:080658002E08AA022D08031C64
:080660002D0FA9022C08031C58
:080668002C0FA802A801A90152
:08067000AA01031C422B031038
:08067800A50CA60CA70CA80CB0
:0806800001309E002B08A402CA
:08068800031C4A2B80301E0701
:08069000A4074D2B80301E076A
:08069800A40718309F00AA0D11
:0806A000A90DA80DA70DA60D80
:0806A800A50D9E0D2E08A7020E
:0806B0002D08031C2D0FA6020A
:0806B8002C08031C2C0FA50205
:0806C0002C0D9E041E1C662B8C
:0806C8002A14712B2E08A7076C
:0806D0002D0803182D0FA607E9
:0806D8002C0803182C0AA507E9
:0806E0002A109F0B4F2BAF1FE6
:0806E800A8132808A500290849
:0806F000A6002A08A70000344F
:0806F8002B08031D822B2C08C6
:08070000031900348030AC063F
:0807080025082C069E002408C0
:080710002B02031CA32B2B0894
:08071800AA002408AB002A0826
:08072000A4002C08AA00250822
:08072800AC002A08A5002D0811
:08073000AA002608AD002A080A
:08073800A6002E08AA00270804
:08074000AE002A08A7002508FD
:08074800AF00A517AC172C0847
:08075000A8002D08A9002E08E5
:08075800AA002B082402AB00EB
:080760000319CF2B08302B0216
:08076800031CC62BAB00AA0D17
:080770002908AA002808A900CD
:08077800A80108302B02031C4C
:08078000C62BAB00AA0D2908ED
:08078800AA00A9012B080319C6
:08079000CF2B0310A80CA90CEB
:08079800AA0CAB0BC92B9E1F3C
:0807A000D92BA809A909AA0937
:0807A800AA0A0319A90A0319AA
:0807B000A80A2A08A70729087E
:0807B8000318290FA607280809
:0807C0000318280FA5079E1B7A
:0807C800EC2B031CCB2AA50C4D
:0807D000A60CA70CA40ACB2A19
:0807D8000318AC2AA509A609CB
:0807E000A709A70A0319A60AE4
:0807E8000319A50A8030AF06D9
:0207F000AC2A31
:00000001FF

 

 

 

 

Printed Circuit Board 

 

 

 

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 - 220 or 470uF 16V
Cx1 - 100nF
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

 

 

No comments:

Post a Comment