Attached you will find some simulation examples for audio amplifiers, oscillators, power supplies, and other circuits.
All have been designed/tested with KiCad 6.0.2 / ngspice-36 or KiCad 6.0.10 and ngspice-38.
All will run with internal ngspice,
Inspect → Simulator → Run —> Add Signals
some (Tian probes) will require an additional external ngspice (mostly for its more complex interface and output capability)
File → Export → Netlist… → Create Netlist and Run Simulator Command
after having added the path to external ngspice into the ‘External Simulator Command’ text box (in my case for Windows 10 I have added
C:\Spice64\bin\ngspice-36 "%I" ).
I have put the examples here without comments, more info is due later on the ngspice web pages (as time allows).
There is no PCB work available, just schematic capture and simulation.
It may be necessary to do the following step (setting the compatibility):
Inspect → Simulator → Sim Parameters → Compatibility mode → PSPICE and LTSPICE
Integrated linear amp (LM3886), simple, real, Tian Probe
LM3886_simple.7z (9.8 KB)
LM3886.7z (14.2 KB)
LM3886-Tian.7z (17.4 KB)
The Tian probe may be used for a stability analysis of the feedback amplifier. More info is available in the attached project, file Tian.readme.
Pass Labs F5 Class A Audio Amplifier
PassLabsF5.7z (22.7 KB)
Information on this amplifier stems from https://www.firstwatt.com/pdf/art_f5_turbo.pdf, and there are extensive threads how to build it at F5 Turbo Builders Thread | diyAudio and F5Turbo Illustrated Build Guide | diyAudio .
Simple VDMOS Audio Amplifier
Dual-NMOS-Amp-VDMOS.7z (13.9 KB)
VDMOS Audio Amplifier with OpAmp, Optional Tian Probe
MOSAMP_VDMOS_601.7z (16.3 KB)
MOSAMP_VDMOS_601-TIAN.7z (18.6 KB)
A bipolar 741 operational amplifier
Including a desription and example how to generate a subcircuit model for the 741 with help of the Eeschema internal circuit.
741.7z (17.9 KB)
Sallen-Key-Bandpass Filter (Dual OpAmp)
sallen_key-bandpass-072.7z (10.1 KB)
Q17, a redesign of the famous QUAD405 High-End Audio Amplifier,
made by Tiberiu Vicol (Q17 - a QUAD405 audiophile approach to perfect sound | diyAudio). He designed circuit and PCB with KiCad, I have modified his files to enable simulation with KiCad/ngspice.
Q17.7z (39.3 KB)