We use cookies to provide our visitors with an optimal site experience. View our privacy notice and cookie notice to learn more about how we use cookies and how to manage your settings. By proceeding on our website you consent to the use of cookies.
Hello!
I am very new to KiCad, but have been able to successfully build and simulate simple circuits using passives. I’ve added a MOSFET to a simple circuit and started to get errors when I run the ngspice simulation.
I started by installing KiCad 5.1.5 from their website. I then installed the digikey library per this post:
The MOSFET I’ve added is AO3401A from the dk_Transistors-FETs-MOSFETs-Single.lib
The first set of similar errors I get in the simulator window are: “line no. 20, draw missing tokens”
Line 20 (and all of the other lines indicated) is simply “DRAW”
The second type of error that I see are similar to: “warning, can’t find model n”:
I just realized that I had pointed KiCAD to the schematic library instead of the SPICE model.
I downloaded the SPICE model from the manufacturers website and it seems to run just fine.
Funny thing is, in the schematic properties dialog i pressed “Edit Spice Model”, then selected a library with the “Select File” button… its automatically filtered for .lib files. The model I downloaded was a .mod file. A little confusing to a newbie, but it works fine now that i’ve gotten over that curve!
Is it true that i need to go to individual manufacturers to get individual component spice models, or are they bundled in another library file from DigiKey that I haven’t found yet?
@controlsfreek
Glad to hear you got this working. We do not bundle the spice models with the Digi-Key KiCad library. There are a couple of reasons why we have not included the spice models. One is the overall download size of the library, as we add more parts and start working on trying to add 3D models, the download size will expand. Another reason is keeping the most current spice models included with the library would be a file management nightmare.
I hope it didn’t cause too much of an inconvenience.