Skip to main content
ReviewFreeNewv1.0.0

电子工程计算器合集

微带/带状线阻抗与线宽反解、色环/EIA-96 贴片编码、电池/RC/分流/dBm/FSPL/噪声、串并联网络单未知数反解、Touchstone 解析、555/LM317/LED/过孔温升、LED 波长转 sRGB、工时计费;33 项计算一次出报告。

Installs: 0Rating: –Updated:
Claude CodeCursorCodexGemini CLI+2

Badges only claim the demo-run passed on that host; cross-host installation is handled by the adapter layer.

Preview gallery

You say
Run this calculator input: synthesize a 50-ohm microstrip width, decode SMD 01C, solve the unknown network resistor, validate the Touchstone file, and give the display color of a 630nm LED.

Content matches the files inside the package; extracted by the publish pipeline.

lceda-calc-toolbox-core

嘉立创 EDA 计算器类扩展(eda-toolbox / easytools / unusual-box / eext-led-light-helper / workload-money-meter)的离线可运行核心。不依赖 编辑器,Node ≥ 20 直接运行,stdout 即契约报告。

What the script computes

  • 传输线:Hammerstad 微带 Z0/εeff(含铜厚有效线宽修正)、目标阻抗 80 次二分反解线宽、对称带状线 Z0、趋肤深度与方阻 Rs=√(πfμ0/σ)。
  • 电阻编码:4/5/6 色环解码(第 6 环 TCR 不在表内给 TCR_UNKNOWN 警告)与 4/5 环编码;贴片 3/4 位数字、R 小数、EIA-96(01–96 序号 × Z/Y/X/A/B/C/D/E/F 倍率,E96 值与源表逐项一致)。
  • 电源与无源:电池续航 h=容量×效率/负载;电容放电 t=RC·ln(V0/Vt) 与储能 ½CV²;RC τ 与 −3dB 频率;并联分流 Gk=1/Rk。
  • 射频:dBm↔mW/W/dBW/Vrms(50Ω);FSPL=92.45+20log f(GHz)+20log d(km); 噪声温度 T=290(F−1)。
  • 网络反解:串并联 R/C 树(C 与 R 串并联规则相反),≤100 叶 ≤8 层; 恰含一个 "?" 时按单调性对数二分反解目标等效值。
  • Touchstone:.s1p/.s2p 选项行(默认 GHz S MA R 50)、MA/DB/RI、 D/d 指数、频率必须严格递增,列数/单调性错误显式报错。
  • 经典电路:555 无稳态 th/tl/f/占空比;LM317 Vout=1.25(1+R2/R1); LED 限流 R=(Vs−Vf)/I 与功耗;IPC-2221 过孔温升(外部 k=0.048, 截面积 πdt mm²×1550→mil²)。
  • 光电与工时:LED 高斯谱(σ=FWHM/2.355)× CIE 1931 2° 表 (380–730nm,随包数据)→ XYZ 归一 → sRGB 矩阵 → gamma,输出色卡 SVG;工时成本 = 分钟×费率 + 焊盘数×单价(日志按 焊盘: Total N 计数)。

Run

node scripts/demo.mjs --out-dir reports
# 可选:--input path/to/input.json(默认 scripts/fixtures/input.json)

报告:schema: edaskills.report.v1,verdict pass / pass_with_warnings / fail;artifacts 含 calculations.csv 与 led-swatches.svg。

When to use

  • 布局前算阻抗线宽、过孔载流温升、限流/分压/滤波参数;
  • 读色环与贴片丝印编码、核对 BOM 阻值;
  • 解析仿真/矢网导出的 Touchstone 文件头与数据合法性;
  • 预估 LED 指示灯颜色与调试工时成本。

Not for

  • 不做场求解级精度(微带为 Hammerstad 近似,毫米波/耦合线请用场求解器);
  • 不替代 IPC-2152 精细载流(本核心用 IPC-2221 保守公式);
  • 不连接编辑器、不写原理图/PCB;写回流程见 references/procedures.md。

What you get

  • 33 calculation results in CSV: impedance/width synthesis, temp rise, current limiting and more
  • E96 table verified entry-by-entry against the source; invalid inputs fail loudly, never NaN
  • LED wavelength-to-sRGB swatch SVG (CIE 1931 table bundled)

Good fit for

  • Pre-layout impedance widths, via temp rise, limiting/divider/filter values
  • Reading color bands and SMD markings, checking BOM values, pre-validating Touchstone
  • Estimating indicator LED color and debug labor cost

Not for

  • Field-solver accuracy (Hammerstad approximation; use a solver for coupled diff pairs / mmWave)
  • Fine IPC-2152 ampacity (this core uses the conservative IPC-2221 formula)
Before you start

You provide

  • Per-calculator parameters (geometry mm, frequency Hz, resistance ohm; see fixtures)
  • Optional: Touchstone text, color bands / SMD codes
  • Labor item: log text + per-minute rate + per-pad rate

Environment

  • node ≥ 20

Last tested

v1.0.0 · Claude Code, Cursor, Codex, Gemini CLI · Ran 2026/11/19

Dependencies

No dependencies
This skill works standalone.

Demo run

Passed with warnings0 errors · 1 warnings

lceda-calc-toolbox-core 1.0.0 · 2026/11/19

  • [info] MICROSTRIP (ms-50r-fr4): {"z0Ohm":49.9399,"eEff":3.38025,"weMm":3.05031}
  • [info] MICROSTRIP (ms-thin): {"z0Ohm":55.5114,"eEff":3.32946,"weMm":0.317768}
  • [info] MICROSTRIP_SYNTH (synth-50): {"wMm":2.99388,"achievedZ0Ohm":50}
  • [info] MICROSTRIP_SYNTH (synth-90-usb): {"wMm":0.433784,"achievedZ0Ohm":45}
  • [info] STRIPLINE (sl-inner): {"z0Ohm":97.7578}

FAQ

Ratings & reviews

Not rated0 ratings

5 star0
4 star0
3 star0
2 star0
1 star0

Sign in to rate this skill.

Sign in

Versions

  • v1.0.0Latest341.9 KB

    首发种子版本。

    License: MITSourceSHA-256: 5acb398ff9a99ed7…

Related skills