I have not used subcircuits in ngspice or indeed KiCad before. Are there any simple circuits that I can try that are similar to the one referred to here in the QSPICE forum (which I started)?
I have asked about using a BC516 in the QSPICE forum, but apart from the model parameters I’m hoping it should be similar.
Also, what does the .1 refer to in the line above?
Check the model (draw a circuit diagramm by connecting the pins of the 2 transistors). The sequence in the Q line (bipolar instance) is C B E. Is it a darlington?
Q1 1 2 4 QPWR .1
Concerning the .1, have a look at the ngspice manual, chapter 7.3.1 Bipolar Junction Transistors (BJTs), which tells us about the instance of a bipolar transistor:
QXXXXXXX nc nb ne <ns> <tj> mname <area=val> <areac=val>
+ <areab=val> <m=val> <off> <ic=vbe,vce> <temp=val>
+ <dtemp=val>
There is no mention of a single number only after the model name mname. So we have to guess (or you have to look it up in the QSPICE manual). I assume that this number is equivalent to our
m = 0.1
The transistor is scaled by this value. This scaling seems to be reasonable, as the input transistor of the darlington may be smaller than its output device.