Low Cost PCB's Low Cost Components

Author Topic: Kicad based workflow including spice simulation  (Read 1214 times)

0 Members and 1 Guest are viewing this topic.

Online pitagoras

  • Regular Contributor
  • *
  • Posts: 102
  • Country: ar
Kicad based workflow including spice simulation
« on: March 26, 2017, 10:08:56 AM »

I'm trying to follow the standard (?) workflow, that is, draw the schematic, simulate it (mostly to be sure it's correct), generate the netlist for the pcb, create the pcb...
I followed this tutorial http://stffrdhrn.github.io/electronics/2015/04/28/simulating_kicad_schematics_in_spice.html
but I cannot make it work for my case, where I use a dual opamp chip (8 pins).

In my case netlist is generated like this for the opamp:

XU3  Net-_C2-Pad2_ Net-_D7-Pad1_ Net-_P2-Pad2_ VSS Net-_R17-Pad2_ Net-_D8-Pad1_ Net-_C3-Pad2_ VCC OPAMP

that is, both are considered the came circuit.

I tried to solve it prepending something like



.include NE5532.model

.subckt OPAMP 1 2 3 4 5 6 7 8
  * PINOUT ORDER  1 2 3 4 5 6 7 8
  * PINOUT ORDER OUT -IN +IN  VSS +IN -IN OUT VCC
  Xopa 3 2 8 4 1 NE5532
  Xopa 5 6 8 4 7 NE5532
.ends OPAMP

Which does not work because apparently it's illegal to use two Xopa inside a subckt

Does anyone have experience in this workflow using kicad? Does anyone have a sound tutorial more complete than the cited above?
Thanks

 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf