feat: FINALLY working on pcb

This commit is contained in:
Ethan Francis 2025-06-09 10:41:47 -04:00
parent 432e076b5f
commit 0889c03e7d
12 changed files with 135496 additions and 12 deletions

104588
hardware/fp-info-cache Normal file

File diff suppressed because it is too large Load diff

4
hardware/fp-lib-table Normal file
View file

@ -0,0 +1,4 @@
(fp_lib_table
(version 7)
(lib (name "B3F_1000")(type "KiCad")(uri "${KIPRJMOD}/libraries/B3F_1000.pretty")(options "")(descr ""))
)

File diff suppressed because it is too large Load diff

View file

@ -1,7 +1,7 @@
{ {
"board": { "board": {
"active_layer": 0, "active_layer": 2,
"active_layer_preset": "", "active_layer_preset": "All Layers",
"auto_track_width": true, "auto_track_width": true,
"hidden_netclasses": [], "hidden_netclasses": [],
"hidden_nets": [], "hidden_nets": [],
@ -62,9 +62,42 @@
"version": 5 "version": 5
}, },
"net_inspector_panel": { "net_inspector_panel": {
"col_hidden": [], "col_hidden": [
"col_order": [], false,
"col_widths": [], false,
false,
false,
false,
false,
false,
false,
false,
false
],
"col_order": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"col_widths": [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"custom_group_rules": [], "custom_group_rules": [],
"expanded_rows": [], "expanded_rows": [],
"filter_by_net_name": true, "filter_by_net_name": true,
@ -75,7 +108,7 @@
"show_unconnected_nets": false, "show_unconnected_nets": false,
"show_zero_pad_nets": false, "show_zero_pad_nets": false,
"sort_ascending": true, "sort_ascending": true,
"sorting_column": -1 "sorting_column": 0
}, },
"open_jobsets": [], "open_jobsets": [],
"project": { "project": {

View file

@ -2,12 +2,213 @@
"board": { "board": {
"3dviewports": [], "3dviewports": [],
"design_settings": { "design_settings": {
"defaults": {}, "defaults": {
"apply_defaults_to_fp_fields": false,
"apply_defaults_to_fp_shapes": false,
"apply_defaults_to_fp_text": false,
"board_outline_line_width": 0.05,
"copper_line_width": 0.2,
"copper_text_italic": false,
"copper_text_size_h": 1.5,
"copper_text_size_v": 1.5,
"copper_text_thickness": 0.3,
"copper_text_upright": false,
"courtyard_line_width": 0.05,
"dimension_precision": 4,
"dimension_units": 3,
"dimensions": {
"arrow_length": 1270000,
"extension_offset": 500000,
"keep_text_aligned": true,
"suppress_zeroes": true,
"text_position": 0,
"units_format": 0
},
"fab_line_width": 0.1,
"fab_text_italic": false,
"fab_text_size_h": 1.0,
"fab_text_size_v": 1.0,
"fab_text_thickness": 0.15,
"fab_text_upright": false,
"other_line_width": 0.1,
"other_text_italic": false,
"other_text_size_h": 1.0,
"other_text_size_v": 1.0,
"other_text_thickness": 0.15,
"other_text_upright": false,
"pads": {
"drill": 0.8,
"height": 1.27,
"width": 2.54
},
"silk_line_width": 0.1,
"silk_text_italic": false,
"silk_text_size_h": 1.0,
"silk_text_size_v": 1.0,
"silk_text_thickness": 0.1,
"silk_text_upright": false,
"zones": {
"min_clearance": 0.5
}
},
"diff_pair_dimensions": [], "diff_pair_dimensions": [],
"drc_exclusions": [], "drc_exclusions": [],
"rules": {}, "meta": {
"version": 2
},
"rule_severities": {
"annular_width": "error",
"clearance": "error",
"connection_width": "warning",
"copper_edge_clearance": "error",
"copper_sliver": "warning",
"courtyards_overlap": "error",
"creepage": "error",
"diff_pair_gap_out_of_range": "error",
"diff_pair_uncoupled_length_too_long": "error",
"drill_out_of_range": "error",
"duplicate_footprints": "warning",
"extra_footprint": "warning",
"footprint": "error",
"footprint_filters_mismatch": "ignore",
"footprint_symbol_mismatch": "warning",
"footprint_type_mismatch": "ignore",
"hole_clearance": "error",
"hole_to_hole": "warning",
"holes_co_located": "warning",
"invalid_outline": "error",
"isolated_copper": "warning",
"item_on_disabled_layer": "error",
"items_not_allowed": "error",
"length_out_of_range": "error",
"lib_footprint_issues": "warning",
"lib_footprint_mismatch": "warning",
"malformed_courtyard": "error",
"microvia_drill_out_of_range": "error",
"mirrored_text_on_front_layer": "warning",
"missing_courtyard": "ignore",
"missing_footprint": "warning",
"net_conflict": "warning",
"nonmirrored_text_on_back_layer": "warning",
"npth_inside_courtyard": "ignore",
"padstack": "warning",
"pth_inside_courtyard": "ignore",
"shorting_items": "error",
"silk_edge_clearance": "warning",
"silk_over_copper": "warning",
"silk_overlap": "warning",
"skew_out_of_range": "error",
"solder_mask_bridge": "error",
"starved_thermal": "error",
"text_height": "warning",
"text_on_edge_cuts": "error",
"text_thickness": "warning",
"through_hole_pad_without_hole": "error",
"too_many_vias": "error",
"track_angle": "error",
"track_dangling": "warning",
"track_segment_length": "error",
"track_width": "error",
"tracks_crossing": "error",
"unconnected_items": "error",
"unresolved_variable": "error",
"via_dangling": "warning",
"zones_intersect": "error"
},
"rules": {
"max_error": 0.005,
"min_clearance": 0.0,
"min_connection": 0.0,
"min_copper_edge_clearance": 0.5,
"min_groove_width": 0.0,
"min_hole_clearance": 0.25,
"min_hole_to_hole": 0.25,
"min_microvia_diameter": 0.2,
"min_microvia_drill": 0.1,
"min_resolved_spokes": 2,
"min_silk_clearance": 0.0,
"min_text_height": 0.8,
"min_text_thickness": 0.08,
"min_through_hole_diameter": 0.3,
"min_track_width": 0.0,
"min_via_annular_width": 0.1,
"min_via_diameter": 0.5,
"solder_mask_to_copper_clearance": 0.0,
"use_height_for_length_calcs": true
},
"teardrop_options": [
{
"td_onpthpad": true,
"td_onroundshapesonly": false,
"td_onsmdpad": true,
"td_ontrackend": false,
"td_onvia": true
}
],
"teardrop_parameters": [
{
"td_allow_use_two_tracks": true,
"td_curve_segcount": 0,
"td_height_ratio": 1.0,
"td_length_ratio": 0.5,
"td_maxheight": 2.0,
"td_maxlen": 1.0,
"td_on_pad_in_zone": false,
"td_target_name": "td_round_shape",
"td_width_to_size_filter_ratio": 0.9
},
{
"td_allow_use_two_tracks": true,
"td_curve_segcount": 0,
"td_height_ratio": 1.0,
"td_length_ratio": 0.5,
"td_maxheight": 2.0,
"td_maxlen": 1.0,
"td_on_pad_in_zone": false,
"td_target_name": "td_rect_shape",
"td_width_to_size_filter_ratio": 0.9
},
{
"td_allow_use_two_tracks": true,
"td_curve_segcount": 0,
"td_height_ratio": 1.0,
"td_length_ratio": 0.5,
"td_maxheight": 2.0,
"td_maxlen": 1.0,
"td_on_pad_in_zone": false,
"td_target_name": "td_track_end",
"td_width_to_size_filter_ratio": 0.9
}
],
"track_widths": [], "track_widths": [],
"via_dimensions": [] "tuning_pattern_settings": {
"diff_pair_defaults": {
"corner_radius_percentage": 80,
"corner_style": 1,
"max_amplitude": 1.0,
"min_amplitude": 0.2,
"single_sided": false,
"spacing": 1.0
},
"diff_pair_skew_defaults": {
"corner_radius_percentage": 80,
"corner_style": 1,
"max_amplitude": 1.0,
"min_amplitude": 0.2,
"single_sided": false,
"spacing": 0.6
},
"single_track_defaults": {
"corner_radius_percentage": 80,
"corner_style": 1,
"max_amplitude": 1.0,
"min_amplitude": 0.2,
"single_sided": false,
"spacing": 0.6
}
},
"via_dimensions": [],
"zones_allow_external_fillets": false
}, },
"ipc2581": { "ipc2581": {
"dist": "", "dist": "",
@ -358,12 +559,66 @@
"label": "Datasheet", "label": "Datasheet",
"name": "Datasheet", "name": "Datasheet",
"show": true "show": true
},
{
"group_by": false,
"label": "Manufacturer_Name",
"name": "Manufacturer_Name",
"show": false
},
{
"group_by": false,
"label": "Manufacturer_Part_Number",
"name": "Manufacturer_Part_Number",
"show": false
},
{
"group_by": false,
"label": "Mouser Part Number",
"name": "Mouser Part Number",
"show": false
},
{
"group_by": false,
"label": "Mouser Price/Stock",
"name": "Mouser Price/Stock",
"show": false
},
{
"group_by": false,
"label": "Sim.Device",
"name": "Sim.Device",
"show": false
},
{
"group_by": false,
"label": "Sim.Pins",
"name": "Sim.Pins",
"show": false
},
{
"group_by": false,
"label": "Height",
"name": "Height",
"show": false
},
{
"group_by": false,
"label": "Description",
"name": "Description",
"show": false
},
{
"group_by": false,
"label": "#",
"name": "${ITEM_NUMBER}",
"show": false
} }
], ],
"filter_string": "", "filter_string": "",
"group_symbols": true, "group_symbols": true,
"include_excluded_from_bom": true, "include_excluded_from_bom": true,
"name": "Default Editing", "name": "",
"sort_asc": true, "sort_asc": true,
"sort_field": "Reference" "sort_field": "Reference"
}, },

View file

@ -0,0 +1,31 @@
(module "B3F1002" (layer F.Cu)
(descr "B3F1002")
(tags "Switch")
(fp_text reference S** (at -0.384 -0.083) (layer F.SilkS)
(effects (font (size 1.27 1.27) (thickness 0.254)))
)
(fp_text user %R (at -0.384 -0.083) (layer F.Fab)
(effects (font (size 1.27 1.27) (thickness 0.254)))
)
(fp_text value "B3F1002" (at -0.384 -0.083) (layer F.SilkS) hide
(effects (font (size 1.27 1.27) (thickness 0.254)))
)
(fp_line (start -3 -3) (end 3 -3) (layer F.Fab) (width 0.2))
(fp_line (start 3 -3) (end 3 3) (layer F.Fab) (width 0.2))
(fp_line (start 3 3) (end -3 3) (layer F.Fab) (width 0.2))
(fp_line (start -3 3) (end -3 -3) (layer F.Fab) (width 0.2))
(fp_line (start -2.363 -3) (end 2.261 -3) (layer F.SilkS) (width 0.2))
(fp_line (start -2.363 3) (end 2.261 3) (layer F.SilkS) (width 0.2))
(fp_line (start -3 -1.084) (end -3 1.073) (layer F.SilkS) (width 0.2))
(fp_line (start 3 -1.084) (end 3 1.073) (layer F.SilkS) (width 0.2))
(fp_circle (center 4.393 2.792) (end 4.393 2.876) (layer F.SilkS) (width 0.2))
(pad 1 thru_hole circle (at 3.25 2.25) (size 1.65 1.65) (drill 1.1) (layers *.Cu *.Mask))
(pad 2 thru_hole circle (at -3.25 2.25) (size 1.65 1.65) (drill 1.1) (layers *.Cu *.Mask))
(pad 3 thru_hole circle (at 3.25 -2.25) (size 1.65 1.65) (drill 1.1) (layers *.Cu *.Mask))
(pad 4 thru_hole circle (at -3.25 -2.25) (size 1.65 1.65) (drill 1.1) (layers *.Cu *.Mask))
(model B3F-1000.stp
(at (xyz 0 0 0.13070865878909))
(scale (xyz 1 1 1))
(rotate (xyz -90 0 -90))
)
)

View file

@ -0,0 +1,56 @@
PCBNEW-LibModule-V1 2025-05-24 19:50:18
# encoding utf-8
Units mm
$INDEX
B3F1002
$EndINDEX
$MODULE B3F1002
Po 0 0 0 15 683214ea 00000000 ~~
Li B3F1002
Cd B3F1002
Kw Switch
Sc 0
At STD
AR
Op 0 0 0
T0 -0.384 -0.083 1.27 1.27 0 0.254 N V 21 N "S**"
T1 -0.384 -0.083 1.27 1.27 0 0.254 N I 21 N "B3F1002"
DS -3 -3 3 -3 0.2 24
DS 3 -3 3 3 0.2 24
DS 3 3 -3 3 0.2 24
DS -3 3 -3 -3 0.2 24
DS -2.363 -3 2.261 -3 0.2 21
DS -2.363 3 2.261 3 0.2 21
DS -3 -1.084 -3 1.073 0.2 21
DS 3 -1.084 3 1.073 0.2 21
DC 4.393 2.792 4.309 2.792 0.254 21
$PAD
Po 3.25 2.25
Sh "1" C 1.65 1.65 0 0 900
Dr 1.1 0 0
At STD N 00E0FFFF
Ne 0 ""
$EndPAD
$PAD
Po -3.25 2.25
Sh "2" C 1.65 1.65 0 0 900
Dr 1.1 0 0
At STD N 00E0FFFF
Ne 0 ""
$EndPAD
$PAD
Po 3.25 -2.25
Sh "3" C 1.65 1.65 0 0 900
Dr 1.1 0 0
At STD N 00E0FFFF
Ne 0 ""
$EndPAD
$PAD
Po -3.25 -2.25
Sh "4" C 1.65 1.65 0 0 900
Dr 1.1 0 0
At STD N 00E0FFFF
Ne 0 ""
$EndPAD
$EndMODULE B3F1002
$EndLIBRARY