Skip to content

Commit

Permalink
added sawtooth wavegenerator. Triangular wavegenerator uses rise and …
Browse files Browse the repository at this point in the history
…fall time equal to half the period (avoids problems when swapping from a pulse to a triangular signal). Added sch symbols for both wavegenerators.
  • Loading branch information
failiz committed Apr 6, 2024
1 parent 681157a commit e6cc6ee
Show file tree
Hide file tree
Showing 5 changed files with 417 additions and 4 deletions.
96 changes: 96 additions & 0 deletions core/power_supply_sawtooth_1.fzp
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<module moduleId="1_SawtoothPowerSupplyModuleID" fritzingVersion="1.0.2">
<version>1</version>
<author>Brendan Howell (modified by vanepp Apr 2023 and A. Faina)</author>
<title>Pulse Power</title>
<date>2008-07-28</date>
<label>V</label>
<tags>
<tag>ac power</tag>
<tag>symbol</tag>
<tag>fritzing core</tag>
<tag>voltage source</tag>
</tags>
<properties>
<property name="family">voltage source</property>
<property name="type">sawtooth power supply</property>
<property name="offset voltage">0V</property>
<property name="amplitude">5V</property>
<property name="delay time">0s</property>
<property name="period">20ms</property>
<property name="number of pulses">0</property>
<property name="internal resistance">0.1&#937;</property>

</properties>
<taxonomy>discreteParts.power.wavegenerator.sawtooth</taxonomy>
<description>A sawtooth power symbol</description>
<spice>
<line>V{instanceTitle} {net connector0}_{instanceTitle}_aux {net connector1} PULSE({-1*{amplitude}+{offset voltage}} {{amplitude}+{offset voltage}} {delay time} {period} 1n 1n {period} {number of pulses})</line>
<line>R{instanceTitle} {net connector0}_{instanceTitle}_aux {net connector0} {internal resistance}</line>
</spice>
<views>
<defaultUnits>cmil</defaultUnits>
<iconView>
<layers image="breadboard/waveform_generator_sawtooth_v1_breadboard.svg">
<layer layerId="icon"/>
</layers>
</iconView>
<breadboardView>
<layers image="breadboard/waveform_generator_sawtooth_v1_breadboard.svg">
<layer layerId="breadboard"/>
</layers>
</breadboardView>
<schematicView>
<layers image="schematic/power_supply_sawtooth_1_schematic.svg">
<layer layerId="schematic"/>
</layers>
</schematicView>
<pcbView>
<layers image="schematic/power_supply_sawtooth_1_schematic.svg">
<layer layerId="schematic"/>
</layers>
</pcbView>
</views>
<connectors>
<connector type="female" id="connector0" name="V+">
<description>Positive Supply Voltage</description>
<erc etype="VCC">
<voltage value="5.0"/>
<current flow="source" valueMax="0"/>
</erc>
<views>
<breadboardView>
<p svgId="connector0pin" layer="breadboard"/>
</breadboardView>
<schematicView>
<p svgId="connector0pin" layer="schematic" terminalId="connector0terminal"/>
</schematicView>
<pcbView>
<p svgId="connector0pin" layer="schematic"/>
</pcbView>
</views>
</connector>
<connector type="female" id="connector1" name="V-">
<description>Negative Supply Voltage</description>
<views>
<breadboardView>
<p svgId="connector1pin" layer="breadboard"/>
</breadboardView>
<schematicView>
<p svgId="connector1pin" layer="schematic" terminalId="connector1terminal"/>
</schematicView>
<pcbView>
<p svgId="connector1pin" layer="schematic"/>
</pcbView>
</views>
</connector>
</connectors>
<buses>
<bus id="powerbus">
<nodeMember connectorId="connector0"/>
</bus>
<bus id="groundbus">
<nodeMember connectorId="connector1"/>
</bus>
</buses>
</module>
7 changes: 3 additions & 4 deletions core/power_supply_triangular_1.fzp
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,15 @@
<property name="offset voltage">0V</property>
<property name="amplitude">5V</property>
<property name="delay time">0s</property>
<property name="rise time">10ms</property>
<property name="fall time">10ms</property>
<property name="period">20ms</property>
<property name="number of pulses">0</property>
<property name="internal resistance">0.1&#937;</property>

</properties>
<taxonomy>discreteParts.power.wavegenerator.triangular</taxonomy>
<description>A triangular power symbol</description>
<spice>
<line>V{instanceTitle} {net connector0}_{instanceTitle}_aux {net connector1} PULSE({-1*{amplitude}+{offset voltage}} {{amplitude}+{offset voltage}} {delay time} {rise time} {fall time} 1n {{rise time}+{fall time}} {number of pulses})</line>
<line>V{instanceTitle} {net connector0}_{instanceTitle}_aux {net connector1} PULSE({-1*{amplitude}+{offset voltage}} {{amplitude}+{offset voltage}} {delay time} {{period}/2} {{period}/2} 1n {period} {number of pulses})</line>
<line>R{instanceTitle} {net connector0}_{instanceTitle}_aux {net connector0} {internal resistance}</line>
</spice>
<views>
Expand All @@ -42,7 +41,7 @@
</layers>
</breadboardView>
<schematicView>
<layers image="schematic/power_supply_pulse_1_schematic.svg">
<layers image="schematic/power_supply_triangular_1_schematic.svg">
<layer layerId="schematic"/>
</layers>
</schematicView>
Expand Down
Loading

0 comments on commit e6cc6ee

Please sign in to comment.