skill
SPICE Simulation Skills
Public Made by Adomby adom
Pick, run and license the right SPICE simulator from an AI thread: ngspice in the container by default, LTspice and PSpice for TI on a Windows host for vendor models.
main
John Lauer
Publish 0.1.0
5442934
* Sallen-Key 2nd-order low-pass, fc~1 kHz, 1% R / 5% C tolerance
.param pr1=10k pr2=10k pc1=22n pc2=10n
Vin in 0 DC 0 AC 1
R1 in a {pr1}
R2 a b {pr2}
C1 a out {pc1}
C2 b 0 {pc2}
XU b out out OPAMP
.subckt OPAMP inp inn out
Gin 0 n1 inp inn 1m
R1 n1 0 100meg
C1 n1 0 15.9n
E2 out 0 n1 0 1
.ends
.control
ac dec 200 10 100k
let mag=abs(v(out))
meas ac f3db when mag=0.70711
.endc
.end