Skip to main content
SchematicFreeNewv1.0.0

有源滤波器综合

巴特沃斯/切比雪夫极点综合定阶,Sallen-Key 与 MFB 二阶节元件计算并吸附 E12/E96,实算 f0/Q 与 GBW、压摆率校核;离线报告附粘贴清单。

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
Design a 1 kHz 2nd-order Butterworth low-pass as Sallen-Key, snap to E96, and check realized f0/Q against a 1 MHz GBW op-amp.

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

LCEDA filter / analog design bundle

Offline core re-implemented from the Apache-2.0 LCEDA plaza extension eext-filter-designer (FilterMath module); powerbridge / decoupling members are procedures (references/procedures.md). Active RC only — no LC/RLC.

Core

scripts/demo.mjs (Node >= 20, no deps):

  • Poles: Butterworth theta = pi/2 + pi(2k+1)/(2n); Chebyshev eps = sqrt(10^(ripple/10)-1), a = asinh(1/eps)/n, p = (-sinh(a) sin(theta), cosh(a) cos(theta)).
  • Order: Butterworth n = ceil(log10((10^(0.1As)-1)/(10^(0.1Ap)-1)) / (2 log10(fs/fp))), clamped to 4 (source MAX_ORDER).
  • Cascade: conjugate pair -> biquad w0=|p|, Q=w0/(2|Re p|); real pole -> first-order RC; stages sorted by f0; HP mirror f0 = fc/f0_norm.
  • Sallen-Key LP: C2 >= 4 Q^2 C1 * 1.02 (E12), R1+R2 = 1/(w0 Q C1), R1 R2 = 1/(w0^2 C1 C2) quadratic, resistors snapped to E96; realized f0 = 1/(2 pi sqrt(R1 R2 C1 C2)), Q = 1/(2 pi f0 C1 (R1+R2)).
  • MFB LP (Q>2 or gain>1.05): R3 = Q(K+1)/(K w0 C1), R2 = 1/(w0^2 C1 C2 R3), R1 = R3/K, gain -R3/R1; C2 = largest E12 <= C1/(4 Q^2 (K+1)) (feasibility rule, see PROVENANCE).
  • Op-amp checks: GBW >= 10 f0 Q max(gain,1); SR >= 2 pi f Vpk / 1e6 V/us.

Run

node scripts/demo.mjs --out-dir <dir> [--input <json>]

Default scripts/fixtures/input.json; stdout = edaskills.report.v1; artifact filter-stages.csv. Input: { opamp:{gbwHz, srVus}, specs:[{ response, filterType, order?|fcHz+fsHz+apDb+asDb, fcHz, gain?, rippleDb?, vPk? }] }.

When to use

  • Pick real E12/E96 parts for an active filter before schematic capture.
  • Check op-amp GBW/SR headroom per stage.

Not for: passive LC filters, band-pass transforms (in-editor extension), schematic paste (procedures), or tolerance/Monte-Carlo yield.

What you get

  • Order selection and pole parameters (Butterworth/Chebyshev)
  • Sallen-Key/MFB biquad R/C values with E12/E96 snapped alternatives
  • Realized f0/Q plus op-amp GBW and slew-rate check verdicts

Good fit for

  • Anti-aliasing and noise-filtering front-ends for sensor signals
  • Quick component selection for audio and measurement conditioning

Not for

  • Digital filter/DSP implementations
  • Passive LC power filters (this skill targets active-RC)
Before you start

You provide

  • Response type and cutoff/center frequency, ripple or order
  • Op-amp GBW and slew rate (for the checks)

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 · 2 warnings

node v24.19.0 · 2026/11/19

  • [info] STAGE (ANTI_ALIAS#1): sallen-key-lp f0 10043 Hz Q 0.71 gain 1.00
  • [info] STAGE (SENSOR_LP#1): sallen-key-lp f0 1003 Hz Q 1.30 gain 1.00
  • [info] STAGE (SENSOR_LP#2): sallen-key-lp f0 1003 Hz Q 0.54 gain 1.00
  • [warning] GBW_LOW (RF_LP#1): needs GBW 1.42 MHz > 1.00 MHz
  • [warning] SR_LOW (RF_LP#1): needs SR 1.26 V/us > 0.5

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.0Latest134.0 KB

    首发种子版本。

    License: MITSHA-256: caeec703de9febc4…

Related skills

No related skills
Skills with the same output type and use case will appear here.