Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added parts that allow to modify their spice models #352

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions bins/more/sim.fzb
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,27 @@
</instance>
<!--
<instance moduleIdRef="d8f570d723ea4d14f9b61b34575a9699" modelIndex="40" path="Power plug.fzp"><views><iconView layer="icon"><geometry z="-1" x="-1" y="-1"/></iconView></views></instance><instance moduleIdRef="1238DBDC00-voltage-reg_7805" modelIndex="41" path="voltage_regulator_7805.fzp"><views><iconView layer="icon"><geometry z="-1" x="-1" y="-1"/></iconView></views></instance><instance moduleIdRef="fuse_with_handler_cff5" modelIndex="41" path="Fuse_with_Handler.fzp"><views><iconView layer="icon"><geometry z="-1" x="-1" y="-1"/></iconView></views></instance>-->
<instance modelIndex="3" moduleIdRef="__spacer__" path="Custom Spice Parts">
<views>
<iconView layer="icon">
<geometry x="-1" y="-1" z="-1"/>
</iconView>
</views>
</instance>
<instance modelIndex="9" moduleIdRef="SpiceDiodev1CustomSpiceModuleID" path="diode_custom_spice_v1.fzp">
<views>
<iconView layer="icon">
<geometry x="-1" y="-1" z="-1"/>
</iconView>
</views>
</instance>
<instance modelIndex="9" moduleIdRef="SpiceTransistorNPNv1CustomSpiceModuleID" path="transistor_signal_NPN_CBE_custom_spice_v1.fzp">
<views>
<iconView layer="icon">
<geometry x="-1" y="-1" z="-1"/>
</iconView>
</views>
</instance>
<instance modelIndex="3" moduleIdRef="__spacer__" path="Breadboard View">
<views>
<iconView layer="icon">
Expand Down
78 changes: 78 additions & 0 deletions core/diode_custom_spice_v1.fzp
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
<?xml version="1.0" encoding="UTF-8"?><module fritzingVersion="0.9.10" moduleId="SpiceDiodev1CustomSpiceModuleID">
<version>1</version>
<author>Andres Faina, based on Brendan Howell´s version</author>
<title>SPICE Diode</title>
<label>D</label>
<date>2022-12-08</date>
<tags>
<tag>diode</tag>
<tag>rectifier</tag>
<tag>semiconductor</tag>
<tag>fritzing core</tag>
</tags>
<properties>
<property name="family">Diode</property>
<property name="part number"></property>
<property name="spice model">IS=76.9p RS=42.0m BV=50.0 IBV=5.00u CJO=39.8p M=0.333 N=1.45 TT=4.32u</property>
</properties>
<description>A SPICE diode</description>
<spice>
<line>D{instanceTitle} {net connector1} {net connector0} MODEL_{instanceTitle}</line>
<!--These models are unique for each instance as they can be changed in the properties,
that is why the model is in a spice line-->
<line>.MODEL MODEL_{instanceTitle} D ({spice model})</line>
</spice>
<views>
<iconView>
<layers image="icon/basic-diode.svg">
<layer layerId="icon"/>
</layers>
</iconView>
<breadboardView fliphorizontal="true" flipvertical="true">
<layers image="breadboard/diode.svg">
<layer layerId="breadboard"/>
</layers>
</breadboardView>
<schematicView>
<layers image="schematic/diode.svg">
<layer layerId="schematic"/>
</layers>
</schematicView>
<pcbView>
<layers image="pcb/DO-41_diode_2_300mil_pcb.svg">
<layer layerId="copper0"/>
<layer layerId="silkscreen"/>
<layer layerId="copper1"/></layers>
</pcbView>
</views>
<connectors>
<connector id="connector0" name="cathode" type="male">
<description>Cathode Pin</description>
<views>
<breadboardView>
<p layer="breadboard" svgId="connector0pin" legId="connector0leg" />
</breadboardView>
<schematicView>
<p layer="schematic" svgId="connector0pin" terminalId="connector0terminal"/>
</schematicView>
<pcbView>
<p layer="copper0" svgId="connector0pin"/>
<p layer="copper1" svgId="connector0pin"/></pcbView>
</views>
</connector>
<connector id="connector1" name="anode" type="male">
<description>Anode Pin</description>
<views>
<breadboardView>
<p layer="breadboard" svgId="connector1pin" legId="connector1leg" />
</breadboardView>
<schematicView>
<p layer="schematic" svgId="connector1pin" terminalId="connector1terminal"/>
</schematicView>
<pcbView>
<p layer="copper0" svgId="connector1pin"/>
<p layer="copper1" svgId="connector1pin"/></pcbView>
</views>
</connector>
</connectors>
</module>
94 changes: 94 additions & 0 deletions core/transistor_signal_NPN_CBE_custom_spice_v1.fzp
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
<?xml version="1.0" encoding="UTF-8"?><module fritzingVersion="0.9.10" moduleId="SpiceTransistorNPNv1CustomSpiceModuleID">
<version>1</version>
<author>Andres Faina, based on Fabian Althaus´ version</author>
<title>SPICE NPN-Transistor</title>
<label>Q</label>
<date>2022-11-08</date>
<tags>
<tag>NPN</tag>
<tag>transistor</tag>
<tag>signal transistor</tag>
<tag>amplifier</tag>
<tag>fritzing core</tag>
</tags>
<properties>
<property name="family">Bipolar Transistor</property>
<!--The property below could be uncommented if we make all versions of the transistor-->
<!--<property name="type">NPN (CBE)</property>-->
<property name="spice model">BF=75 RB=100 CJE=1PF CJC=3PF</property>
</properties>
<description>A standard NPN-transistor</description>
<spice>
<line>Q{instanceTitle} {net connector2} {net connector1} {net connector0} MODEL_{instanceTitle}</line>
<!--These models are unique for each instance as they can be changed in the properties,
that is why the model is in a spice line-->
<line>.MODEL MODEL_{instanceTitle} NPN ({spice model})</line>
</spice>
<views>
<iconView>
<layers image="icon/basic_transistor_npnicon.svg">
<layer layerId="icon"/>
</layers>
</iconView>
<breadboardView>
<layers image="breadboard/transistor_npn.svg">
<layer layerId="breadboard"/>
</layers>
</breadboardView>
<schematicView fliphorizontal="true" flipvertical="true">
<layers image="schematic/basic_transistor_npn.svg">
<layer layerId="schematic"/>
</layers>
</schematicView>
<pcbView>
<layers image="pcb/TO92_3_100mil_pcb.svg">
<layer layerId="copper0"/>
<layer layerId="silkscreen"/>
<layer layerId="copper1"/></layers>
</pcbView>
</views>
<connectors>
<connector id="connector0" name="E" type="male">
<description>Emitter</description>
<views>
<breadboardView>
<p layer="breadboard" svgId="connector2pin" legId="connector2leg"/>
</breadboardView>
<schematicView>
<p layer="schematic" svgId="connector2pin" terminalId="connector2terminal"/>
</schematicView>
<pcbView>
<p layer="copper0" svgId="connector0pin"/>
<p layer="copper1" svgId="connector0pin"/></pcbView>
</views>
</connector>
<connector id="connector1" name="B" type="male">
<description>Base</description>
<views>
<breadboardView>
<p layer="breadboard" svgId="connector1pin" legId="connector1leg"/>
</breadboardView>
<schematicView>
<p layer="schematic" svgId="connector0pin" terminalId="connector0terminal"/>
</schematicView>
<pcbView>
<p layer="copper0" svgId="connector1pin"/>
<p layer="copper1" svgId="connector1pin"/></pcbView>
</views>
</connector>
<connector id="connector2" name="C" type="male">
<description>Collector</description>
<views>
<breadboardView>
<p layer="breadboard" svgId="connector0pin" legId="connector0leg"/>
</breadboardView>
<schematicView>
<p layer="schematic" svgId="connector1pin" terminalId="connector1terminal"/>
</schematicView>
<pcbView>
<p layer="copper0" svgId="connector2pin"/>
<p layer="copper1" svgId="connector2pin"/></pcbView>
</views>
</connector>
</connectors>
</module>