|
1 | | -# Introduction to Simulation in KiCad |
| 1 | +--- |
| 2 | +layout: default |
| 3 | +title: Introduction to Simulation in KiCad |
| 4 | +parent: KiCad Simulation Examples |
| 5 | +nav_order: 2 |
| 6 | +--- |
2 | 7 |
|
3 | | -Placeholder...check back later! |
| 8 | +KiCad includes an embedded circuit simulator that uses ngspice as its simulation engine and |
| 9 | +exposes simulation through the schematic editor UI. You build a simulation schematic, assign |
| 10 | +models to symbols, and run analyses to plot results. |
| 11 | + |
| 12 | +## What KiCad’s Simulator Is |
| 13 | + |
| 14 | +- **A graphical front end to ngspice**: KiCad integrates the open‑source ngspice engine and |
| 15 | + provides simulation tools directly in the schematic editor. |
| 16 | +- **Schematic‑driven**: You can run simulations from standard KiCad schematics once models |
| 17 | + are assigned and simulation directives are configured. |
| 18 | + |
| 19 | +## Core Analysis Types |
| 20 | + |
| 21 | +KiCad’s simulator exposes the standard ngspice analysis modes most commonly used in |
| 22 | +teaching and design: |
| 23 | + |
| 24 | +- **Operating Point (OP)** |
| 25 | +- **DC Sweep / DC Transfer** |
| 26 | +- **AC Sweep** |
| 27 | +- **Transient** |
| 28 | + |
| 29 | +Custom analysis directives are also supported for advanced use cases. |
| 30 | + |
| 31 | +## Practical Tips and Common Pitfalls |
| 32 | + |
| 33 | +- **Assign models before running**: KiCad ships SPICE‑oriented symbols, but you still need |
| 34 | + to attach appropriate SPICE models for many devices. |
| 35 | +- **Use probes or save settings**: If you don’t save all voltages/currents, you must probe |
| 36 | + or explicitly save the signals you want to plot. |
| 37 | +- **Bring your own third‑party models**: KiCad doesn’t bundle commercial SPICE libraries, |
| 38 | + but you can use manufacturer‑supplied models. |
| 39 | + |
| 40 | +## References |
| 41 | + |
| 42 | +- KiCad Simulation (official overview): |
| 43 | + - https://www.kicad.org/discover/spice/ |
| 44 | +- ngspice User’s Manual: |
| 45 | + - http://ngspice.sourceforge.net/docs/ngspice-manual.pdf |
0 commit comments