有源滤波器综合
巴特沃斯/切比雪夫极点综合定阶,Sallen-Key 与 MFB 二阶节元件计算并吸附 E12/E96,实算 f0/Q 与 GBW、压摆率校核;离线报告附粘贴清单。
Badges only claim the demo-run passed on that host; cross-host installation is handled by the adapter layer.
Preview gallery
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); Chebysheveps = 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 mirrorf0 = 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; realizedf0 = 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.
Dependencies
Demo run
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
Sign in to rate this skill.
Sign inVersions
- v1.0.0Latest134.0 KB
首发种子版本。
License: MITSHA-256: caeec703de9febc4…