kicad:kicad_spice_quick_guide
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
kicad:kicad_spice_quick_guide [2012/09/24 02:13] – [Making it happen] mithat | kicad:kicad_spice_quick_guide [2018/09/09 14:52] – [Quick Guide to Using KiCad for SPICE Simulation] mithat | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Quick Guide to Using KiCad for SPICE Simulation ====== | ====== Quick Guide to Using KiCad for SPICE Simulation ====== | ||
+ | |||
+ | <WRAP center important 60%> | ||
+ | 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' | ||
+ | </ | ||
+ | |||
{{: | {{: | ||
Line 5: | Line 10: | ||
===== What you'll need ===== | ===== What you'll need ===== | ||
+ | You'll need the following to get a working SPICE setup: | ||
* [[http:// | * [[http:// | ||
Line 11: | Line 17: | ||
* [[https:// | * [[https:// | ||
* [[http:// | * [[http:// | ||
- | * [[http:// | + | * [[http:// |
- | * [[http:// | + | * [[http:// |
- | * (Your favorite goes here.) | + | * Any others? |
- | * Component | + | * Component |
- | * There is a library of basic SPICE components that ships with KiCad. It's good enough for initial experimentation. | + | * There is a library of basic SPICE components that ships with KiCad. It's good enough for initial experimentation. |
- | * In Debian-based Linux (and likely others), it's at ''/ | + | * I am developing |
- | * EESchema does not include this library in projects by default. | + | |
- | * I am maintaining | + | |
===== Configuring a project ===== | ===== Configuring a project ===== | ||
- Create a new project in the conventional way. | - Create a new project in the conventional way. | ||
- | - Open EESchema | + | - Open Eeschema |
- Manually add one or more libraries with SPICE components to the project. | - Manually add one or more libraries with SPICE components to the project. | ||
- | * The SPICE library that comes packaged with KiCad is //not// included by default in new KiCad projects. | + | * Note that the SPICE library that comes packaged with KiCad is //not// included by default in new KiCad projects. |
- | - Specify the SPICE engine you want to use. | + | - Specify the SPICE engine you want to use: |
* Click the " | * Click the " | ||
* Select the " | * Select the " | ||
Line 34: | Line 38: | ||
- Do your schematic capture, subject to a couple best practices: | - Do your schematic capture, subject to a couple best practices: | ||
* For named nets, use global labels instead of local labels. | * For named nets, use global labels instead of local labels. | ||
- | * In the netlists, global identifiers will be used as-is. However, | + | * The reason for this is that in the netlists, global identifiers will be used as-is but local labels get text prepended to the name---which makes it hard for you to remember/ |
* Use the "'' | * Use the "'' | ||
- | * "'' | + | * "'' |
- | - Specify | + | - To specify |
- | +pspice | + | +PSPICE |
.control | .control | ||
ac dec 66 1kHz 120kHz | ac dec 66 1kHz 120kHz | ||
Line 45: | Line 49: | ||
plot vp(vout) | plot vp(vout) | ||
.endc</ | .endc</ | ||
- | * The line '' | + | * The line '' |
- | * :!: There appears to be a bug in the parser that requires you to add a space after '' | + | * :!: There appears to be a bug in the parser that requires you to add a space after '' |
- | * There is a corresponding '' | + | * There is a corresponding '' |
- | * If you don't like seeing | + | * If you don't like seeing |
* Yes, this means you need to learn some [[http:// | * Yes, this means you need to learn some [[http:// | ||
- Run the simulation: | - Run the simulation: |
kicad/kicad_spice_quick_guide.txt · Last modified: 2018/10/17 14:56 by mithat