Silicon ChipLC Meter Mk3 - November 2023 SILICON CHIP
  1. Outer Front Cover
  2. Contents
  3. Subscriptions: PE Subscription
  4. Subscriptions
  5. Back Issues: Hare & Forbes Machineryhouse
  6. Publisher's Letter: Upping your electronics housing game
  7. Feature: Where’s my pneumatic car? by Max the Magnificent
  8. Feature: Net Work by Alan Winstanley
  9. Feature: The Fox Report by Barry Fox
  10. Project: LC Meter Mk3 by Charles Kosina
  11. Project: DC Supply Filter for vehicles by John Clarke
  12. Project: PM (particulate matter) ‘Dust’ Sensors by Jim Rowe
  13. Project: Anodising Aluminium at home by Phil Prosser
  14. Feature: Arduino Bootcamp – Part 11 by Max’s Cool Beans
  15. Feature: Circuit Surgery by Ian Bell
  16. Feature: AUDIO OUT by Jake Rothman
  17. Project: Electronic Building Blocks by Julian Edgar
  18. PCB Order Form
  19. Advertising Index

This is only a preview of the November 2023 issue of Practical Electronics.

You can view 0 of the 72 pages in the full issue.

Articles in this series:
  • (November 2020)
  • Techno Talk (December 2020)
  • Techno Talk (January 2021)
  • Techno Talk (February 2021)
  • Techno Talk (March 2021)
  • Techno Talk (April 2021)
  • Techno Talk (May 2021)
  • Techno Talk (June 2021)
  • Techno Talk (July 2021)
  • Techno Talk (August 2021)
  • Techno Talk (September 2021)
  • Techno Talk (October 2021)
  • Techno Talk (November 2021)
  • Techno Talk (December 2021)
  • Communing with nature (January 2022)
  • Should we be worried? (February 2022)
  • How resilient is your lifeline? (March 2022)
  • Go eco, get ethical! (April 2022)
  • From nano to bio (May 2022)
  • Positivity follows the gloom (June 2022)
  • Mixed menu (July 2022)
  • Time for a total rethink? (August 2022)
  • What’s in a name? (September 2022)
  • Forget leaves on the line! (October 2022)
  • Giant Boost for Batteries (December 2022)
  • Raudive Voices Revisited (January 2023)
  • A thousand words (February 2023)
  • It’s handover time (March 2023)
  • AI, Robots, Horticulture and Agriculture (April 2023)
  • Prophecy can be perplexing (May 2023)
  • Technology comes in different shapes and sizes (June 2023)
  • AI and robots – what could possibly go wrong? (July 2023)
  • How long until we’re all out of work? (August 2023)
  • We both have truths, are mine the same as yours? (September 2023)
  • Holy Spheres, Batman! (October 2023)
  • Where’s my pneumatic car? (November 2023)
  • Good grief! (December 2023)
  • Cheeky chiplets (January 2024)
  • Cheeky chiplets (February 2024)
  • The Wibbly-Wobbly World of Quantum (March 2024)
  • Techno Talk - Wait! What? Really? (April 2024)
  • Techno Talk - One step closer to a dystopian abyss? (May 2024)
  • Techno Talk - Program that! (June 2024)
  • Techno Talk (July 2024)
  • Techno Talk - That makes so much sense! (August 2024)
  • Techno Talk - I don’t want to be a Norbert... (September 2024)
  • Techno Talk - Sticking the landing (October 2024)
  • Techno Talk (November 2024)
  • Techno Talk (December 2024)
  • Techno Talk (January 2025)
  • Techno Talk (February 2025)
  • Techno Talk (March 2025)
  • Techno Talk (April 2025)
  • Techno Talk (May 2025)
  • Techno Talk (June 2025)
Items relevant to "Stewart of Reading":
  • Bookshelf Speaker Passive Crossover PCB [01101201] (AUD $10.00)
  • Bookshelf Speaker Subwoofer Active Crossover PCB [01101202] (AUD $7.50)
  • Bookshelf Speaker Passive and Active Crossover PCB patterns (PDF download) [01101201-2] (Free)
  • Bookshelf Speaker System timber and metal cutting diagrams (PDF download) (Panel Artwork, Free)
Articles in this series:
  • Easy-to-build Bookshelf Speaker System (January 2020)
  • Building the new “bookshelf” stereo speakers, Pt 2 (February 2020)
  • Building Subwoofers for our new “Bookshelf” Speakers (March 2020)
  • Stewart of Reading (October 2023)
  • Stewart of Reading (November 2023)
  • ETI BUNDLE (December 2023)
  • Active Subwoofer For Hi-Fi at Home (January 2024)
  • Active Subwoofer For Hi-Fi at Home (February 2024)
Capacitance Range: 1pF to 1200pF+ with 0.1pF resolution Inductance Range: 100nH to 2500μH+ with 10nH resolution below 10μH Accuracy: typically better than 2% Power supply: 3 × AA cells, draws ~35mA during operation Battery Life: around 72 hours with fresh alkaline AA batteries; operates down to 0.6V per cell Display: 0.96-inch (24mm diagonal) OLED screen 3 LC Meter Mk This LC (inductance/capacitance) meter is a modern version of an old design – the Tektronix T130 from the 1950s. It measures a wide range of capacitances and inductances, from less than 1pF to more than 1.2nF, and from less than 100nH to more than 2.5mH. It displays the results on an OLED screen. I was inspired to design this modern LC Meter when I read about the 1954 Tektronix Type 130 LC Meter in a series of articles by Alan Hampel. It was impressive engineering for the time, using all-analogue techniques. While many cheap LC meters are available today, their main drawback is not being able to measure low values. RF filters often require accurate values less than 10µH or 10pF. The Tektronix design had a reference oscillator at 140kHz (Fref). The measurement oscillator (Ftest) was initially tuned to the same frequency. Then, by placing a capr across the tuned circuit, or an inductor in series with the inductor in the oscillator, the test oscillator frequency dropped. Mixing the two signals gave signal components at frequencies Fref + Ftest and Fref − Ftest. Selecting the latter using a low-pass filter, the T-130 used clever analogue techniques to convert this to a capacitance or inductance value shown on a moving coil meter. Their design gave accurate measurements from 1–300pF or 1-300µH. It was all done using valves; transistors were not available back then. My first LC Meter design emulated much of this principle and worked reasonably well, but that version had some deficiencies. It used two variable capacitors, a coarse and fine adjustment, to set the test frequency to the exact value before a capacitor or inductor was measured. This was time-­consuming and fiddly, so I added an ‘automatic zero’ on power-up. 18 Also, its construction was complicated, using a large LCD, so I changed it to use the same OLED screen that I used for my AM-FM DDS Signal Generator (PE, May 2023) and 0-110dB RF Attenuator (PE, July 2022). The OLED screen is cheaper and also consumes a lot less power. That allows the LC Meter to run for many hours on three AA cells and operate down to a total battery voltage of 1.8V (0.6V per cell) thanks to the use of a step-up regulator. That will save on battery costs. After making those changes, I had a LC Meter that worked well, but I felt it was still too complicated and used too many parts, some difficult to source. The auto-zero function took far too long, and the accuracy and resolution were worse than I would like. Calibration was problematic as well. I solved all those problems in my final design. It somewhat moves away from the original Tektronix concept by not starting at a particular frequency. The operating frequency is now of secondary importance as it gets cancelled out in the calculations. It is also self-calibrating, yielding an accuracy of about 2% over the whole capacitance range. The capacitance range is now 1pF to more than 1200pF with a resolution of 0.1pF, while the inductance range is 100nH to more than 2500μH with a resolution of 10nH below 10µH. You might notice that this new auto-calibrating concept makes it By Charles Kosina somewhat similar in operation to our June 2017 Arduino-based Digital LC Meter, which was based on an even earlier High-accuracy Digital LC Meter. However, those designs use a comparator in the oscillator and that causes some problems and has limitations. As you will see when we get to the circuit, the implementation of this LC Meter is somewhat different. It uses a separate inverter-based oscillator and has self-calibration features to provide better accuracy over a wide range of component values. Parts availability Sourcing components is always a problem these days, but I went to quite a bit of effort to ensure that everything was available from element14 at the time of writing. There are a few parts that are available from multiple AliExpress sellers at very low prices. However, for some of these, you may have to buy multiple quantities. Still, as the prices are so low, you will end up with plenty of spares. Performance One primary object of this design was to produce accurate readings for lowvalue inductors. VHF filters generally require inductors in the sub-1µH (ie, nanohenry) range. I have an ancient Q-Meter, a Meguro MQ-160. The design dates back to the 1940s; the one I have was made in 1969. It still works quite well, as long as the valves inside keep functioning. Practical Electronics | November | 2023 The MQ-160 came with a box of 14 calibration inductors from 1µH to 25mH. They are all large air-cored coils and are really works of art. Their accuracy would not drift with time, so they continue to be a good standard. Using individual and series combinations of my standard Meguro inductors, I obtained the accuracy figures shown in Table 1. These assume my test coils are accurate, as there is no specific information in the Meguro manual about their accuracy. The accuracy for capacitor values depends on how close the 1% calibration capacitors are, and can therefore be assumed to be no worse than ±2% (and probably closer to ±1%). At the measurement frequency of 600kHz or less, ferrite-cored inductors all read low as the ferrite permeability is reduced at lower frequencies. For example, a nominal 68µH inductor measured 58.5µH at 572kHz, but a 1µH inductor fared much better and measured 0.89µH at 630kHz. Air-cored inductor measurements will not vary significantly with frequency. Circuit details The LC Meter circuit is shown in Fig.1. It is based on a Franklin oscillator comprising two 74HC04 inverters, IC2a and IC2b. The 1MW resistor across the first inverter puts it into a linear mode, making it act like a very high gain inverting Table 1 – inductance accuracy Meguro inductor Measured value 1.0μH 0.98μH 2.5μH 2.53μH 5.0μH 4.88μH  7.5μH 7.35μH 10μH 9.94μH  15μH 14.2μH 25μH 24.4μH  35μH 34.6μH 50μH 49.8μH  75μH 75.1μH 100μH 99.8μH  150μH 148μH 250μH 254μH  350μH 357μH 500μH 492μH  750μH 750μH  1000μH 1009μH 1250μH 1250μH 1500μH 1484μH 2500μH 2498μH  made by connecting two coils in series (eg, 150μH = 100μH in series with 50μH) Practical Electronics | November | 2023 amplifier. The second inverter provides the phase shift, which feeds back into the tuned circuit. With the nominal onboard 330µH inductor (L1) and 220pF capacitor, the oscillation frequency is about 630kHz. It has a large operating range and will still oscillate reliably with more than 1200pF added across the tuned circuit or up to 2.5mH in series. One advantage of this arrangement is that the output of IC2b swings between the supply rails. This means that it does not need an additional fast op-amp to boost the signal into a range that a microcontroller can easily measure. Four transistors, Q1-Q4, switch additional capacitors across the tuned circuit. These capacitors are 1% tolerance types, and by using parallel combinations, we get ten calibration points. The BFR92P transistors used here have very low collector-to-base and collector-to-emitter capacitances, typically 0.4pF and 0.23pF, respectively, so they will not detract from the accuracy. The base resistors for these transistors are 3.3kW, and with 5V applied, they drive the transistors well into saturation, providing low-impedance ground connections for the capacitors. We need to provide a ‘zero reference’ point for inductance measurement. This is done by connecting L1 to ground and measuring the oscillator frequency. My initial design used an NPN transistor for this, but once the inductance under test got close to 1000µH, the voltage across the switched-off transistor was such that its reverse-biased junction conducted and clipped the waveform. The solution was to substitute a small relay (RLY1). That allows the LC Meter to measure up to at least 2.5mH. DPDT switch S2 selects between capacitance (up) and inductance (down) measurements. For capacitance measurements, the DUT is placed across the tuned circuit, while the DUT is placed in series for inductance measurements. In both cases, the oscillation frequency will be reduced. The oscillation frequency is too high for the microcontroller to measure accurately, so a 74HC161 binary counter is used to reduce it to less than 100kHz. In the initial design stages, I was not sure how much division would be needed, so header JP1 gives the option to divide by 2, 4, 8 or 16. In the final design, a division ratio of eight is used. Microcontroller and display The processor used is the ATMega328P on the Arduino Nano module (MOD1). I chose it as it is cheap and readily available from multiple sources, including eBay and AliExpress. It also simplifies the construction substantially. Its INT0 interrupt pin (pin 20) is used to count the frequency from the oscillator. For capacitance measurements, a 250ms window is used to count pulses. However, this is increased to two seconds for inductance measurements to obtain enough resolution down to 10nH. The OLED screen is controlled over a two-wire I2C (inter-integrated circuit) serial interface. Because this uses open-drain style signalling, no voltage translation is needed, just 15kW pull-up resistors to +3.3V. These values are higher than the usual 4.7kW to reduce power consumption further. With the short tracks, there is no problem with noise, despite the lower bias current. One analogue input on the micro is used to measure the battery voltage, while the other is used to sense the three-position function switch, S1. Momentary switch S3 is used for starting capacitance calibration or for inductance measurement. There is an optional output for a buzzer at CON4. This gives a beep when calibration is completed. As this is its only function, it may be safely omitted. The series diode is a safety feature as the connector is the same as for the battery input. Without the diode, if the battery was connected to the wrong socket, it could destroy the microcontroller. I always have a simplified RS-232 serial connection on my boards for debugging the firmware. In this case, the three unused 74HC04 inverters are used, with two in parallel for the TX pin to provide sufficient drive strength. The serial interface format is 38400,8,1,n and lots of debug information is transmitted, which I have left in, as it does not slow down the operation. Power supply REG1 is an MCP1661 or MP1541 step-up voltage converter. It can operate with an input voltage below 2V and still provide the required 5V output. While two cells will provide enough voltage, by using 3 AA cells, the minimum voltage is less than 0.7V per cell. You can use up all those cells which no longer work in a mouse or other equipment to power the LC Meter, saving a little money. REG1 works by pulling its switch pin (pin 1) low, in pulses at 500kHz. When this pin goes low, current flows from the battery through inductor L2, to ground and back to the battery, charging up L2’s magnetic field. When the transistor pulling pin 1 low is switched off, current flows from the battery through L2 and schottky 19 Reproduced by arrangement with SILICON CHIP magazine 2023. www.siliconchip.com.au Improved LC Meter Mk3 Fig.1: the primary oscillator is built from inverters IC2a and IC2b. Its frequency is affected by an external capacitor/ inductor at CON1, or onboard calibration capacitors switched by transistors Q1-Q4. Inductor L1 is used for measuring inductances, switched to ground by RLY1. The Arduino Nano controls and monitors the oscillator, computes the values and displays them on a small OLED screen. diode D4 into the 5V supply rail, powering the circuit and charging up the filter and bypass capacitors. As L2’s magnetic field collapses, the voltage 20 at the anode of D4 rises above the battery voltage. By controlling the duty cycle of the pulses, REG1 maintains the voltage at its Vfb (feedback) pin close to 1.227V. The division ratio of the 390kW and 120kW resistors causes this to be effectively multiplied at the top of the divider. This Practical Electronics | November | 2023 LC METER MK3 CAL / START C OPTION 1 L NORMAL OPTION 2 The prototype lacks the relay and associated components, but otherwise is very similar to the final design. ON Fig.8: the front panel label can be downloaded from the November 2023 page of the PE website at: https://bit.ly/pe-downloads and printed on photo paper. There are two versions available, one with the OPTION switch at lower left (shown here) and one without it. Measurement calculations The frequency of a tuned circuit is given by C = 1/ω2L and L = 1/ω2C, where ω = 2πf. For C in pF, L in µH and f in MHz, this simplifies to the useful equations C = 25330/f2L and L = 25330/f2C. If we know the inductance value by measuring the frequency, we can calculate the capacitance, but this method has two problems. First, an accurate inductor is not available; the best we can get is ±5%. Secondly, suitable inductors are on a ferrite core and, as mentioned earlier, permeability varies substantially with frequency. It is impractical to use an aircored inductor as it would be too large. This is where the calibration technique results in accurate measurement. On power-up, the oscillator frequency is measured first with transistors Q1 to Q4 off. This gives the frequency with no external capacitance. Then by switching on the transistors in different combinations, we get calibration points of 100pF, 220pF, 320pF, 470pF, 690pF, 790pF, 940pF, 1040pF, 1160pF and 1260pF. Fig.2 shows the curve derived from these calibration points with the frequency offset from 0pF. It is possible to describe this curve with a polynomial equation, but a third-order polynomial is needed to get good accuracy. This is of the form C(pF) = af3 + bf2 + cf + d (d = 0). The first cubed term (f3) results in huge numbers, well beyond 32-bit integer calculations. There are ways of getting around this by cleverly sequencing the calculations, but I chose a simpler method. There is not much of a curve between individual calibration points, and a linear interpolation gives acceptable accuracy. Capacitance readings are taken continuously at about half-second intervals. The resolution is 0.1pF for values below 200pF. Above this, only the integral part of the value is shown, as the fraction is unlikely to have significant accuracy. Fig.2: plot of oscillator frequency shift vs external capacitance. Reading a frequency shift off this plot will tell you the connected capacitor value. This can be accurately approximated with a third-order polynomial, but linear interpolation between the points shown is close enough for our needs. Fig.3: the inductance vs frequency shift curve is similar to the capacitance curve shown in Fig.2, but it needs second-order curves over most of its segments to give a good enough approximation. The exception is the 0-10μH section, which is close enough to being linear. Fig.4: a close-up of the 0-10μH section of Fig.3, comparing the actual curve to a linear approximation. The resulting errors are minor in comparison to other sources of uncertainty. results in an output of 1.227V × (390kW + 120kW) / 120kW = 5.215V. Practical Electronics | November | 2023 Inductance measurements Inductance measurements are made a bit differently. We don’t have the privilege of built-in calibration inductors, as any accurate types would have to be air-cored and far too large. 21 I measured the oscillator frequency with each of the calibration inductors that came with my Meguro Q-Meter, up to 2500µH, which is close to the practical limit of the LC Meter. This gave me a calibration curve similar to the one used for capacitance. This curve may also be approximated by a third-­order polynomial L = 20-12 f3 − 50-8 f2 + 0.0045 f. With C in pF, L in µH and f in MHz Again, this makes 32-bit integer computation difficult, so I split it into several segments, some approximated by quadratics, as shown in Fig.3. I’ve included a spreadsheet in the download package for this project with the relevant calculations, all available from the November 2023 page of the PE website at: https://bit.ly/pe-downloads The 0-10µH section of the curve is so close to a straight line that a linear equation is very accurate (Fig.4). From this, we can estimate the likely resolution for low inductance values. To get the required resolution, the oscillator must be stable in the measurement period of four seconds. The measurement readout is stable in practice, with the 10nH digit remaining constant between measurements. Note that this calibration curve depends on the actual inductance value of inductor L1, so we have to correct the difference. This requires a measure of the value of L1, which is performed as described in the ‘Onboard inductor value calculation’ panel. By comparing the measured value with the one I used in my prototype, the offset frequency readings are modified for better accuracy. Firmware The firmware is written in BASCOM (BASIC for AVRs), which is easy to implement and easy to follow. It occupies just over half of the 32KB flash memory on the ATmega328 processor. If you want to know more about it, download and check the source code. Case preparation The recommended enclosure is from Ritec (Altronics Cat H0324) and includes a clear lid. It has a slightly indented clear window measuring 98 × 76 mm. The drilling measurements shown in Fig.5 relate to this window. The transparent top is relatively brittle, so be careful if using a centre punch as it can crack the plastic. Likewise, use a low-speed drill to prevent damage to the top. A step drill gives the cleanest and most accurate results. As these holes have to be very accurate, first locate the bottom-left hole 16mm from the window edges. Drill this to 3mm and attach the blank PCB with an M3 screw and nut. Position 22 the PCB to be precisely square, then drill the other holes in the middle of the switches. Alternatively, use Fig.5 as a template to mark the four holes that need to be drilled, then enlarge the holes to 6.35mm (1/4in) or 6.5mm. The window has a moulding ‘bump’ in the centre that interferes with the OLED behind it. Drill this out as well, to 6.35mm or 6.5mm. Construction The LC Meter is built on a 91.5 × 63.5mm double-sided PCB coded CSE220503C, available from the PE PCB Service. Components are mounted on both sides of the board, with the connectors and Arduino Nano module on the back, as shown in the overlay diagrams, Figs.6 and 7. The only fine-pitch SMD is the MPC1661 up-converter. It is a five-pin device, so the orientation is obvious. Solder it first, followed by the other ICs. Add a thin layer of flux paste onto its pads before placing it, tack one pin and then check carefully that the other pins are correctly aligned, ideally using a magnifier. If necessary, re-heat the tacked joint and nudge it into position. Then solder the other pins. Clean the flux off the board and inspect REG1 to verify that all its pins are soldered properly and none are bridged. If there are bridges, add a bit flux paste and then remove them with a piece of solder wick. The remaining 14-pin and 16-pin chips are relatively easy to solder but make sure they are oriented correctly. Follow with the five transistors, four BJTs (Q1-Q4) and one MOSFET (Q5). They are all in three-pin SOT-23 packages, so don’t get them mixed up. The diodes are in two different package types: plastic SOT-123 (ZD1 and D4) and cylindrical glass Mini-MELF (D2, D5). In each case, start by identifying the striped (cathode) end. You might need a magnifier to see the stripe on ZD1 and D4. Then solder them in place, as shown in Fig.6. Now fit all the discrete resistors and capacitors. They are all M2012/0805 (2 × 1.2mm) or M3216/1206 (3.2 × 1.6mm) size, and none are polarised, but the resistors should have their codes marked on top. After that, solder the small SMD relay, taking care to orient it correctly. That’s the last SMD. Now add the through-hole components, starting with the lowest-­profile axial devices and working your way up. The OLED screen plugs into a 4-pin socket strip. Carefully slide off the plastic on the OLED pins to reduce the height above the board. It is then secured by two M2.5 or M2 screws with 8mm untapped spacers. The Arduino Nano and connectors are on the opposite side of the board. I also used socket strips for the Nano, but that is optional. The Nano has 15 pins on each side, so ideally, you’d use 15-pin strips, but they are not easy to find. You can use 14-pin headers inserted towards the top edge of the board, as the lowest pin on each side is not electrically connected, or cut down longer sockets. The other components on the back of the board are headers CON2 and CON4, the optional debugging header (CON3) and the BNC socket (CON1). All the switches mount on the front, and are best fitted last. We’ve specified solder-lug switches rather than PCB-mounting types, and provided Fig.5: the locations of the holes in the clear lid of the H0324 plastic box. Download it from the November 2023 page of the PE website at: https://bit.ly/pe-downloads (and print it out at actual size) and use it as a template. See the comment at the end of the body text explaining that one hole and switch could be omitted. Practical Electronics | November | 2023 Onboard inductor value calculation Since the value of inductor L1 will vary with the test frequency due to the permeability of the ferrite core varying, we cannot rely on its nominal value. To get a good estimate of the inductance in the oscillator circuit, we need to make some calculations. The capacitance across it is the 220pF plus the stray capacitance; call this C1. We know that L = 1 / (ω12 × C1), where ω = 2πf (f = oscillator frequency). The resonant frequency will change if we add a capacitance C2 in parallel with C1. As long as it is not too different from the original frequency, the inductance value will be close enough to the same. The new equation becomes: L = 1 / (ω22 × [C1 + C2]) Combining the above two equations, we get: ω22 × (C1 + C2) = ω12 × C1 This can be rearranged to: (C1 + C2) / C1 = ω12 / ω22 Further manipulation gives us: C1 = C2 / (ω12 / ω22 – 1) As the 2π factors in ω1 and ω2 cancel out, this becomes: C1 = C2 / ([f1 / f2]2 – 1) To more easily calculate this using 32-bit integer arithmetic, we multiply the numerator and denominator on the right-hand side by f22 to give the equivalent equation: C1 = (f22 × C2) / (f12 – f22) In our case, we know the added capacitance C2, and measuring f1 and f2 gives us the value of C1. From this, we can calculate L according to the first equation above, or the simpler version, L = 25330 / (f2 × C) mentioned in the body text. This calculation is done during the calibration on power-up, with C2 being the 100pF calibration capacitor. The fact that the frequencies measured are divisions of the actual frequencies does not matter as the ratio remains constant. sufficiently large slots to solder in the lugs. This is because the solder lug style switches are more widely available, especially in the wide variety needed here. Make sure they’re perpendicular to the board before soldering all the lugs. Clean the board with circuit board cleaner and inspect all the soldered joints for any that may have been missed, and check for shorts between pins. Finally, place the jumper on JP1 in the position shown in Fig.6. Assembling it into the case Presumably, you followed the earlier instructions to prepare the lid with the aid of the blank PCB. If not, you’ll have to go back and use a template made from Fig.5 instead. Then you can print and prepare the front panel label, shown in Fig.8. Print this label on photographic paper. I placed a transparent 1mm-thick sheet of polycarbonate on top of the label to protect it, but you could laminate it instead. Although the PCB has mounting holes, the toggle switches are adequate to bolt the unit onto the panel. The battery holder for the three AA cells (BAT1) should be attached to the bottom of the case with double-sided adhesive tape. While you could solder its leads directly to the PCB pads for CON2, that would make disassembly somewhat tricky. So we’ve specified a polarised header for CON2 and a matching plug. Crimp and/or solder the plug to the battery leads, ensuring they are not reversed. Before plugging the battery in, carefully check that polarity as the PCB doesn't have reverse polarity protection. The battery holder and piezo buzzer are located in the case so that they don't interfere with the PCB when the lid is attached. Note the position of the hole in the side for the BNC socket. Using it The BNC connector by itself is not ideal for connecting to separate components. The simplest solution is to use a BNC plug with screw terminals and a couple of clip leads to connect to leaded components. You can connect some parts directly to the screw terminal. With care, the clip leads may also connect to M3216/1206- and M2012/0805-size SMDs. Depending on the length of leads, these will add about 100nH to measured inductances. This can be measured by Figs.6 and 7: all the SMDs and most of the other parts are on the front of the board. The only one that’s a bit tricky to solder is REG1; make sure you scrutinise its solder joints before powering the board up. Also watch the orientations of the ICs, the Arduino Nano module (once it’s plugged in), the relay and the diodes. Practical Electronics | November | 2023 23 Parts List – LC Meter Mk3 Some example screengrabs when operating the LC Meter Mk3. shorting the leads together; then, you can subtract this from the inductance reading. That will only be necessary for values below about 5µH. An alternative is a small PCB I designed (coded CSE200603) connected by a short coax cable, BNC to SMA – see the end of the parts list. This allows more device options and includes pads for SMD capacitors. M3216 and M2012 chip capacitors can be accurately measured by carefully holding them down on the pads with a non-conducting stylus. The added capacitance of the coax cable is about 15pF, so you need to run calibration with the adaptor connected, cancelling it out. Calibration runs automatically at power-up, but it can also be triggered manually by pressing the CAL/START switch. This requires the L/C switch to be in the C position and no external component connected. To make inductance measurements, switch to the L position, connect the unknown coil and press CAL/START. This will power relay RLY1 for two seconds to give a reference zero offset. After that, RLY1 is switched off, placing the unknown in series with L1. A lower frequency will be measured and subtracted from the ‘zero’ point to give an offset frequency. The inductance is then calculated from this offset. The inductance will continue to be measured from then on, each reading taking about four seconds. If no inductor is connected, the display will show ‘Reading Error’. In any case, it’s best to take several readings to get a consistent result. The calibration is accurate up to 2,500µH (2.5mH). It will measure values higher than that, but the precision of such readings is unknown. Future enhancements The onboard three-position toggle switch (S1) provides Option 1 and 24 1 double-sided PCB coded CSE220503C, 91.5 × 63.5mm 1 125 × 85 × 55mm IP65 sealed ABS enclosure (clear lid) [Altronics H0324] 1 panel label, 98 × 76mm 1 Arduino Nano microcontroller board (MOD1) 1 0.96-inch OLED display module with I2C interface and SSD1306 controller (OLED1) [SC6176 (cyan)] 1 Omron G6K-2F-Y-DC5V SMD relay (RLY1) 1 330μH axial RF inductor (L1) 1 3.3μH axial RF inductor (L2) 1 PCB-mount miniature SPDT centre-off toggle switch (S1) [Altronics S1330; S1332 is PCB-mounting equivalent] 1 PCB-mount miniature DPDT on-on toggle switch (S2) [Altronics S1345; S1350 is PCB-mounting equivalent] 1 PCB-mount miniature SPDT centre-off momentary toggle switch (S3) [Altronics S1340; S1333 is PCB-mounting equivalent] 1 PCB-mount miniature SPDT on-on toggle switch (S4) [Altronics S1310; S1315 is PCB-mounting equivalent] 1 PCB-mount right-angle BNC connector (CON1) [Altronics P0529] 2 2-way polarised vertical pin headers with matching plugs (CON2, CON4) 1 3-way polarised vertical pin header (CON3; optional, for debugging) 1 4-way header socket (for OLED) 2 14-pin or 15-pin header sockets (optional, for mounting Nano) 1 2×4-pin header, 2.54mm pitch (JP1) 1 jumper shunt (JP1) 2 8mm untapped spacers (for mounting OLED) 2 M2 × 12-16mm panhead machine screws and nuts (for mounting OLED) 1 3 x AA battery holder with flying leads (BAT1) 3 AA cells (ideally alkaline) 1 200mm length of foam-core double-sided tape (to attach battery holder) 1 BNC to screw terminal adaptor (optional, to measure components) 1 chassis-mount piezo buzzer (optional) [Altronics S6109, Jaycar AB3462] Semiconductors 1 74HC161D or 74AC161D synchronous binary counter, SOIC-16 (IC1) 1 74HC04D or 74AC04D hex inverter, SOIC-14 (IC2) 1 MCP1661T-E/OT integrated high-voltage boost regulator (or MP1541DJ-LF-P boost converter), SOT-23-5 (REG1) 4 BFR92P low-capacitance NPN transistors, SOT-23 (Q1-Q4) 1 2N7002 60V 115mA N-channel MOSFET, SOT-23 (Q5) 1 BZT52C4V7 4.7V 500mW zener diode, SOD-123 (ZD1; optional) 2 LL4148 75V 500mA small signal diodes, SOD-80 (D2, D5) 1 MBR0540 50V 500mA schottky diode, SOD-123 (D4) Capacitors (all SMD M2012/0805 ceramic) 2 10μF 16V X5R 3 100nF 50V X7R 1 470pF 50V NP0/C0G 1% 1 330pF 50V NP0/C0G 1% 2 220pF 50V NP0/C0G 1% 2 120pF 50V NP0/C0G 5% 1 100pF 50V NP0/C0G 1% Resistors (all SMD M2012/0805 1%) 1 1MW 1 390kW 1 120kW 6 15kW 2 10kW 4 3.3kW Optional Adaptor Board 1 double-sided PCB coded CSE200603, 33 × 20.5mm This optional adaptor 1 SMA edge connector board makes it easier 1 6-pin header socket to test components. 1 short SMA to BNC cable Option 2 for possible enhancements in the future. One option I tried was to double the measurement window for improved resolution but, in practice, there was no significant difference, so I discarded it. That switch may be omitted to reduce the construction cost slightly, and the label modified to remove the options. Finally, I would like to acknowledge Andrew Woodfield for his helpful suggestions. It was largely his desire for measuring sub-1µH inductors that I was pressed to improve my earlier designs. Practical Electronics | November | 2023