Very Accurate LC Meter based on PIC16F628A using pic microcontroller

Accurate LC Meter Part’s List:
1x 16×2 LCD Display with Green / Blue Backlight
1x PIC16F628A Programmed Microcontroller
1x LM311 IC

1x Accurate LC Meter PCB with red solder mask
1x Enclosure
1x Gold Plated Machined 18 DIP IC Socket
1x Gold Plated Machined 8 DIP IC Socket
1x L/C Pushbutton Switch with Black Cap
1x Tactile momentary reset switch with Black Cap
1x Gold Plated 16-PIN LCD Female Header
1x Gold Plated 16-PIN LCD Male Header
1x Gold Plated 2-PIN Header
2x Gold Plated 1-PIN Header
1x 4.000 MHz Crystal
1x High Precision 82uH Inductor
1x 5V Ceramic Reed Relay
1x LM7805 Regulator
1x 10K LCD Contrast Trimmer
2x 1000pF High Precision WIMA Capacitor
1x 100nF High Quality WIMA Capacitor
2x 10pF High Stability Capacitor
2x 10uF Panasonic Capacitor
1x 10 1% Metal Film Resistor
1x 1K 1% Metal Film Resistor
2x 6.8K 1% Metal Film Resistor
1x 47K 1% Metal Film Resistor
3x 100K 1% Metal Film Resistor
  Accurate LC Meter’s Technical Specifications:
Voltage Supply: 6 – 16V
Accuracy: 1%
Full Automatic Ranging
Inductance Resolution: 10nH

Capacitance Resolution: 0.1pF
LC Meter’s Inductance Measurement Ranges:
– 10nH – 1000nH
– 1uH – 1000uH
– 1mH – 100mHLC Meter’s Capacitance Measurement Ranges:
– 0.1pF – 1000pF
– 1nF – 900nF

Very Accurate LC Meter based on PIC16F628AAbout Accurate LC Meter


This is one of the most accurate and simplest LC inductance / capacitance Meters that one can find, yet one that you can easily build yourself. This LC Meter allows to measure incredibly small inductances starting from 10nH to 1000nH, 1uH to 1000uH, 1mH to 100mH and capacitance from 0.1pF up to 900nF. LC Meter’s circuit uses an auto ranging system so that way you do not need to spend time selecting ranges manually. Another neat function is reset switch that will reset the initial inductance / capacitance, making sure that the final readings of the LC Meter are as accurate as possible.

Special Edition Accurate LC Meter Kit


 

Special Edition LC Meter Kit includes top notch high precision components that are only found in premium quality kits. It includes high quality double-sided printed circuit board (PCB) with red solder mask and pre-soldered tracks for easier soldering, LCD display with yellow-green LED backlight, programmed PIC16F628A microcontroller chip, high precision capacitors and inductor, 1% Metal Film resistors, Machined IC Sockets, gold plated header pins, LCD header connectors and all the other components that are needed to build a premium quality kit. Thanks to the use of LCD connectors LCD display can be detached from the main PCB board at any time even after the kit has been assembled. Special Edition Accurate LC Meter is designed for professionals that require unprecedented measurement accuracy and offers great value at low cost.

How does LC Meter Work?


To be able to determine the value of an unknown inductor / capacitor we can use the frequency formula given below.

LC Meter Frequency Formula

Note that there are three variables that we can work with; f, L and C (f represents a frequency, L inductance and C capacitance). If we know the values of the two variables we may calculate the value of the third variable.

Lets say we want to determine the value of an unknown inductor with X inductance. We plug X inductance into the formula and we also use value of a known capacitor. Using this data we can calculate the frequency. Once we know the frequency we can use the power of the algebra and rewrite the above formula to solve for L (inductance). This time we will use the calculated frequency and a value of a known capacitor to calculate the inductance.

Isn’t this amazing? We just calculated the value of unknown inductor, and we may use the same technique to solve for the unknown capacitance and even frequency.

Applying the Theory to LC Meter’s Hardware


Now let’s use the above theory and apply it to electronics. The LC Meter uses a popular LM311 IC that that functions as a frequency generator and this is exactly what we need. If we want to calculate the value of an unknown inductor we use a known Ccal 1000pF capacitor and the value of an unknown inductor. LM311 will generate a frequency that we can measure with a frequency meter. Once we have this information we can use the frequency formula to calculate the inductance.

The same thing can be done for calculating the value of a unknown capacitor. This time we don’t know the value a capacitor so instead we use the value of a known inductor to calculate the frequency. Once we have that information we apply the formula to determine the capacitance.

All this sounds great, however if we want to determine the value of a lot of inductors / capacitors then this may become a very time consuming process. Sure, we can write a computer program to do all these calculations, but what if we don’t have an access to a computer or a frequency meter?

Very Accurate LC Meter based on PIC16F628AThat’s were PIC16F628A microcontroller comes handy. PIC16F628A is like a small computer that can execute HEX programs that are written using an assembly language. PIC16F628A is a very flexible microcontroller because it has PINs which can be configured as inputs and outputs. Besides that, PIC16F628A IC requires very minimal number of external components like 4.000MHz crystal / resonator and a few resistors. Before PIC16F628A microcontroller can be used it has to be programmed with a HEX code which has to be sent from the computer. All Accurate LC Meter kits already come with microcontroller that is already programmed and ready to be used.

In the next step we use the frequency generated by LM311 IC and pass it on to PIC 16F628A’s PIN 17. We designate this PIN as an input, as well as all other PINs that are directly connected to switches. User can use these inputs to tell the microcontroller to execute specified set of instructions or perform calculations.

Once the microcontroller will calculate the unknown inductance or capacitance it will use PINs that are designated as outputs and pass the results onto the 16 character green backlighted LCD display.

LC Meter’s Switches


Reset Switch – Resets capacitance / inductance readings
SW2 Switch – Capacitance / Inductance switch
Grounding PIC16F628A PIN12 displays the initial frequency of the LM311 oscillator which should be around 550KHz. This is usefull for testing LM311 oscillator.

 

For more detail: Very Accurate LC Meter based on PIC16F628A

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter