--- In [email protected], "wsterlingy" <[EMAIL PROTECTED]> wrote:
>
> Can anyone make the following Spice circuit in Kicad. I can't do it.
>
> series circuit
> v1 1 0
> r1 1 2 3k
> r2 2 3 10k
> r3 3 0 5k
> .dc v1 9 9 1
> .print dc v(1,2) v(2,3) v(3,0)
> .end
>
>
> -Sterling
>
no problem (look on test_dc.zip file)
1. create your circuit
2. create and put new module for voltage source with name V1 and some
value (a.e. 1V, not significant for DC analysis)
3. kicad generate for every wire own number, add your label to
significant wires (in this case generate kicad new names with "_1" ...
why ???)
4. create new component without terminals (pins) - you can add spice
commands to your netlist/circuit file
5. generate netlist -> spice format -> with Use Net Names
6. ignore error message "item not annotated .dc", press OK, Continue
your circuit file look so now:
* EESchema Netlist Version 1.1 (Spice format) creation date:
5/2/2007-22:17:57
.print dc v(b_1, a_1) v(a_1,gnd)
.dc v1 1 9 1
V1 c_1 GND 1V
R3 b_1 c_1 1k
R2 a_1 b_1 10k
R1 a_1 GND 5k
.end
7. simulate your circuit a.e. with ngspice
ngspice 16 -> print v(b_1,a_1) v(a_1,gnd)
* EESchema Netlist Version 1.1 (Spice format) creation date:
5/2/2007-22:46:43
DC transfer characteristic Mon Feb 5 23:47:16 2007
--------------------------------------------------------------------------------Index
v-sweep v(b_1,a_1) v(a_1,gnd)
--------------------------------------------------------------------------------0
1.000000e+00 6.250000e-01 3.125000e-01
1 2.000000e+00 1.250000e+00 6.250000e-01
2 3.000000e+00 1.875000e+00 9.375000e-01
3 4.000000e+00 2.500000e+00 1.250000e+00
4 5.000000e+00 3.125000e+00 1.562500e+00
5 6.000000e+00 3.750000e+00 1.875000e+00
6 7.000000e+00 4.375000e+00 2.187500e+00
7 8.000000e+00 5.000000e+00 2.500000e+00
8 9.000000e+00 5.625000e+00 2.812500e+00
ngspice 17 ->
good luck
peter