Improve rectifier demo

This demo project used old symbols that don't match the current style of
the library. Replace them with the correct ones.
But also move them to the project library again.
Add a workbook that has the simulation traces selected.
This commit is contained in:
Carsten Presser 2025-03-28 21:44:19 +01:00 committed by Wayne Stambaugh
parent 79fbae00ce
commit 33ee9e99fe
5 changed files with 2314 additions and 835 deletions

View File

@ -23,6 +23,14 @@
"track_widths": [],
"via_dimensions": []
},
"ipc2581": {
"dist": "",
"distpn": "",
"internal_id": "",
"mfg": "",
"mpn": ""
},
"layer_pairs": [],
"layer_presets": [],
"viewports": []
},
@ -217,10 +225,15 @@
"duplicate_sheet_names": "error",
"endpoint_off_grid": "warning",
"extra_units": "error",
"footprint_filter": "ignore",
"footprint_link_issues": "warning",
"four_way_junction": "ignore",
"global_label_dangling": "warning",
"hier_label_mismatch": "error",
"label_dangling": "error",
"label_multiple_wires": "warning",
"lib_symbol_issues": "warning",
"lib_symbol_mismatch": "warning",
"missing_bidi_pin": "warning",
"missing_input_pin": "warning",
"missing_power_pin": "error",
@ -233,9 +246,14 @@
"pin_not_driven": "error",
"pin_to_pin": "warning",
"power_pin_not_driven": "error",
"same_local_global_label": "warning",
"similar_label_and_power": "warning",
"similar_labels": "warning",
"similar_power": "warning",
"simulation_model_issue": "error",
"single_global_label": "ignore",
"unannotated": "error",
"unconnected_wire_endpoint": "warning",
"unit_value_mismatch": "error",
"unresolved_variable": "error",
"wire_dangling": "error"
@ -247,7 +265,7 @@
},
"meta": {
"filename": "rectifier.kicad_pro",
"version": 1
"version": 3
},
"net_settings": {
"classes": [
@ -262,6 +280,7 @@
"microvia_drill": 0.1,
"name": "Default",
"pcb_color": "rgba(0, 0, 0, 0.000)",
"priority": 2147483647,
"schematic_color": "rgba(0, 0, 0, 0.000)",
"track_width": 0.25,
"via_diameter": 0.8,
@ -270,7 +289,7 @@
}
],
"meta": {
"version": 3
"version": 4
},
"net_colors": null,
"netclass_assignments": null,
@ -281,14 +300,89 @@
"gencad": "",
"idf": "",
"netlist": "",
"plot": "",
"pos_files": "",
"specctra_dsn": "",
"step": "",
"svg": "",
"vrml": ""
},
"page_layout_descr_file": ""
},
"schematic": {
"annotate_start_num": 0,
"bom_export_filename": "${PROJECTNAME}.csv",
"bom_fmt_presets": [],
"bom_fmt_settings": {
"field_delimiter": ",",
"keep_line_breaks": false,
"keep_tabs": false,
"name": "CSV",
"ref_delimiter": ",",
"ref_range_delimiter": "",
"string_delimiter": "\""
},
"bom_presets": [],
"bom_settings": {
"exclude_dnp": false,
"fields_ordered": [
{
"group_by": false,
"label": "Reference",
"name": "Reference",
"show": true
},
{
"group_by": false,
"label": "Qty",
"name": "${QUANTITY}",
"show": true
},
{
"group_by": true,
"label": "Value",
"name": "Value",
"show": true
},
{
"group_by": true,
"label": "DNP",
"name": "${DNP}",
"show": true
},
{
"group_by": true,
"label": "Exclude from BOM",
"name": "${EXCLUDE_FROM_BOM}",
"show": true
},
{
"group_by": true,
"label": "Exclude from Board",
"name": "${EXCLUDE_FROM_BOARD}",
"show": true
},
{
"group_by": true,
"label": "Footprint",
"name": "Footprint",
"show": true
},
{
"group_by": false,
"label": "Datasheet",
"name": "Datasheet",
"show": true
}
],
"filter_string": "",
"group_symbols": true,
"include_excluded_from_bom": true,
"name": "Default Editing",
"sort_asc": true,
"sort_field": "Reference"
},
"connection_grid_size": 50.0,
"drawing": {
"dashed_lines_dash_length_ratio": 12.0,
"dashed_lines_gap_length_ratio": 3.0,
@ -305,6 +399,11 @@
"intersheets_ref_suffix": "",
"junction_size_choice": 3,
"label_size_ratio": 0.3,
"operating_point_overlay_i_precision": 3,
"operating_point_overlay_i_range": "~A",
"operating_point_overlay_v_precision": 3,
"operating_point_overlay_v_range": "~V",
"overbar_offset_ratio": 1.23,
"pin_symbol_size": 25.0,
"text_offset_ratio": 0.3
},
@ -320,16 +419,18 @@
"meta": {
"version": 0
},
"model_mode": 0,
"workbook_filename": ""
"model_mode": 4,
"workbook_filename": "rectifier.wbk"
},
"page_layout_descr_file": "",
"plot_directory": "",
"space_save_all_events": true,
"spice_adjust_passive_values": false,
"spice_current_sheet_as_root": false,
"spice_external_command": "spice \"%I\"",
"spice_model_current_sheet_as_root": true,
"spice_save_all_currents": false,
"spice_save_all_dissipations": false,
"spice_save_all_voltages": false,
"subpart_first_id": 65,
"subpart_id_separator": 0
@ -337,7 +438,7 @@
"sheets": [
[
"faea1833-708f-41af-98f4-4de67f419dbb",
""
"Root"
]
],
"text_variables": {}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,38 @@
{
"last_sch_text_sim_command": ".tran 1u 10m",
"tabs": [
{
"analysis": "TRAN",
"commands": [
".tran 1u 10m",
".kicad adjustpaths",
".save all",
".probe alli",
".probe allp"
],
"dottedSecondary": false,
"margins": {
"bottom": 45,
"left": 70,
"right": 70,
"top": 30
},
"measurements": [],
"showGrid": true,
"traces": [
{
"color": "rgb(55, 126, 184)",
"signal": "V(/rect_out)",
"trace_type": 257
},
{
"color": "rgb(228, 26, 28)",
"signal": "V(/signal_in)",
"trace_type": 257
}
]
}
],
"user_defined_signals": [],
"version": 6
}

View File

@ -1,217 +1,711 @@
(kicad_symbol_lib (version 20220331) (generator kicad_symbol_editor)
(symbol "C" (pin_names (offset 0) hide) (in_bom yes) (on_board yes)
(property "Reference" "C" (id 0) (at 0.635 2.54 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Value" "C" (id 1) (at 0.635 -2.54 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Footprint" "" (id 2) (at 0.9652 -3.81 0)
(effects (font (size 1.27 1.27)))
)
(property "Datasheet" "" (id 3) (at 0 0 0)
(effects (font (size 1.27 1.27)))
)
(property "ki_fp_filters" "C? C_????_* C_???? SMD*_c Capacitor* Capacitors_ThroughHole:C_Radial_D10_L13_P5 Capacitors_SMD:C_0805 Capacitors_SMD:C_1206" (id 4) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(symbol "C_0_1"
(polyline
(pts
(xy -2.032 -0.762)
(xy 2.032 -0.762)
)
(stroke (width 0.508) (type default))
(fill (type none))
)
(polyline
(pts
(xy -2.032 0.762)
(xy 2.032 0.762)
)
(stroke (width 0.508) (type default))
(fill (type none))
)
)
(symbol "C_1_1"
(pin passive line (at 0 3.81 270) (length 2.794)
(name "" (effects (font (size 0.508 0.508))))
(number "1" (effects (font (size 0.508 0.508))))
)
(pin passive line (at 0 -3.81 90) (length 2.794)
(name "2" (effects (font (size 0.508 0.508))))
(number "2" (effects (font (size 0.508 0.508))))
)
)
)
(symbol "D" (pin_names (offset 0)) (in_bom yes) (on_board yes)
(property "Reference" "D" (id 0) (at 0 2.54 0)
(effects (font (size 1.27 1.27)))
)
(property "Value" "D" (id 1) (at 0 -2.54 0)
(effects (font (size 1.27 1.27)))
)
(property "Footprint" "" (id 2) (at 0 0 0)
(effects (font (size 1.27 1.27)))
)
(property "Datasheet" "" (id 3) (at 0 0 0)
(effects (font (size 1.27 1.27)))
)
(property "ki_fp_filters" "Diode_* D-Pak_TO252AA *SingleDiode *_Diode_* *SingleDiode*" (id 4) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(symbol "D_0_1"
(polyline
(pts
(xy -1.27 1.27)
(xy -1.27 -1.27)
)
(stroke (width 0.1524) (type default))
(fill (type none))
)
(polyline
(pts
(xy 1.27 1.27)
(xy -1.27 0)
(xy 1.27 -1.27)
)
(stroke (width 0) (type default))
(fill (type outline))
)
)
(symbol "D_1_1"
(pin passive line (at -3.81 0 0) (length 2.54)
(name "K" (effects (font (size 0.508 0.508))))
(number "1" (effects (font (size 0.508 0.508))))
)
(pin passive line (at 3.81 0 180) (length 2.54)
(name "A" (effects (font (size 0.508 0.508))))
(number "2" (effects (font (size 0.508 0.508))))
)
)
)
(symbol "GND" (power) (pin_names (offset 0)) (in_bom yes) (on_board yes)
(property "Reference" "#PWR" (id 0) (at 0 -3.81 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Value" "GND" (id 1) (at 0 -3.1242 0)
(effects (font (size 0.762 0.762)))
)
(property "Footprint" "" (id 2) (at 0 0 0)
(effects (font (size 1.524 1.524)))
)
(property "Datasheet" "" (id 3) (at 0 0 0)
(effects (font (size 1.524 1.524)))
)
(symbol "GND_0_1"
(polyline
(pts
(xy 0 0)
(xy 0 -1.27)
(xy 1.27 -1.27)
(xy 0 -2.54)
(xy -1.27 -1.27)
(xy 0 -1.27)
)
(stroke (width 0) (type default))
(fill (type none))
)
)
(symbol "GND_1_1"
(pin power_in line (at 0 0 270) (length 0) hide
(name "GND" (effects (font (size 0.762 0.762))))
(number "1" (effects (font (size 0.508 0.508))))
)
)
)
(symbol "R" (pin_names (offset 0) hide) (in_bom yes) (on_board yes)
(property "Reference" "R" (id 0) (at 2.032 0 90)
(effects (font (size 1.27 1.27)))
)
(property "Value" "R" (id 1) (at 0 0 90)
(effects (font (size 1.27 1.27)))
)
(property "Footprint" "" (id 2) (at -1.778 0 90)
(effects (font (size 1.27 1.27)))
)
(property "Datasheet" "" (id 3) (at 0 0 0)
(effects (font (size 1.27 1.27)))
)
(property "ki_fp_filters" "R_* Resistor_*" (id 4) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(symbol "R_0_1"
(rectangle (start -1.016 -2.54) (end 1.016 2.54)
(stroke (width 0.254) (type default))
(fill (type none))
)
)
(symbol "R_1_1"
(pin passive line (at 0 3.81 270) (length 1.27)
(name "1" (effects (font (size 0.508 0.508))))
(number "1" (effects (font (size 0.508 0.508))))
)
(pin passive line (at 0 -3.81 90) (length 1.27)
(name "2" (effects (font (size 0.508 0.508))))
(number "2" (effects (font (size 0.508 0.508))))
)
)
)
(symbol "VSOURCE" (pin_names (offset 1.016)) (in_bom yes) (on_board yes)
(property "Reference" "V" (id 0) (at 5.08 5.08 0)
(effects (font (size 1.27 1.27)))
)
(property "Value" "VSOURCE" (id 1) (at 6.35 2.54 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Footprint" "" (id 2) (at 0 0 0)
(effects (font (size 1.27 1.27)))
)
(property "Datasheet" "" (id 3) (at 0 0 0)
(effects (font (size 1.27 1.27)))
)
(property "Fieldname" "Value" (id 4) (at 0 0 0)
(effects (font (size 1.524 1.524)) hide)
)
(property "Spice_Primitive" "V" (id 5) (at 0 0 0)
(effects (font (size 1.524 1.524)) hide)
)
(property "Spice_Node_Sequence" "1 2" (id 6) (at -7.62 5.08 0)
(effects (font (size 1.524 1.524)) hide)
)
(symbol "VSOURCE_0_1"
(polyline
(pts
(xy 0 -1.905)
(xy 0 1.905)
)
(stroke (width 0) (type default))
(fill (type none))
)
(polyline
(pts
(xy 0 1.905)
(xy -0.635 0.635)
(xy 0.635 0.635)
(xy 0 1.905)
)
(stroke (width 0) (type default))
(fill (type outline))
)
(circle (center 0 0) (radius 2.54)
(stroke (width 0) (type default))
(fill (type none))
)
)
(symbol "VSOURCE_1_1"
(pin input 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 input 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))))
)
)
)
(kicad_symbol_lib
(version 20241209)
(generator "kicad_symbol_editor")
(generator_version "9.0")
(symbol "C"
(pin_numbers
(hide yes)
)
(pin_names
(offset 0.254)
)
(exclude_from_sim no)
(in_bom yes)
(on_board yes)
(property "Reference" "C"
(at 0.635 2.54 0)
(effects
(font
(size 1.27 1.27)
)
(justify left)
)
)
(property "Value" "C"
(at 0.635 -2.54 0)
(effects
(font
(size 1.27 1.27)
)
(justify left)
)
)
(property "Footprint" ""
(at 0.9652 -3.81 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "Datasheet" "~"
(at 0 0 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "Description" "Unpolarized capacitor"
(at 0 0 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "ki_keywords" "cap capacitor"
(at 0 0 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "ki_fp_filters" "C_*"
(at 0 0 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(symbol "C_0_1"
(polyline
(pts
(xy -2.032 0.762) (xy 2.032 0.762)
)
(stroke
(width 0.508)
(type default)
)
(fill
(type none)
)
)
(polyline
(pts
(xy -2.032 -0.762) (xy 2.032 -0.762)
)
(stroke
(width 0.508)
(type default)
)
(fill
(type none)
)
)
)
(symbol "C_1_1"
(pin passive line
(at 0 3.81 270)
(length 2.794)
(name "~"
(effects
(font
(size 1.27 1.27)
)
)
)
(number "1"
(effects
(font
(size 1.27 1.27)
)
)
)
)
(pin passive line
(at 0 -3.81 90)
(length 2.794)
(name "~"
(effects
(font
(size 1.27 1.27)
)
)
)
(number "2"
(effects
(font
(size 1.27 1.27)
)
)
)
)
)
(embedded_fonts no)
)
(symbol "D"
(pin_numbers
(hide yes)
)
(pin_names
(offset 1.016)
(hide yes)
)
(exclude_from_sim no)
(in_bom yes)
(on_board yes)
(property "Reference" "D"
(at 0 2.54 0)
(effects
(font
(size 1.27 1.27)
)
)
)
(property "Value" "D"
(at 0 -2.54 0)
(effects
(font
(size 1.27 1.27)
)
)
)
(property "Footprint" ""
(at 0 0 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "Datasheet" "~"
(at 0 0 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "Description" "Diode"
(at 0 0 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "Sim.Device" "D"
(at 0 0 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "Sim.Pins" "1=K 2=A"
(at 0 0 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "ki_keywords" "diode"
(at 0 0 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "ki_fp_filters" "TO-???* *_Diode_* *SingleDiode* D_*"
(at 0 0 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(symbol "D_0_1"
(polyline
(pts
(xy -1.27 1.27) (xy -1.27 -1.27)
)
(stroke
(width 0.254)
(type default)
)
(fill
(type none)
)
)
(polyline
(pts
(xy 1.27 1.27) (xy 1.27 -1.27) (xy -1.27 0) (xy 1.27 1.27)
)
(stroke
(width 0.254)
(type default)
)
(fill
(type none)
)
)
(polyline
(pts
(xy 1.27 0) (xy -1.27 0)
)
(stroke
(width 0)
(type default)
)
(fill
(type none)
)
)
)
(symbol "D_1_1"
(pin passive line
(at -3.81 0 0)
(length 2.54)
(name "K"
(effects
(font
(size 1.27 1.27)
)
)
)
(number "1"
(effects
(font
(size 1.27 1.27)
)
)
)
)
(pin passive line
(at 3.81 0 180)
(length 2.54)
(name "A"
(effects
(font
(size 1.27 1.27)
)
)
)
(number "2"
(effects
(font
(size 1.27 1.27)
)
)
)
)
)
(embedded_fonts no)
)
(symbol "GND"
(power)
(pin_names
(offset 0)
)
(exclude_from_sim no)
(in_bom yes)
(on_board yes)
(property "Reference" "#PWR"
(at 0 -3.81 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "Value" "GND"
(at 0 -3.1242 0)
(effects
(font
(size 0.762 0.762)
)
)
)
(property "Footprint" ""
(at 0 0 0)
(effects
(font
(size 1.524 1.524)
)
)
)
(property "Datasheet" ""
(at 0 0 0)
(effects
(font
(size 1.524 1.524)
)
)
)
(property "Description" ""
(at 0 0 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(symbol "GND_0_1"
(polyline
(pts
(xy 0 0) (xy 0 -1.27) (xy 1.27 -1.27) (xy 0 -2.54) (xy -1.27 -1.27) (xy 0 -1.27)
)
(stroke
(width 0)
(type default)
)
(fill
(type none)
)
)
)
(symbol "GND_1_1"
(pin power_in line
(at 0 0 270)
(length 0)
(hide yes)
(name "GND"
(effects
(font
(size 0.762 0.762)
)
)
)
(number "1"
(effects
(font
(size 0.508 0.508)
)
)
)
)
)
(embedded_fonts no)
)
(symbol "R"
(pin_numbers
(hide yes)
)
(pin_names
(offset 0)
)
(exclude_from_sim no)
(in_bom yes)
(on_board yes)
(property "Reference" "R"
(at 2.032 0 90)
(effects
(font
(size 1.27 1.27)
)
)
)
(property "Value" "R"
(at 0 0 90)
(effects
(font
(size 1.27 1.27)
)
)
)
(property "Footprint" ""
(at -1.778 0 90)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "Datasheet" "~"
(at 0 0 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "Description" "Resistor"
(at 0 0 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "ki_keywords" "R res resistor"
(at 0 0 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "ki_fp_filters" "R_*"
(at 0 0 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(symbol "R_0_1"
(rectangle
(start -1.016 -2.54)
(end 1.016 2.54)
(stroke
(width 0.254)
(type default)
)
(fill
(type none)
)
)
)
(symbol "R_1_1"
(pin passive line
(at 0 3.81 270)
(length 1.27)
(name "~"
(effects
(font
(size 1.27 1.27)
)
)
)
(number "1"
(effects
(font
(size 1.27 1.27)
)
)
)
)
(pin passive line
(at 0 -3.81 90)
(length 1.27)
(name "~"
(effects
(font
(size 1.27 1.27)
)
)
)
(number "2"
(effects
(font
(size 1.27 1.27)
)
)
)
)
)
(embedded_fonts no)
)
(symbol "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)
)
)

View File

@ -1,3 +1,4 @@
(sym_lib_table
(version 7)
(lib (name "rectifier_schlib")(type "KiCad")(uri "${KIPRJMOD}/rectifier_schlib.kicad_sym")(options "")(descr ""))
)