Skip to the content
2 layersTransformer Test Fixture, the printed circuit board in 3D

A PCB impedance analyzer to measure loads to 100kHz and beyond

Copper layers
2
Thickness
1.6 mm
Parts
20
Nets
20
Pads
63
Tracks, vias
80, 2
Routed
Yes
KiCad
KiCad 6 (file 20211014)
Created
25 Dec 2021
Updated
4 Jul 2024

Overview

Transformer Test Fixture is an open-source printed circuit board by EliMattingly22, from the EliMattingly22/Simple_Impedance_Analyzer repository on GitHub, published under the MIT licence. It is a 2-layer board with 20 parts on 20 nets, routed with 80 tracks and 2 vias.

It is built around the MMBT3904. Its parts include 8 connectors, 4 resistors, 2 diodes, 2 transistors and 2 switches. It belongs with the sensors and measurement boards of this library.

Main components

1

README

README.md

Simple Impedance Analyzer

Purpose

The impedance analyzer was designed as a low-cost, flexible, and accurate platform to perform impedance measurement at arbitrary frequencies up to ~250kHz. The current infrastructure assumes the user has access to a National Instruments DAQ (e.g. NI-USB-6363), though similar digitizers would be similarly effective.

In this current configuration:

  • About 0.1% Accuracy for large impedance and frequency ranges.
  • The LabView has an easy to use GUI
  • TDMS file saving
  • It can measure impedances from 10mOhms to 10MOhms, and by changing the shunt resistor values that range could be extended
  • Test at frequencies from DC-250kHz (>100kHz still needs validation)
  • Perform frequency sweeps on log or linear spacing
  • If a battery-powered computer and DAQ is used, the entire measurement apparatus can be both portable and floating.

Accuracy and noise (1 kHz resistive)

Accuracy and noise (10 kHz resistive)

Accuracy and noise (100 kHz resistive)

Accuracy and noise (10 kHz Capacitors)

  • It seems one can expect about 1% accuracy between 10 p to 0.1 mF.
  • The point indicating 0.01% accuracy is probably spurious. Some random errors happened to offset each others.

PCB

Use V2 rev B. V3 has not been tested/built. it is still in design phase. Perhaps it should just be in a separate brach of Github. Designed in KiCAD v6.

Operating Principle

This circuit uses the "auto-balancing bridge" technique. If you are curious/want to play around with the circuit you can see the LTSPICE schematic.

It is worth reading the Keysight impedance measurement handbook or TI's reference design for an LCR meter front-end for an overview of measurement techniques.

The current through the DUT is (ideally) the same as the current in the shunt resistor, so the impedance is V(DUT) / (V(Shunt)/R(Shunt)).

Source of Errors

The precision of the circuit is dominated by the shunt resistors and gain accuracy of the INAs. Error in any of these will linearly cause an error in the calculated impedance. If they are stable over time, they can conceivably be calibrated with a high tolerance (e.g. 0.01%) reference resistor.

If the shunt resistor is off by some value, X (where 1.01 would be 1% higher than nominal), the current would be reported as I0*X where I0 is the actual current.

The noise performance of the INAs isn't great, but the FET inputs have extremely low bias currents, and low current noise, which are necessary if high impedance loads are attached. The noise should add an incoherent error, so by averaging for longer, this can be mitigated.

The parasitic elements can be accounted for by taking an open/short/load measurement. See sect. 4.3.2 in the impedance measurement handbook

Operation instructions

Setup

The device should be plugged in with a four-wire (Kelvin) probe attached. On the probe there will be two pairs of leads, each connected to a clamp (typically one pair is red, one is black). The two BNC connections on the red lead should be plugged into the "HPot" and "HCur" connectors, and the BNCs on the black probe should be connected to "LPot" and "HPot" connectors.

Plug in the power and make sure the LEDs next to the "+5V" and "-5V" are illuminated.

The DAQ should be plugged in via the BNC connectors and however they are connected, those outputs/inputs are selected on the front page of the Labview GUI.

Also on the front page, set the sampling rate to the maximum allowable (see documentation for your DAQ). Set the sampling time to be >10 periods of whatever frequency you are testing at. Longer gives better noise performance.

For the shunt resistor, use the value most similar to the load you are measuring. Use J13/14 to select the shunt resistor.

Set the series resistor before the load (R9/24) to the same value as the shunt resistor using J17.

  • For the saving cluster the Fine Name String will be the identifier in the file name.
  • Save path is the directory it will be saved within
  • Experiment title is a string added to the metadata
  • Meta-data array is an array that the user can fill in as desired. It just goes into meta-data as-is. For example, if you are measuring the turns on an inductor vs inductance, you could enter the turn count in this spot and then afterwards when processing the data it would already be saved.

  • Test Freq: This is the measurement frequency for single measurements and stats. It is overwritten for frequency sweeps.
  • Output Signal Amp: This is the waveform amplitude the DAQ outputs. If this is too low, SNR is sacrificed, if it is too high, the waveform can clip. Check the debugging cluster to ensure the amplitude of the voltage monitor and current monitor arent clipping (i.e. they are less than 7 V or so)
  • Sampling time: Time of acquisition in seconds. Should be long enough for 10 or so periods of the output waveform. More improves SNR.
  • Sampling Rate: Sampling rate in Hz. should be maximum allowable.
  • Output Channel: The channel that goes into the Voltage Input BNC (top left in photo above)
  • Current Channel: The channel that comes from the current sense BNC (Bottom left in photo above)
  • Voltage channel: The channel that comes from the voltage sense BNC (middle left in photo above)
  • Trigger channel: This should be set to the output start trigger, for example "/Dev2/ao/StartTrigger"
  • Number of runs: this is the number of times the acquisition will be repeated and averaged.

  • R_Shunt: The shunt resistor value (R14/18)

  • Rg_Vmon: The gain-setting resistor for the voltage monitor (R12 or R8)

  • Rg_Imon: The gain-setting resistor for the current monitor (R11 or R7)

  • ESL_Cal: This value is set by the short circuit compensation and is enabled by the UseCorrection boolean

  • ESR_Cal: This value is set by the short circuit compensation and is enabled by the UseCorrection boolean

  • Cp_Cal: This value is set by the open circuit compensation and is enabled by the UseCorrection boolean

  • Rp_Cal: This value is set by the open circuit compensation and is enabled by the UseCorrection boolean

  • UseCorrection: enables the short/open compensation values. Typically set to TRUE (green illuminated)

  • RLoad: This is the actual value of the load compensation resistor that one may use to calibrate gain errors of the system.

  • RLoad_Meas: This is the measured value of that load. To acquire this value, set RLoad and RLoad_Meas to 0 and then measure the known load and set this and the RLoad by typing in the appropriate values.

Calibration

Set the equipment up to measure your load, and short the clips together. Next, go to the Short/Open compensation tab and press the "Acquire short" button. Open the clips and then do the open compensation.

Measure load

Use the last page to do a single impedance measurement and ensure the load is similar to expected. Then use the stats page or freq sweep depending on what you want.

List of jumpers & their purpose

  • J15/16 low-pass filters for the input. These clean the analog signal from the DAQ. They can generally be set to the highest frequency that the user plans to measure. Removing the jumper disconnects the filtering entirely.

  • J10: The current monitor gain selection

  • J12: Voltage monitor gain selection

  • J13/14: Shunt resistor selection

  • J17: Series resistor selection. This resistor in series with the load helps stability and makes the system more balanced. The resistor value should match the shunt resistor value.

If you are having errors:

  1. Make sure the channels are selected properly
  2. Make sure BOTH sides of the clips are on the load
  3. Make sure the BNCs are properly attached
  4. The LEDs should be illuminated
  5. The amplitude should be sufficiently low that it doesn't saturate the inputs/clip

Example applications:

Litz wire, air-core inductor

  • The impedance is exactly as expected here for an inductor. Because Litz wire was used, the resistance is not a strong function of frequency.
  • The slope of the reactance is constant and proportional to frequency.

Skin and proximity effect on inductor

This is a frequency sweep of a solenoid (~1 mm diameter) wound on a copper tube with a wall-thickness of ~1 mm. Quite a lot is happening with this load:

  • Below 50 Hz or so, it is essentially a resistor, the inductive impedance is very small.
  • At 50-1k Hz, the solenoid's impedance has an increasing real component and decreasing inductance (decreasing slope of imag.). This occurs as the inductor couples more strongly into the copper tube. The inductance decreases because the magnetic field in the center of the tube is decreasing as the wall effectively shields it.
  • Between 1k and 10k Hz the resistance nearly plateaus and the inductance starts rising proportionally to frequency. Presumably at this point, the skin depth of the copper tube has been met, so the magnetic fields are not significantly penetrating to the center of the tube.
  • Above 10 kHz the skin depth of the wire is being reached and the AC-resistance is increasing as the effective copper area for current to flow in decreases.

Resonant L-C

Notch filter input

Thoughts for improvement

  • Make the shunt resistor digitally selectable
  • Build a microcontroller-based interface for increased portability
  • Improve system accuracy for high impedance loads
  • Improve system accuracy for high frequencies
  • Modify it such that it uses only one amplifier for both VMon and IMon and a relay to select which one.
  • Replace INA121 with a JFET INA (e.g. 3 opamp configuration)
  • Implement transformer test jig

Parts

20
QtyValueFootprintReferences
4Conn_CoaxialConnector_Coaxial:BNC_Amphenol_B6252HB-NPP3G-50_HorizontalJ102, J103, J104, J105
2100Resistor_SMD:R_0805_2012MetricR101, R103
21kResistor_SMD:R_0805_2012MetricR102, R104
2LEDLED_SMD:LED_0805_2012Metric_Pad1.15x1.40mm_HandSolderD101, D102
2MMBT3904Package_TO_SOT_SMD:SOT-23Q101, Q102
2Screw_Terminal_01x02TerminalBlock:TerminalBlock_bornier-2_P5.08mmJ106, J107
2SolderJumper_3_Bridged123Eli_Lib:SolderJumper-3_P1.3mm_Bridged12_RoundedPad1.0x1.5mmJP101, JP102
1Barrel_Jack_SwitchConnector_BarrelJack:BarrelJack_GCT_DCJ200-10-A_HorizontalJ108
1Relay_DPDTRelay_THT:Relay_DPDT_Omron_G6S-2K101
1SILxx-1Axx-71xRelay_THT:Relay_SPST_StandexMeder_SIL_Form1AK102
1Screw_Terminal_01x04TerminalBlock:TerminalBlock_bornier-4_P5.08mmJ101

More from EliMattingly22/Simple_Impedance_Analyzer

3
  • 2 layers94.4 × 90 mmImpedance Analyzer V3, the printed circuit board in 3D

    Impedance Analyzer V3

    EliMattingly22/Simple_Impedance_Analyzer

    A PCB impedance analyzer to measure loads to 100kHz and beyond

    92 parts12MIT
  • 4 layers98 × 101.6 mmImpedance Analyzer V2, the printed circuit board in 3D

    Impedance Analyzer V2

    EliMattingly22/Simple_Impedance_Analyzer

    A PCB impedance analyzer to measure loads to 100kHz and beyond

    90 parts12MIT
  • 2 layers94.4 × 90 mmImpedance Analyzer, the printed circuit board in 3D

    Impedance Analyzer

    EliMattingly22/Simple_Impedance_Analyzer

    A PCB impedance analyzer to measure loads to 100kHz and beyond

    63 parts12MIT

Similar boards

  • 4 layers95 × 55.5 mmEinkPDA keyboard, the printed circuit board in 3D

    EinkPDA keyboard

    TalismanDesign/PocketMage_PDA

    An E-Ink PDA device using the ESP32 S3.

    137 parts2kApache-2.0
  • 4 layers99 × 53.3 mmPSLab, the printed circuit board in 3D

    PSLab

    fossasia/pslab-hardware

    PSLab Hardware Design and Schematics https://pslab.io

    199 parts1.7kApache-2.0
  • 2 layers90 × 25.5 mmBadgeMagic, the printed circuit board in 3D

    BadgeMagic

    fossasia/badgemagic-hardware

    Badge Magic Hardware Board

    525 parts1.5kApache-2.0
  • 4 layers85 × 56 mmPslab mini, the printed circuit board in 3D

    Pslab mini

    fossasia/pslab-mini-hardware

    PSLab Mini Hardware https://pslab.io

    182 parts1.2kApache-2.0
  • 4 layers74.5 × 70.3 mmNest mini v2-drop in pcb, the printed circuit board in 3D

    Nest mini v2-drop in pcb

    iMike78/nest-mini-drop-in-pcb

    Drop-in PCB replacement for the Google Nest Mini v2 with ESP32-S3, ESP32-P4 and optional ESP32-C6. Inspired by Onju Voice and Home Assistant Voice PE.

    229 parts628CERN-OHL-S-2.0
  • 2 layers148 × 84.5 mmPanel daisy, the printed circuit board in 3D

    Panel daisy

    ohmtech-rdi/eurorack-blocks

    Software to Hardware Prototyping for Eurorack using C++, Max/Gen~ or Faust

    259 parts410
  • 4 layers46.8 × 34.8 mmSmartWatch V4, the printed circuit board in 3D

    SmartWatch V4

    Bellafaire/ESP32-Smart-Watch

    An open source smartwatch based on the ESP32 compatible with the Arduino IDE.

    74 parts258MIT
  • 2 layers68.8 × 53.6 mmRelatively Universal ROM Programmer, the printed circuit board in 3D

    Relatively Universal ROM Programmer

    AndersBNielsen/Relatively-Universal-ROM-Programmer

    Hardware to program W27C512 EEPROM or any 24/28/32 pin ROM requiring from 5V to 27V programming voltage.

    149 parts257GPL-3.0

Questions

What parts does the Transformer Test Fixture use?

20 parts, built around the MMBT3904. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Transformer Test Fixture KiCad files?

From the EliMattingly22/Simple_Impedance_Analyzer repository on GitHub, at the commit this page was made from: the board is Transformer_Test_Fixture/Transformer_Test_Fixture.kicad_pcb and its schematic Impedance_Analyzer_KiCAD/ImpedanceAnalyzerPower.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Transformer Test Fixture design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).