Hi there
I again try to simulate with an Opamp, the MCP6001.
Using “ngspice-30”, kicad-5.0.2-25…
I built a simple integrator circuit derived from the tutorial there:
http://ngspice.sourceforge.net/ngspice-eeschema.html#OpAmp
With the LF356 from the tutorial the simulation runs without issues.
I then changed the opamp to a MCP6001
downloaded this spice model
MCP6001.txt (5.8 KB)
and inserted into kicad with alternate node sequence “3 4 2 5 1”.
Thats the schematic:
This is the netlist:
.title KiCad schematic
.include "/home/p/store/projekte/kicad/mcp6001_spiceModel/MCP6001.txt"
V1 +5V 0 5
V2 -5V 0 -5
V3 IN 0 dc 0 ac 2
R1 Net-_C1-Pad2_ IN 15k
C1 OUT Net-_C1-Pad2_ 10n
R2 OUT Net-_C1-Pad2_ 380k
XU1 0 Net-_C1-Pad2_ +5V -5V OUT MCP6001
.ac dec 10 1 1k
.end
When I run the simulation i get this output/errors:
Circuit: KiCad schematic
Error on line 0 :
r.xu1.r61 0 xu1.61 100 tc 3.11m 4.51u
unknown parameter (4.51u)
Error on line 0 :
r.xu1.r62 0 xu1.62 xu1:rexp 58.2u
unknown parameter (xu1:rexp)
Warning: Model issue on line 0 :
.model xu1:rexp res tce=10.1 ...
Unknown model type res - ignored
Reducing trtol to 1 for xspice 'A' devices
Doing analysis at TEMP = 27,000000 and TNOM = 27,000000
Warning: r.xu1.r62: resistance to low, set to 1 mOhm
Note: Starting dynamic gmin stepping
Trying gmin = 1,0000E-03 Warning: Further gmin increment
Trying gmin = 5,6234E-03 Warning: Further gmin increment
Trying gmin = 8,6596E-03 Warning: Further gmin increment
Trying gmin = 9,6466E-03 Warning: Further gmin increment
Trying gmin = 9,9105E-03 Warning: Further gmin increment
Trying gmin = 9,9775E-03 Warning: Further gmin increment
Trying gmin = 9,9944E-03 Warning: Further gmin increment
Trying gmin = 9,9986E-03 Warning: Further gmin increment
Trying gmin = 9,9996E-03 Warning: Last gmin step failed
Warning: Dynamic gmin stepping failed
Note: Starting source stepping
Supplies reduced to 0,0000%
Trying gmin = 1,0000E-02 Warning: gmin step failed
Warning: source stepping failed
AC operating point failed -
Last Node Voltages
------------------
Node Last Voltage Previous Iter
---- ------------ -------------
+5v 0 0
-5v 0 0
in 0 0
net-_c1-pad2_ 7,78357e-05 -7,7828e-05 *
out 0,297825 -0,297825 *
xu1.10 0 0
xu1.11 0 0
xu1.12 0 0
xu1.20 0 0
xu1.21 0 0
xu1.26 0,000108911 0,000108911
xu1.27 -0,000435641 -0,000435647
xu1.71 0 0
xu1.14 -0,000680071 -0,000680065
xu1.62 0 0
xu1.15 0 0
xu1.16 0 0
xu1.gd16_int1 0 0
xu1.13 0 0
xu1.gd13_int1 7,7065e-19 -7,70575e-11
xu1.30 -90099 90099 *
xu1.31 1065,44 84,1682 *
xu1.gd31_int1 990,099 -0,990099 *
xu1.32 -111,594 -1092,87 *
xu1.gd32_int1 0,990099 -990,099 *
xu1.33 -8280,83 8280,83 *
xu1.34 -319941 319941 *
xu1.37 -29085,6 29085,6 *
xu1.38 -2592,04 2592,04 *
xu1.39 -2617,96 2617,96 *
xu1.35 -2566,38 2566,38 *
xu1.g35_int1 0,990099 -9,90099e-10 *
xu1.g36_int1 9,90099e-10 -0,990099 *
xu1.50 -325,11 325,11 *
xu1.57 -227,529 227,529 *
xu1.96 -226,398 226,398 *
xu1.55 -3,56541 -0,000693066 *
xu1.gd55_int1 -0,990099 9,90099e-10 *
xu1.56 0,00118812 3,29855 *
xu1.gd56_int1 9,90099e-10 -0,990099 *
xu1.51 90,009 -9,0009e-08 *
xu1.52 9,0009e-08 -90,009 *
xu1.gd51_int1 0,990099 -9,90099e-10 *
xu1.gd52_int1 9,90099e-10 -0,990099 *
xu1.99 0,00297904 -0,00297904 *
xu1.98 0,00980296 -0,00980296 *
xu1.g97_int1 0,00990099 -0,00990099 *
xu1.e97_int1 0,00300883 -0,00300883 *
xu1.61 0 0
xu1.g60_int1 0 0
xu1.70 0 0
b.xu1.bg60#branch 0 0
b.xu1.be97#branch 0 0
b.xu1.bg97#branch 0 0
b.xu1.bgd52#branch 0 0
b.xu1.bgd51#branch 0 0
b.xu1.bgd56#branch 0 0
b.xu1.bgd55#branch 0 0
b.xu1.bg36#branch 0 0
b.xu1.bg35#branch 0 0
b.xu1.bgd32#branch 0 0
b.xu1.bgd31#branch 0 0
b.xu1.bgd13#branch 0 0
b.xu1.bgd16#branch 0 0
l.xu1.l38#branch -28,7976 28,7976 *
e.xu1.e75#branch 0 0
e.xu1.e97#branch 0 0
e.xu1.e38#branch 0 0
v.xu1.v13#branch -7,78435e-19 7,78358e-11 *
v.xu1.v16#branch 0 0
v.xu1.v10#branch 0 0
v3#branch 5,13767e-09 -5,13716e-09 *
v2#branch -4,85128e-05 0,0890693 *
v1#branch -0,0890693 4,85127e-05 *
a$poly$e.xu1.e56#branch_1_0 9,80296e-10 -0,980296 *
a$poly$e.xu1.e55#branch_1_0 0,980296 -9,80296e-10 *
a$poly$e.xu1.e12#branch_1_0 0 0
doAnalyses: Too many iterations without convergence detected in routine "RESask"
run simulation(s) aborted
Cant I use this opamp model in kicad? Or I am doing it wrong?