Вы находитесь на странице: 1из 3

Digital LC Meter Version 2 An "improved" inductance / capacitance meter by Phil Rice VK3BHR Actually, it works much the same

as the original.

The Circuit

PC Board Board artwork, "ready for ironing on" Board component layout & and better copy of Circuit diagram The Code Source code, excluding floating point +-/* Assembled Hex code (complete, ready to work!) Calibration Instructions. Visit http://www.marc.org.au Click on the link to LC Meter on the left side of the page (Under the Projects heading). http://www.marc.org.au/index.html M.A.R.C - VK3CMZ Midland Amateur Radio Club Inc. - Reg. No. A0018595R VK3BHR LC Meter Project - Mk.II

This page was last updated Sunday, January 20, 2008 This project is based on the Surprisingly Accurate LC Meter article that appeared in the April 2004 issue of Amateur Radio. However, Phil Rice, VK3BHR, has re-visited his project and allowed the Club to use his updated version. Phil, a Bendigo amateur, got the motivation for his original project after producing a PIC-based frequency meter in the September 2002 issue of Amateur Radio. He considered combining an oscillator with a cut down version of the frequency meter to make a direct reading inductance/capacitance meter with an LCD display. A few calculations convinced him that, although challenging, it would be possible. A little bit of help from Microchip's 24-bit Floating Point routines and the baby was born. Phil has changed the PIC to a 16F628. This PIC contains 2 comparators and this means that the LM311 of the original circuit is no longer required. There are a few other minor changes and this time a circuit board pattern is also available. You can download the schematic and parts overlay for comparison purposes as I get other details ready for Club members to assist in building. Note - The 4.7k resistor attached to Pin 3 of the PIC should be connected to VCC and not ground as shown on the diagram. The board pattern is correct. You can now also download the HEX program file (zipped) for programming the PIC. If it doesn't download, here is an alternative link to Phil Rice's site. General Assembly Advice Although assembly should be pretty straight forward from the overlay above (or the download), here are some general things to keep in mind. There are 7 wire links on the board (sorry 'bout that). Install these first as some of them are under the PIC or the relay. Two of the links (near the display) share a common hole. Use a socket for the PIC. Jaycar's "cheap" ones are perfectly OK. Use the expensive machined pin ones only if you want to make it hard to remove the PIC and maybe break the pins off. Two of the capacitors on the board (in the oscillator) are tantalum electro's. Check 'em twice. The two 1000pF capacitors should be MKT types. Polystyrene are better, but the board may be a bit cramped for 'em. The recommended display has a backlight available. A limiting resistor has not been specified. You will need to select one to limit the current to maybe 90mA. A backlight is probably more than a little overkill in a project like this - especially if it is battery powered. The connections between the pc board and display are up to you. Use a plug and socket if you have them. It is perfectly OK to use wires. Just don't flex them too much. An alternative is a SIL Header Terminal strip but you may wish to solder to the board first. The specified LCD has solder pads on both board sides, the pcb has not. Check your box arrangement first. If you use this method, the LCD and pcb become one module otherwise they will have to be mounted separately. Keep the wiring around the L/C switch short, direct and reasonably rigid. The meter compensates for most stray capacitances and inductances EXCEPT for capacitance from the "cold" end of the inductor to ground. The reed relay may be installed either way round. The 4MHz crystal should be 4.000MHz, not 4.1, 4.3 or some nearby value. Any crystal marked as 4.0MHz (or sold as a 4MHz crystal) will be close enough, ie., accuracy of +/- 0.01% is OK and doesn't need trimming. A suitable case to house the project is the Jaycar ABS Console Box - Cat: HB-6090. Details of mounting in this case will be presented here shortly.

A zero/reset, n/o, momentary contact pushbutton switch has not been included in the parts. Neither has an On/Off switch. Add them at your own discretion. Click on the image at left for a larger view of how the pcb and lcd were mounted inside the box. The LCD bracket at the top is made from two right-angle plastic pieces with the LCD sandwiched between. It is expected that the 9V battery will rest in the LCD recess, wrapped in foam rubber. Click on this image for a larger view of the finished meter - except for the panel label and the soon-to-bemodified escutcheon plate. The switches are: Zero/Reset (left), Inductance/Capacitance Selection (centre) and On/Off (right). Test & Calibration 1. Check that you have put all the components in the right places. 2. Check that you have soldered every lead. 3. Double check the PIC orientation, the diode and the 7805. 4. Don't forget - the PIC (as purchased) isn't programmed. You gotta load the LC Meter code into it before it will work. Phil VK3BHR is happy to help you do this. 5. Apply power carefully. If possible, use a variable regulated supply for the first try. Measure the supply current while gradually increasing the voltage. The current should be below 20mA. The prototype drew just 8mA. If you see nothing on the display and everything else checks out OK, try adjusting the Contrast trimpot. If it is set too far off, you will see nothing. The display should briefly show the word Calibrating, then C=0.0pF (or some other capacitance up to +/- 10pF ). 6. Allow several minutes "warm-up", then press the "zero" button to force a re-calibration. The display should now show C=0.0pF. 7. Connect your "standard" capacitor. The LC meter should read somewhere near its value (with up to +/- 10% error). 8. To raise the indicated capacitance, join the links marked "4" on the diagram below. To lower the indicated capacitance, join the links marked "3" on the diagram below. When the indicated value is "close enough" to the standard, remove the link. The PIC will remember the calibration. You can repeat this as many times as you like (up to 10,000,000 times I think before you wear out the PIC). 9. If the meter misbehaves, you can use the links "1" & "2" to check the oscillator frequency. Apply link "2" to check the free running frequency "F1" of the oscillator. This should be shown as 00050000 +/- 10%. If this reading is too high (near 00065535), the meter may go into "numerical overflow" and give you an error message. If the reading is too low (say below 00040000), you will lose some accuracy. Apply link "1" to check the "calibration" frequency "F2". This should be near 71% +/- 5% of the "F1" reading that you get by applying link "2". 10. Experts may like to adjust the inductor value to raise F1 to near 00060000 to obtain maximum resolution from the meter. An "L" value of 82uH is preferred instead of the specified 100uH (but you can't buy 82uH inductors in Bendigo). 11. If the meter shows near 00000000 for F1 and or F2, then recheck the wiring around the L/C switch, 'cos it sounds like your oscillator has stopped. 12. The Inductance measuring function is automatically calibrated when you calibrate the capacitance function. All the testing required is to check that the meter can be "zeroed" with the terminals shorted together. If you have serious problems with your meter, then ask Phil, VK3BHR! He wants to see 'em all working properly.

Test Links

1. 2. 3. 4.

Check F2 Check F1 Lower C Raise C

Вам также может понравиться