Repository navigation
Electrical Estimate
TX_Electrics.py (in Generator/Stator/TX/) turns the geometry into absolute electrical numbers. RunCoilGenerator.py prints them in step 4 of every
generation. The analyser and optimizer (under construction on the analyser_and_optimizer branch) print a similar estimate, from their own CoilElectrics.py, for every case of the tolerance window and every candidate. Nothing
here changes a board.
Warning
None of these numbers has been checked against a measured board. Keep a margin to every limit of the IC.
- The TX inductance with the rotor away and with the rotor at the air gap.
- The TX resistance (DC) and the Q.
- The tank capacitors for
EXCITATION_FREQ_HZand the oscillator frequency they give. - The parallel resistance of the tank, which is what the oscillator has to drive, as a range.
The oscillator frequency and the tank resistance are checked against the receiver IC limits in IC_Parameters.py (see 25.4). The receiver voltage is not estimated: it needs a model of the whole sensor, which is not part of the generator.
| Quantity | Method |
|---|---|
| TX inductance | Every TX turn is taken as a circular loop (radius from the generator, depth from the stack-up: PCB_THICKNESS_MM, and STACKUP_PREPREG_MM for the inner layers of a 4-layer board). L = the turn self-inductances (a ring of a w × t trace) plus the mutual inductances of every pair of turns (Maxwell's formula for coaxial circles). Radial steps, spiral pitch and terminal tails are left out; against the full TX polyline (Neumann integral) this is within 2 %. |
| Resistance | DC resistance of all the TX copper. At the TX frequency skin and proximity effects raise it; the checks allow for up to an AC factor times the DC value. |
| Rotor effect | The rotor copper is taken as an ideal screen of the TX field. That is an upper estimate of the drop in inductance (a real rotor with gaps lets the field through them), so the true frequency with the rotor lies between "rotor away" and the predicted one. |
| Tank resistance | The true value lies between the value with the estimated rotor and the value with the rotor's effect left out. It is a warning only if even the higher value is below the IC's minimum. If only the lower value is, it is an info line that gives the range. |
| Tank capacitors | With IC_SPLIT_TANK_CAPS = True (the default), two capacitors of 2 C, one from each TX pin to ground (2 C from TX1 and 2 C from TX2, which is C across the coil). With False, one capacitor C across the coil. The estimate suggests the standard C0G values of TANK_CAP_SERIES (E12 by default) just below and above the value needed. |
Example (series TX on Top + Inner-1, 4 loops, board edges 30 / 50 mm, 3 turns per layer, 1.2 mm pitch, 0.4 mm traces, one finger per RX coil (RX_TABS = "single") of 7.2 mm). L = 8.51 µH with the rotor away and 6.32 µH with the rotor at the 1 mm air gap (−25.7 %, upper estimate). R = 2.11 Ω DC, Q = 33 to 66. The tank for 3.5 MHz is 2 × 654 pF (nearest standard E12 C0G: 2 × 560 pF or 2 × 680 pF), and the parallel tank resistance is 4.6 to 9.2 kΩ against the 250 Ω minimum of the default IC limits, so there is no finding.
- Parasitic capacitance (IC pins, coil, wiring; typically some 10 pF), which lowers the frequency a little.
- Temperature, except through
COPPER_CONDUCTIVITY_S_M. Copper resistance rises 0.39 % per kelvin, so a lower conductivity models a warmer board.
The limits are set in IC_Parameters.py. The defaults are an example, the IPS2550. Take the values
from the datasheet of your IC and check your revision.
| Setting | Default | Meaning |
|---|---|---|
IC_NAME |
"IPS2550" |
The name shown in the estimate. Any text, or None ("receiver IC"). |
IC_OSC_MIN_MHZ, IC_OSC_MAX_MHZ
|
2.0, 5.6 | The IC's LC oscillator range. |
IC_MIN_RP_OHM |
250 | The smallest parallel (loss) resistance of the tank that the oscillator can drive (R_Peq). |
IC_SPLIT_TANK_CAPS |
True | True: the tank capacitance in two halves, 2 C from TX1 and 2 C from TX2 to ground. False: one C across the coil. |
Set both frequency limits to None to skip the frequency check, and IC_MIN_RP_OHM to None to skip the resistance
check. With all three None there are no IC checks. A missing line, or a missing IC_Parameters.py, uses the default
and prints an info line. See the Parameter Reference Single Coil Set Generator.
Dual_RunCoilGenerator.py prints the estimate in step 4 for each set on its own: each set with its own TX ring, its
own EXCITATION_FREQ_HZ (Dual_TX1 / Dual_TX2), its own rotor ring and its own IC limits (Dual_IC1_Parameters.py,
Dual_IC2_Parameters.py). The other set is not in the estimate. The stack-up and copper settings
(PCB_THICKNESS_MM, COPPER_THICKNESS_UM, TX_AC_RESISTANCE_FACTOR, ...) are the one board's, in
Dual_Board_Parameters.py, and hold for both sets. Both estimates are written into Parameters.txt.
Example (the default dual board: series TX on Top + Inner-2, 4 turns per layer, 0.35 mm pitch, 0.15 mm traces).
| Set 1 (Inner, 3.0 MHz) | Set 2 (Outer, 4.3 MHz) | |
|---|---|---|
| TX inductance, rotor away | 2.87 µH | 6.88 µH |
| TX inductance, rotor at the 1 mm air gap | 2.46 µH (−14.2 %, upper estimate) | 5.59 µH (−18.7 %, upper estimate) |
| DC resistance | 2.15 Ω | 4.17 Ω |
| Tank | 2 × 2.29 nF (E12: 2 × 2.2 nF or 2 × 2.7 nF) | 2 × 490 pF (E12: 2 × 470 pF or 2 × 560 pF) |
| Q, parallel tank resistance | 11 to 22, 500 Ω to 1 kΩ | 18 to 36, 2.74 to 5.48 kΩ |
| Against the IPS2550 (2 to 5.6 MHz, at least 250 Ω) | OK | OK |
The inner ring is small, so its inductance and tank resistance are low: with only 2 turns per layer at 3 MHz the inner tank falls below the IPS2550's 250 Ω, and the estimate says so.
| Previous | Next |
|---|---|
| Checks, Errors And Warnings | Suggestive Analysis And Optimization |
Code: PolyForm Noncommercial 1.0.0 · Web Tool: PolyForm Strict 1.0.0 · Docs and images: CC BY-NC-SA 4.0 · Output of the tool and commercial use: 0.2 % commercial terms or written permission (License) · Repository
Start Here
Working Principle / Mathematics - Generator
Design Guide - Single Coil Set Generator
Design Guide - Dual Coil Set Generator
- Stator Features
- Rotor Features
- Board Features
- Dual Layout
- Silkscreen
- Quick Guide To Parameters Selections
Reference
- Parameter Reference Single Coil Set Generator
- Parameter Reference Dual Coil Set Generator
- Checks, Errors And Warnings
- Electrical Estimate
- Suggestive Analysis And Optimization
- Project Output Organization
- Output Pictures
- KiCad Compatibility
- Regression Testing
Research And Community
