The following was written for KiCad 4. Simulation support in KiCad 5 has been reworked to such an extent that a lot of the following doesn't work.
If you have KiCad 4 SPICE stuff you'd like to use in KiCad 5, have a look here.
This is written up assuming you know the basics of using KiCad already.
You'll need the following to get a working SPICE setup:
/usr/share/kicad/library/pspice.lib
.0
” component from a SPICE component library rather than the GND
symbol.0
” is the official name of ground node in SPICE. Some engines may translate GND
into 0
, some may not.vout
:+PSPICE .control ac dec 66 1kHz 120kHz plot vdb(vout) set units = degrees plot vp(vout) .endc
+PSPICE
is KiCad-speak for, “Stick the following text at the end of a SPICE netlist.”+PSPICE
and before the line break.-PSPICE
that is KiCad-speak for, “Stick the following text at the start of a SPICE netlist.”+GNUCAP
and -GNUCAP
instead. I believe they are exact synonyms in this context, but I am not certain.