From 3366961e7881376d6192af92ff01f2dcf0b0a0c7 Mon Sep 17 00:00:00 2001 From: Vaino Kauppila Date: Sun, 11 Oct 2026 15:29:25 +0300 Subject: examples: R1/C1 tolerance corners + scipy.signal control cross-check The RC example now sweeps R1 (+-5%) and C1 (+-10%) extremes, reads the pole off each transient (tau = 1 - 1/e crossing, fc = 1/(2*pi*tau)), overlays the analytic scipy.signal step response per corner, and adds a Bode plot of H(s) = 1/(1 + sRC) with pole/cutoff comparison table. --- README.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index b44856e..3a5f848 100644 --- a/README.md +++ b/README.md @@ -53,10 +53,14 @@ raw files. ## Example -`examples/` is a small runnable demo: - -- `rc_lp.cir` — a plain ngspice netlist: 5 V step into 1 kΩ + 100 nF -- `rc_lp.py` — runs it with kisim and plots V(in)/V(out) +`examples/` is a small runnable demo — a 5 V step into an RC low-pass: + +- `rc_lp.cir` — a plain ngspice netlist (1 kΩ, 100 nF) +- `rc_lp.py` — runs it; then sweeps R1/C1 tolerance corners of the step + response (`corners` + `run_cases`), reading τ and the pole (f−3dB) off each + transient; then cross-checks the transient results against the control + model H(s) = 1/(1 + sRC) with `scipy.signal` — analytic step overlay, poles + and a Bode plot ```sh micromamba run -n kicad_work python examples/rc_lp.py -- cgit v1.3