Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickBaus committed Jun 23, 2023
0 parents commit 95d902d
Show file tree
Hide file tree
Showing 22 changed files with 8,163 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# OS generated files #
######################
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
.~*
*.tmp

# KiCAD Files #
###############
*.kicad_pcb-bak
*.sch-bak
*.bak
*.xml
_autosave-*
*-cache.lib
fp-info-cache

# KiCAD 6 Files #
*-backups
*.kicad_prl
\#auto_saved_files\#
114 changes: 114 additions & 0 deletions bom.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
[BOM_OPTIONS]
; General BoM options here
; If 'ignore_dnf' option is set to 1, rows that are not to be fitted on the PCB will not be written to the BoM file
ignore_dnf = 1
; If 'html_generate_dnf' option is set to 1, also generate a list of components not fitted on the PCB (HTML only)
html_generate_dnf = 1
; If 'use_alt' option is set to 1, grouped references will be printed in the alternate compressed style eg: R1-R7,R18
use_alt = 0
; If 'number_rows' option is set to 1, each row in the BoM will be prepended with an incrementing row number
number_rows = 1
; If 'group_connectors' option is set to 1, connectors with the same footprints will be grouped together, independent of the name of the connector
group_connectors = 1
; If 'test_regex' option is set to 1, each component group will be tested against a number of regular-expressions (specified, per column, below). If any matches are found, the row is ignored in the output file
test_regex = 1
; If 'merge_blank_fields' option is set to 1, component groups with blank fields will be merged into the most compatible group, where possible
merge_blank_fields = 1
; Specify output file name format, %O is the defined output name, %v is the version, %V is the variant name which will be ammended according to 'variant_file_name_format'.
output_file_name = %O_bom_%v%V
; Specify the variant file name format, this is a unique field as the variant is not always used/specified. When it is unused you will want to strip all of this.
variant_file_name_format = _(%V)
; Field name used to determine if a particular part is to be fitted
fit_field = Config
; Complex variant processing (disabled by default)
complex_variant = False
; Character used to separate reference designators in output
ref_separator = ' '
; Make a backup of the bom before generating the new one, using the following template
make_backup = %O.tmp
; Default number of boards to produce if none given on CLI with -n
number_boards = 1
; Default PCB variant if none given on CLI with -r
board_variant = ['default']
; Whether to hide headers from output file
hide_headers = False
; Whether to hide PCB info from output file
hide_pcb_info = False
; Interpret as a Digikey P/N and link the following field
digikey_link = False

[IGNORE_COLUMNS]
; Any column heading that appears here will be excluded from the Generated BoM
; Titles are case-insensitive
part lib
footprint lib
sheetpath

[COLUMN_ORDER]
; Columns will apear in the order they are listed here
; Titles are case-insensitive
Description
Part
Part Lib
References
Value
Footprint
Footprint Lib
Sheetpath
Quantity Per PCB
Build Quantity
Datasheet

[GROUP_FIELDS]
; List of fields used for sorting individual components into groups
; Components which match (comparing *all* fields) will be grouped together
; Field names are case-insensitive
Part
Part Lib
Value
Footprint
Footprint Lib

[COMPONENT_ALIASES]
; A series of values which are considered to be equivalent for the part name
; Each line represents a list of equivalent component name values separated by white space
; e.g. 'c c_small cap' will ensure the equivalent capacitor symbols can be grouped together
; Aliases are case-insensitive
c c_small cap capacitor
r r_small res resistor
sw switch
l l_small inductor
zener zenersmall
d diode d_small

[JOIN]
; A list of rules to join the content of fields
; Each line is a rule, the first name is the field that will receive the data
; from the other fields
; Use tab (ASCII 9) as separator
; Field names are case sensitive

[REGEX_INCLUDE]
; A series of regular expressions used to include parts in the BoM
; If there are any regex defined here, only components that match against ANY of them will be included in the BOM
; Column names are case-insensitive
; Format is: "[ColumName] [Regex]" (white-space separated)

[COLUMN_RENAME]
; A list of columns to be renamed
; Format is: "[ColumName] [NewName]" (white-space separated)

[REGEX_EXCLUDE]
; A series of regular expressions used to exclude parts from the BoM
; If a component matches ANY of these, it will be excluded from the BoM
; Column names are case-insensitive
; Format is: "[ColumName] [Regex]" (white-space separated)
References ^TP[0-9]*
References ^FID
Part mount.*hole
Part solder.*bridge
Part test.*point
Footprint test.*point
Footprint mount.*hole
Footprint fiducial

52 changes: 52 additions & 0 deletions footprints/SW_2P2T_Toggle_NKK_M2023SS4W03.kicad_mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
(footprint "SW_2P2T_Toggle_NKK_M2023SS4W03" (version 20211014) (generator pcbnew)
(layer "F.Cu")
(tedit 61E939F4)
(descr "momentary / push-push button, h=15mm C&K PVA2 https://www.ckswitches.com/media/1343/pva.pdf")
(tags "tact sw push PVA2 DPDT")
(attr through_hole)
(fp_text reference "REF**" (at 2.5 -2.75) (layer "F.SilkS")
(effects (font (size 1 1) (thickness 0.15)))
(tstamp f6ee98b5-4773-4eeb-a825-33c1705abace)
)
(fp_text value "SW_2P2T_Toggle_NKK_M2023SS4W03" (at 2.5 9) (layer "F.Fab")
(effects (font (size 1 1) (thickness 0.15)))
(tstamp 5994a946-119f-4db4-aafe-00ae73b5b800)
)
(fp_text user "Key" (at 1.7 4.8 unlocked) (layer "F.SilkS")
(effects (font (size 1 1) (thickness 0.15)))
(tstamp 728ada11-a366-45da-a7bf-c5eb25511ad2)
)
(fp_text user "${REFERENCE}" (at 2.5 -2.8) (layer "F.Fab")
(effects (font (size 1 1) (thickness 0.15)))
(tstamp be0953c0-632d-4dd2-85e9-4d41239f22d2)
)
(fp_line (start -2.5 11) (end -2.52 -1.72) (layer "F.SilkS") (width 0.12) (tstamp 16ded395-a862-4198-b3af-ba8c7fb298bb))
(fp_line (start -1.9 4.8) (end -1.4 5.1) (layer "F.SilkS") (width 0.12) (tstamp 4149967d-424c-4631-9e4b-8bb4ed2501f2))
(fp_line (start 10.5 11) (end 10.5 -1.7) (layer "F.SilkS") (width 0.12) (tstamp 851ab59d-1fd7-45c7-a775-29797327cafc))
(fp_line (start 10.5 11) (end -2.5 11) (layer "F.SilkS") (width 0.12) (tstamp 975b065a-4fee-4d11-9f2f-b1d40a3629cb))
(fp_line (start 0.3 4.8) (end -1.9 4.8) (layer "F.SilkS") (width 0.12) (tstamp b5a09e22-ec1d-4190-afc1-677d691cffcb))
(fp_line (start -2.77 -0.97) (end -2.77 -1.97) (layer "F.SilkS") (width 0.12) (tstamp d0dfd7c1-401d-4f64-8463-f4c0813ac28f))
(fp_line (start -1.77 -1.97) (end -2.77 -1.97) (layer "F.SilkS") (width 0.12) (tstamp dd2f6b13-9e35-4a67-90ac-cf0d1ea34e5a))
(fp_line (start 10.5 -1.7) (end -2.52 -1.72) (layer "F.SilkS") (width 0.12) (tstamp e1105432-6a2f-45d9-8a08-47401d087cf4))
(fp_line (start -1.9 4.8) (end -1.4 4.5) (layer "F.SilkS") (width 0.12) (tstamp f0f1ce0b-7896-45e9-a204-70854b93ccfa))
(fp_line (start -2.65 11.1) (end 10.6 11.1) (layer "F.CrtYd") (width 0.05) (tstamp 3934cdea-42c8-4ab1-b1be-2c4978ab08ae))
(fp_line (start -2.65 11.1) (end -2.65 -1.85) (layer "F.CrtYd") (width 0.05) (tstamp 6ff874d0-4ac5-414c-83a7-573eda4c7703))
(fp_line (start 10.6 -1.85) (end 10.6 11.1) (layer "F.CrtYd") (width 0.05) (tstamp 9538e4ed-27e6-4c37-b989-9859dc0d49e8))
(fp_line (start -2.65 -1.85) (end 10.6 -1.85) (layer "F.CrtYd") (width 0.05) (tstamp e63e39d7-6ac0-4ffd-8aa3-1841a4541b55))
(fp_line (start -2.4 -0.6) (end -1.4 -1.6) (layer "F.Fab") (width 0.1) (tstamp 23e66461-bcf2-4335-93c2-5c91dfd00187))
(fp_line (start -2.4 10.9) (end -2.4 -0.6) (layer "F.Fab") (width 0.1) (tstamp 3451168c-3c76-4628-aee4-7c231bd100c3))
(fp_line (start 10.4 10.9) (end -2.4 10.9) (layer "F.Fab") (width 0.1) (tstamp 563c12e4-8f8c-446c-a11f-94f5aa93b994))
(fp_line (start 10.4 -1.6) (end 10.4 10.9) (layer "F.Fab") (width 0.1) (tstamp a3668681-09b1-48f0-a7b1-f6b24183a469))
(fp_line (start -1.4 -1.6) (end 10.4 -1.6) (layer "F.Fab") (width 0.1) (tstamp ca213826-0282-4b3a-840f-ec416dc34acf))
(pad "1" thru_hole rect (at -0.7 2.3) (size 3 3) (drill 1.85) (layers *.Cu *.Mask) (tstamp c5a1761e-3391-4e74-90c9-947fd66e1fc6))
(pad "2" thru_hole circle (at 4 2.3) (size 3 3) (drill 1.85) (layers *.Cu *.Mask) (tstamp 3dd05e0a-6fe4-4de6-81df-97b26be40fb4))
(pad "3" thru_hole circle (at 8.7 2.3) (size 3 3) (drill 1.85) (layers *.Cu *.Mask) (tstamp 681bd495-c396-44ce-92bd-4b397cd48c04))
(pad "4" thru_hole circle (at -0.7 7.1) (size 3 3) (drill 1.85) (layers *.Cu *.Mask) (tstamp b680b4a7-6cb0-40b5-a7ec-a02910a0daa4))
(pad "5" thru_hole circle (at 4 7.1) (size 3 3) (drill 1.85) (layers *.Cu *.Mask) (tstamp fcb90f38-f221-4e19-8961-a534ced69fbc))
(pad "6" thru_hole circle (at 8.7 7.1) (size 3 3) (drill 1.85) (layers *.Cu *.Mask) (tstamp a1c7b1f5-f895-4192-9484-2357882c73e0))
(model "${KICAD6_3DMODEL_DIR}/Button_Switch_THT.3dshapes/SW_Push_2P2T_Toggle_CK_PVA2xxH4xxxxxxV2.wrl"
(offset (xyz 0 0 0))
(scale (xyz 1 1 1))
(rotate (xyz 0 0 0))
)
)
3 changes: 3 additions & 0 deletions fp-lib-table
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(fp_lib_table
(lib (name "footprints")(type "KiCad")(uri "${KIPRJMOD}/footprints")(options "")(descr ""))
)
Loading

0 comments on commit 95d902d

Please sign in to comment.