Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a mode to measure Common Mode Current Chokes #70

Open
dkozel opened this issue May 7, 2022 · 0 comments
Open

Add a mode to measure Common Mode Current Chokes #70

dkozel opened this issue May 7, 2022 · 0 comments

Comments

@dkozel
Copy link

dkozel commented May 7, 2022

Work in Progress

A request came up in a forum to support directly measuring and plotting the series resistance and reactance of a Common Mode Current Choke, which can be realistically modeled as a pi network with shunt capacitances and a complex series impedence. With only S11 and S21 available the output capacitance cannot be calculated, but the capacitances are usually similar and someone could physically reverse the NanoVNA to make the complete measurement.

This issue is both a feature request and to gather the information required to implement the measurement mode.

image

These three values can be easily extracted from the Admittance parameters.
image

Series Impedence
Z_series = -1 / Y21

Shunt Impedences
Z_shunt,in = 1 / (Y11 + Y21)
Z_shunt,out = 1 / (Y22 + Y21)

Shunt Capacitances
C_shunt,in = Real(1 / (j2 * pi * freq * Z_shunt,in)) * 1e12
C_shunt,out = Real(1 / (j2 * pi * freq * Z_shunt,out)) * 1e12

Math operations

Calculation of Y values

NanoVNA-H/plot.c

Lines 453 to 459 in ba4dcc7

//**************************************************************************************
// Y parameters (conductance and susceptance) calculations from complex Z
// Y = 1 / Z = 1 / (R + jX) = B + jG
// G = R / (R*R + X*X)
// B = -X / (R*R + X*X)
// |Y| = 1 / |Z|
//**************************************************************************************

Function producing the Admittance Y values for the |Y| mode.

NanoVNA-H/plot.c

Lines 506 to 510 in ba4dcc7

static float
mod_y(int i, const float *v)
{
return 1.0f / mod_z(i, v); // always >= 0
}

Plotting Operations

Trace Type:

const trace_info_t trace_info_list[MAX_TRACE_TYPE] = {

[TRC_Y] = {"|Y|", "%.3F%s", S_DELTA "%.3F%s", S_SIEMENS, 0, 0.02f, mod_y },

Menu item to select trace type:

NanoVNA-H/ui.c

Line 1641 in ba4dcc7

{ MT_ADV_CALLBACK, TRC_Y, "|Y|", menu_format_acb },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant