From 8d1ec49c8c4be99886aee4ff882685976f6f7e0c Mon Sep 17 00:00:00 2001 From: Edith Boles Date: Sat, 14 Jun 2025 14:39:27 -0700 Subject: [PATCH] fix sim again --- ece223_project.kicad_sch | 6 +- input_gain.kicad_sch | 2 +- rail_gen.kicad_sch | 347 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 351 insertions(+), 4 deletions(-) diff --git a/ece223_project.kicad_sch b/ece223_project.kicad_sch index 6ffc264..00ce79a 100644 --- a/ece223_project.kicad_sch +++ b/ece223_project.kicad_sch @@ -4008,7 +4008,7 @@ (hide yes) ) ) - (property "Sim.Params" "r=0" + (property "Sim.Params" "r=1m" (at 41.91 25.4 0) (effects (font @@ -5573,7 +5573,7 @@ (lib_id "Connector_Audio:AudioJack3") (at 29.21 69.85 0) (unit 1) - (exclude_from_sim no) + (exclude_from_sim yes) (in_bom yes) (on_board yes) (dnp no) @@ -5658,7 +5658,7 @@ (hide yes) ) ) - (property "Sim.Params" "dc=0 ampl=447m f=3k" + (property "Sim.Params" "dc=0 ampl=447m f=3k td=0 theta=0 phase=0 ac=447m" (at 29.21 69.85 0) (effects (font diff --git a/input_gain.kicad_sch b/input_gain.kicad_sch index b36bea6..2ce747d 100644 --- a/input_gain.kicad_sch +++ b/input_gain.kicad_sch @@ -1015,7 +1015,7 @@ (hide yes) ) ) - (property "Sim.Params" "pos=0.75" + (property "Sim.Params" "pos=0.032258" (at 86.36 54.61 0) (effects (font diff --git a/rail_gen.kicad_sch b/rail_gen.kicad_sch index dba0b0e..61d68cd 100644 --- a/rail_gen.kicad_sch +++ b/rail_gen.kicad_sch @@ -1051,6 +1051,194 @@ ) (embedded_fonts no) ) + (symbol "Simulation_SPICE:VSIN" + (pin_numbers + (hide yes) + ) + (pin_names + (offset 0.0254) + ) + (exclude_from_sim no) + (in_bom yes) + (on_board yes) + (property "Reference" "V" + (at 2.54 2.54 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (property "Value" "VSIN" + (at 2.54 0 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (property "Footprint" "" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Datasheet" "https://ngspice.sourceforge.io/docs/ngspice-html-manual/manual.xhtml#sec_Independent_Sources_for" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Description" "Voltage source, sinusoidal" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Sim.Pins" "1=+ 2=-" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Sim.Params" "dc=0 ampl=1 f=1k ac=1" + (at 2.54 -2.54 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (property "Sim.Type" "SIN" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Sim.Device" "V" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + (hide yes) + ) + ) + (property "ki_keywords" "simulation ac vac" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (symbol "VSIN_0_0" + (arc + (start -1.27 0) + (mid -0.635 0.6323) + (end 0 0) + (stroke + (width 0) + (type default) + ) + (fill + (type none) + ) + ) + (arc + (start 1.27 0) + (mid 0.635 -0.6323) + (end 0 0) + (stroke + (width 0) + (type default) + ) + (fill + (type none) + ) + ) + (text "+" + (at 0 1.905 0) + (effects + (font + (size 1.27 1.27) + ) + ) + ) + ) + (symbol "VSIN_0_1" + (circle + (center 0 0) + (radius 2.54) + (stroke + (width 0.254) + (type default) + ) + (fill + (type background) + ) + ) + ) + (symbol "VSIN_1_1" + (pin passive line + (at 0 5.08 270) + (length 2.54) + (name "~" + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (number "1" + (effects + (font + (size 1.27 1.27) + ) + ) + ) + ) + (pin passive line + (at 0 -5.08 90) + (length 2.54) + (name "~" + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (number "2" + (effects + (font + (size 1.27 1.27) + ) + ) + ) + ) + ) + (embedded_fonts no) + ) (symbol "power:PWR_FLAG" (power) (pin_numbers @@ -1153,6 +1341,17 @@ (embedded_fonts no) ) ) + (text ".param ss=0\n.options chgtol=1e-11 abstol=10u gmin=1e-10" + (exclude_from_sim yes) + (at 90.17 46.482 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + (uuid "1404ae1b-a744-43ef-aea0-32575896cb96") + ) (junction (at 44.45 53.34) (diameter 0) @@ -1513,6 +1712,50 @@ ) (uuid "fbd19471-3e9e-4a8a-8f4a-0bafd3419265") ) + (global_label "VREF" + (shape input) + (at 113.03 40.64 180) + (fields_autoplaced yes) + (effects + (font + (size 1.27 1.27) + ) + (justify right) + ) + (uuid "aaf5387b-a40c-4dc4-982c-a1e501bc620e") + (property "Intersheetrefs" "${INTERSHEET_REFS}" + (at 105.4486 40.64 0) + (effects + (font + (size 1.27 1.27) + ) + (justify right) + (hide yes) + ) + ) + ) + (global_label "IN" + (shape input) + (at 123.19 40.64 0) + (fields_autoplaced yes) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + (uuid "f3cb138b-54f7-4853-9117-c35e3bf6ef1f") + (property "Intersheetrefs" "${INTERSHEET_REFS}" + (at 128.1105 40.64 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + (hide yes) + ) + ) + ) (hierarchical_label "VIN+" (shape input) (at 39.37 53.34 180) @@ -2191,6 +2434,110 @@ ) ) ) + (symbol + (lib_id "Simulation_SPICE:VSIN") + (at 118.11 40.64 270) + (unit 1) + (exclude_from_sim no) + (in_bom yes) + (on_board yes) + (dnp no) + (fields_autoplaced yes) + (uuid "94a83408-390b-405a-a080-c1de7326a36f") + (property "Reference" "V1" + (at 118.2398 30.48 90) + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (property "Value" "VSIN" + (at 118.2398 33.02 90) + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (property "Footprint" "" + (at 118.11 40.64 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Datasheet" "https://ngspice.sourceforge.io/docs/ngspice-html-manual/manual.xhtml#sec_Independent_Sources_for" + (at 118.11 40.64 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Description" "Voltage source, sinusoidal" + (at 118.11 40.64 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Sim.Pins" "1=+ 2=-" + (at 118.11 40.64 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Sim.Params" "dc=0 ampl=447m f=1k ac=1" + (at 118.2398 35.56 90) + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (property "Sim.Type" "SIN" + (at 118.11 40.64 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Sim.Device" "V" + (at 118.11 40.64 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + (hide yes) + ) + ) + (pin "2" + (uuid "f76bf3db-1452-4a95-a937-0364bea192dc") + ) + (pin "1" + (uuid "d3ba9e60-ad33-463f-8fe1-7997a1f16dc3") + ) + (instances + (project "ece223_project" + (path "/3a60b8c4-9b6a-45e3-8d5f-2fa80fee2396/7683adc3-3937-403f-8f34-7becfe72007f" + (reference "V1") + (unit 1) + ) + ) + ) + ) (symbol (lib_id "Device:C") (at 44.45 68.58 0)