Electronics and RF Calculators

Whether I'm winding a toroid for a band-pass filter, working out a harmonic filter for a PA or just checking a resistor value, I keep reaching for the same handful of formulas. So I've gathered the ones I use most into one page of free electronics and RF calculators, and I hope they're as useful to you on your own projects.

Everything runs in your browser, with nothing to download. Pick a calculator from the buttons below, type in your values (prefixes like 4k7, 100n or 7.1M are fine) and press Calculate or Enter.

Values can be typed with prefixes: 4.7k, 4k7, 100n, 2.2u, 10p, 7.1M (M = mega, m = milli). Frequency boxes are in MHz, inductance in µH and capacitance in pF unless you add a prefix (e.g. 455k, 10n, 1m).

Ohm's law and power

V = I × R, P = V × I. Enter any two values.

Series and parallel

Combine any number of resistors, inductors or capacitors. Separate values with commas.

Voltage divider

Vout = Vin × R2 / (R1 + R2), with R1 at the top and R2 to ground. Leave R2 empty and enter a target Vout to find R2.

Reactance

XL = 2πfL, XC = 1 / (2πfC). Enter the frequency and an inductance, a capacitance, or both.

LC resonant frequency

f = 1 / (2π√(LC)). Enter any two values to find the third.

Toroid turns

Iron-powder cores: N = 100 × √(LµH / AL), with AL in µH per 100 turns. Enter the inductance to find the turns, or the turns to find the inductance.

AL values are typical for Micrometals iron-powder cores. Real coils vary by a few percent, so wind a turn or two extra and spread or squeeze the turns to trim.

Broadband ferrite transformer

Turns ratio = √(Z2 / Z1). Each winding needs enough inductance that its reactance at the lowest frequency is several times its impedance, so the turns depend on the core's AL and the frequency range.

AL values are Amidon's published figures (±25%), in nH/turn², which is the same number as mH per 1000 turns. 43 material is the usual choice for HF broadband transformers; 61 has lower loss and suits the upper HF and VHF, but needs more turns at the low end. For 1:4 and 1:9 baluns and ununs, transmission-line (bifilar or trifilar) windings give a wider bandwidth than a conventional transformer.

L-network impedance match

Matches two resistive impedances at one frequency with one L and one C. Q = √(Rhigh / Rlow − 1).

Low-pass filter designer

Odd-order LC ladder filters with equal source and load impedances, using standard Butterworth and Chebyshev prototype values.

For Butterworth the cut-off is the −3 dB point. For Chebyshev it is the edge of the ripple band, so attenuation rises steeply just above it. For a transmitter harmonic filter, set the cut-off about 10–20% above the top of the band.

Band-pass filter designer

Converts a low-pass prototype into shunt parallel-LC and series-LC resonators centred on f0 = √(f1 × f2).

Narrow filters (bandwidth under about 10% of f0) give very large series inductors and very small series capacitors that are hard to build. For those, a top-coupled resonator design is usually more practical.

Top-coupled band-pass filter

The classic homebrew design: identical parallel-tuned resonators joined at the top by small coupling capacitors, with series capacitors matching the 50 Ω ends. You choose the inductor; the calculator works out every capacitor.

Chebyshev responses are available with an odd number of resonators (equal 50 Ω ends). Bandwidth is between the −3 dB points for Butterworth, or the ripple edges for Chebyshev. Narrow filters lose more signal, so wind the inductors on the largest core that fits for the best Q, and use NP0/C0G or silver-mica capacitors with a trimmer in each resonator.

Crystal ladder filter designer

The classic homebrew IF filter: identical crystals in series with capacitors to ground between them (Dishal / coupled-resonator method). Enter your crystals' measured motional inductance and the bandwidth you want; the calculator gives the coupling capacitors, the series tuning capacitors that line up each mesh, and the termination resistance.

Measure Lm (G3UUR method)

Put the crystal in a simple oscillator, note the frequency, then switch a small capacitor Cs in series with it and note how far the frequency rises. Measure all your crystals the same way and pick ones within about 50 Hz of each other.

Typical HC-49 crystals in the 4–12 MHz range have Lm of roughly 10–80 mH, so measuring is worth the effort: the coupling capacitors scale directly with it. The design ignores holder capacitance C0, which mainly adds a little asymmetry; trim the end capacitors for the flattest passband. Match the termination resistance to 50 Ω with a transformer or L-network (see the calculators above).

Resistive attenuator (Pi or T)

Matched attenuator for equal source and load impedances. Shows the exact resistor values, the nearest standard values, and how the finished pad performs with those standard values.

At RF use non-inductive resistors (carbon film, metal film or thick-film SMD, never wirewound), keep the leads short and screen between sections. For high power, build the pad from several resistors in parallel to share the dissipation.

dB, dBm and watts

dBm = 10 log10(P / 1 mW). Enter one value; voltages are RMS and peak-to-peak across the impedance.

SWR, return loss and mismatch

Enter one of: SWR, return loss, reflection coefficient, or forward and reflected power.

Wavelength and antennas

λ = c / f. Wire lengths use a typical end-effect factor of 0.95; trim to resonance on the air.

Velocity factor: about 0.66 for solid-polyethylene coax (RG58, RG213), 0.82–0.85 for foam (RG8X, Westflex, H155). Check your cable's data sheet.

Resistor colour code

Pick the bands from left to right. Five-band resistors have three significant figures.

About these calculators

The results use the standard textbook formulas and ideal components. Real parts have tolerances, stray capacitance and lead inductance, so treat the answers as a starting point: build, measure with a NanoVNA or a signal generator and scope, and trim. The filter designers use classic normalised Butterworth and Chebyshev prototype values for equal source and load impedances, and the top-coupled designer uses the standard coupled-resonator method with series-capacitor end matching.

Further reading

If you'd like to dig deeper into the theory behind these calculators, these are worth a look:

No comments:

Post a Comment

I appreciate your comments on the blog content, however the blog has been subject to idiots trying to use the comments facility as a means to post advertisements & spam so all comments are now approved and moderated.