Skip to content

Commit

Permalink
added square, pwm and generic pulse power supplies, renamed ac power …
Browse files Browse the repository at this point in the history
…supply to sine
  • Loading branch information
failiz committed Apr 7, 2024
1 parent e6cc6ee commit 5d25c56
Show file tree
Hide file tree
Showing 10 changed files with 509 additions and 14 deletions.
2 changes: 1 addition & 1 deletion bins/core.fzb
Original file line number Diff line number Diff line change
Expand Up @@ -1176,7 +1176,7 @@
</iconView>
</views>
</instance>
<instance moduleIdRef="1_ACPowerSupplyModuleID" modelIndex="52" path=":/resources/parts/core/power_supply_ac_1.fzp">
<instance moduleIdRef="1_SinePowerSupplyModuleID" modelIndex="52" path=":/resources/parts/core/power_supply_sine_1.fzp">
<views>
<iconView layer="icon">
<geometry z="-1" x="-1" y="-1"/>
Expand Down
99 changes: 99 additions & 0 deletions core/power_supply_generic_pulse_1.fzp
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<module moduleId="1_GenericPulsePowerSupplyModuleID" fritzingVersion="0.9.10">
<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">generic pulse</property>
<property name="initial voltage">0V</property>
<property name="pulsed voltage">5V</property>
<property name="period">100ms</property>
<property name="pulse width">10ms</property>
<property name="delay time">0s</property>
<property name="rise time">0s</property>
<property name="fall time">0s</property>
<property name="number of pulses">0</property>
<property name="internal resistance">0.1&#937;</property>

</properties>
<taxonomy>discreteParts.power.wavegenerator.genericpulse</taxonomy>
<description>A generic pulse power symbol</description>
<spice>
<line>V{instanceTitle} {net connector0}_{instanceTitle}_aux {net connector1} PULSE({initial voltage} {pulsed voltage} {delay time} {rise time} {fall time} {pulse width} {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="schematic/power_supply_pulse_1_schematic.svg">
<layer layerId="icon"/>
</layers>
</iconView>
<breadboardView>
<layers image="breadboard/waveform_generator_generic_pulse_v1_breadboard.svg">
<layer layerId="breadboard"/>
</layers>
</breadboardView>
<schematicView>
<layers image="schematic/power_supply_generic_pulse_1_schematic.svg">
<layer layerId="schematic"/>
</layers>
</schematicView>
<pcbView>
<layers image="schematic/power_supply_generic_pulse_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>
8 changes: 3 additions & 5 deletions core/power_supply_pulse_1.fzp
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,20 @@
</tags>
<properties>
<property name="family">voltage source</property>
<property name="type">pulse power supply</property>
<property name="type">pulse</property>
<property name="initial voltage">0V</property>
<property name="pulsed voltage">5V</property>
<property name="period">100ms</property>
<property name="pulse width">10ms</property>
<property name="delay time">0s</property>
<property name="rise time">0s</property>
<property name="fall time">0s</property>
<property name="number of pulses">0</property>
<property name="internal resistance">0.1&#937;</property>

</properties>
<taxonomy>discreteParts.power.wavegenerator.genericpulse</taxonomy>
<description>A generic pulse power symbol</description>
<spice>
<line>V{instanceTitle} {net connector0}_{instanceTitle}_aux {net connector1} PULSE({initial voltage} {pulsed voltage} {delay time} {rise time} {fall time} {pulse width} {period} {number of pulses})</line>
<line>V{instanceTitle} {net connector0}_{instanceTitle}_aux {net connector1} PULSE({initial voltage} {pulsed voltage} {delay time} 1n 1n {pulse width} {period} {number of pulses})</line>
<line>R{instanceTitle} {net connector0}_{instanceTitle}_aux {net connector0} {internal resistance}</line>
</spice>
<views>
Expand All @@ -39,7 +37,7 @@
</layers>
</iconView>
<breadboardView>
<layers image="breadboard/waveform_generator_generic_pulse_v1_breadboard.svg">
<layers image="breadboard/waveform_generator_pulse_v1_breadboard.svg">
<layer layerId="breadboard"/>
</layers>
</breadboardView>
Expand Down
97 changes: 97 additions & 0 deletions core/power_supply_pwm_1.fzp
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<module moduleId="1_PWMPulsePowerSupplyModuleID" fritzingVersion="0.9.10">
<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">pulse width modlation (PWM)</property>
<property name="initial voltage">0V</property>
<property name="pulsed voltage">5V</property>
<property name="period">100ms</property>
<property name="duty cycle">25%</property>
<property name="delay time">0s</property>
<property name="number of pulses">0</property>
<property name="internal resistance">0.1&#937;</property>

</properties>
<taxonomy>discreteParts.power.wavegenerator.genericpulse</taxonomy>
<description>A generic pulse power symbol</description>
<spice>
<line>V{instanceTitle} {net connector0}_{instanceTitle}_aux {net connector1} PULSE({initial voltage} {pulsed voltage} {delay time} 1n 1n {{period}*{duty cycle}/100} {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="schematic/power_supply_pulse_1_schematic.svg">
<layer layerId="icon"/>
</layers>
</iconView>
<breadboardView>
<layers image="breadboard/waveform_generator_pwm_v1_breadboard.svg">
<layer layerId="breadboard"/>
</layers>
</breadboardView>
<schematicView>
<layers image="schematic/power_supply_pulse_1_schematic.svg">
<layer layerId="schematic"/>
</layers>
</schematicView>
<pcbView>
<layers image="schematic/power_supply_pulse_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>
2 changes: 1 addition & 1 deletion core/power_supply_sawtooth_1.fzp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</tags>
<properties>
<property name="family">voltage source</property>
<property name="type">sawtooth power supply</property>
<property name="type">sawtooth</property>
<property name="offset voltage">0V</property>
<property name="amplitude">5V</property>
<property name="delay time">0s</property>
Expand Down
10 changes: 5 additions & 5 deletions core/power_supply_ac_1.fzp → core/power_supply_sine_1.fzp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<module moduleId="1_ACPowerSupplyModuleID" fritzingVersion="0.9.10">
<module moduleId="1_SinePowerSupplyModuleID" fritzingVersion="0.9.10">
<version>5</version>
<author>Brendan Howell (modified by vanepp Apr 2023 and A. Faina)</author>
<title>AC Power</title>
Expand All @@ -13,17 +13,17 @@
</tags>
<properties>
<property name="family">voltage source</property>
<property name="type">ac power supply</property>
<property name="type">sinusoidal</property>
<property name="offset voltage">0V</property>
<property name="amplitude" showInLabel="yes">5V</property>
<property name="frequency">60Hz</property>
<property name="delay time">0s</property>
<property name="damping factor">0s-1</property>
<property name="phase">0degrees</property>
<property name="internal resistance">0.1&#937;</property>
<property name="internal resistance">0.1&#937;</property>
</properties>
<taxonomy>discreteParts.power.power.acpower</taxonomy>
<description>A generic ac power symbol</description>
<taxonomy>discreteParts.power.power.sinepower</taxonomy>
<description>A generic sinusoidal voltage source</description>
<spice>
<line>V{instanceTitle} {net connector0}_{instanceTitle}_aux {net connector1} SIN({offset voltage} {amplitude} {frequency} {delay time} {damping factor} {phase})</line>
<line>R{instanceTitle} {net connector0}_{instanceTitle}_aux {net connector0} {internal resistance}</line>
Expand Down
96 changes: 96 additions & 0 deletions core/power_supply_square_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_SquarePulsePowerSupplyModuleID" fritzingVersion="0.9.10">
<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">square pulse</property>
<property name="initial voltage">0V</property>
<property name="pulsed voltage">5V</property>
<property name="period">100ms</property>
<property name="delay time">0s</property>
<property name="number of pulses">0</property>
<property name="internal resistance">0.1&#937;</property>

</properties>
<taxonomy>discreteParts.power.wavegenerator.genericpulse</taxonomy>
<description>A generic pulse power symbol</description>
<spice>
<line>V{instanceTitle} {net connector0}_{instanceTitle}_aux {net connector1} PULSE({initial voltage} {pulsed voltage} {delay time} 1n 1n {{period}/2} {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="schematic/power_supply_pulse_1_schematic.svg">
<layer layerId="icon"/>
</layers>
</iconView>
<breadboardView>
<layers image="breadboard/waveform_generator_square_pulse_v1_breadboard.svg">
<layer layerId="breadboard"/>
</layers>
</breadboardView>
<schematicView>
<layers image="schematic/power_supply_pulse_1_schematic.svg">
<layer layerId="schematic"/>
</layers>
</schematicView>
<pcbView>
<layers image="schematic/power_supply_pulse_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>
4 changes: 2 additions & 2 deletions core/power_supply_triangular_1.fzp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</tags>
<properties>
<property name="family">voltage source</property>
<property name="type">triangular power supply</property>
<property name="type">triangular</property>
<property name="offset voltage">0V</property>
<property name="amplitude">5V</property>
<property name="delay time">0s</property>
Expand Down Expand Up @@ -46,7 +46,7 @@
</layers>
</schematicView>
<pcbView>
<layers image="schematic/power_supply_pulse_1_schematic.svg">
<layers image="schematic/power_supply_triangular_1_schematic.svg">
<layer layerId="schematic"/>
</layers>
</pcbView>
Expand Down
Loading

0 comments on commit 5d25c56

Please sign in to comment.