Hello all,
Running Mint Linux and KiCad 5.1.2-f72e74a~ubuntu16.04.1
As I am a newbee to NgSpice and not that experienced with KiCad I run into errors an trouble. With simulating a comparator circuit. What I did was the following:
I installed the latest version of KiCad like this:
This seems to work fine and KiCad looks great! I got some errors with simulation of nGSpice using a comparator so I thought maybe I can try a newer version of NgSpice Then I tried this:
http://ngspice.sourceforge.net/ngspice-eeschema.html
and the above site links to this one, which I also did:
But still errors. When I try the following command in the console
ngspice -v
the result is:
ngspice compiled from ngspice revision 26
So there are a few possibilities:
(1) there is still the old version providing me with the version number and the new version doing noting
(2)the new version is used by KiCad (do not know how to check this) and the old version of NgSpice is reacting in my console command telling me the old version
(3)Well I am a newbee and did not figure it out
I tried to download different models of opamps. tried to get rid of all the unnecessary parts and tried to find all the errors. Errors I can see but am unable to understand are the following:
when doing the error check in KiCad:
ERC report (Wed 29 May 2019 10:37:06 PM CEST, Encoding UTF8 )
***** Sheet /
ErrType(3): Pin connected to other pins, but not driven by any pin
@(251,46 mm, 57,15 mm): Pin 1 (Power input) of component #GND0101 is not driven (Net 1).
ErrType(3): Pin connected to other pins, but not driven by any pin
@(35,56 mm, 40,64 mm): Pin 1 (Input) of component Vsig1 is not driven (Net 5).
ErrType(3): Pin connected to other pins, but not driven by any pin
@(245,11 mm, 76,20 mm): Pin 2 (Input) of component Vcc1 is not driven (Net 9).
ErrType(3): Pin connected to other pins, but not driven by any pin
@(165,10 mm, 50,80 mm): Pin 4 (Power input) of component U2 is not driven (Net 10).
** ERC messages: 4 Errors 0 Warnings 4
When doing a simulation in nGSpice:
Circuit: KiCad schematic
Error on line 4 :
vu2 net-r3-pad1 net-r4-pad1 net-r8-pad2 net-u1-pad4 net-u1-pad5 opamp
unknown parameter (net)
Error on line 5 :
vu1 net-u1-pad1 net-r1-pad1 net-r1-pad1 net-u1-pad4 net-u1-pad5 opamp
unknown parameter (net)
Background thread stopped with timeout = 0
Doing analysis at TEMP = 27,000000 and TNOM = 27,000000
Warning: vu1: has no value, DC 0 assumed
Warning: vu2: has no value, DC 0 assumed
Warning: vsig1: no DC value, transient time 0 value used
Initial Transient Solution
Node Voltage
net-u1-pad1 1
net-r3-pad1 1,00962
net-r4-pad1 1,00962
net-r1-pad1 1
net-r8-pad2 0
net-r2-pad1 1,01923
net-u1-pad5 -5
net-u1-pad4 25
net-r2-pad2 3
vref1#branch -0,0198077
vcc2#branch 0
vcc1#branch 0
vu1#branch -0,00961438
vu2#branch 0,00961538
vsig1#branch 0,00961438
Reference value : 0,00000e+00
No. of Data Rows : 306
here is a picture of the scematic:
I hope someone can help me out. As I am a newbee I probably did not tell you guys all. If so please ask!
thanks for the help!