Added footprint and symbol for the on/off switch with a potentiometer

This commit is contained in:
Vlastimil Slinták 2025-07-23 10:48:22 +02:00 committed by Wojciech Kaczmarski
parent 6c4e5c8158
commit 9bb5b0f9b7
3 changed files with 483 additions and 0 deletions

291
parts/parts.kicad_sym Normal file
View file

@ -0,0 +1,291 @@
(kicad_symbol_lib
(version 20241209)
(generator "kicad_symbol_editor")
(generator_version "9.0")
(symbol "Potentiometer_Switch"
(pin_names
(hide yes)
)
(exclude_from_sim no)
(in_bom yes)
(on_board yes)
(property "Reference" "SW"
(at 7.62 6.096 0)
(effects
(font
(size 1.27 1.27)
)
)
)
(property "Value" ""
(at 0 0 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" "Potentiometer with a SPST switch."
(at 7.874 -6.858 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(symbol "Potentiometer_Switch_0_1"
(rectangle
(start 2.54 5.08)
(end 12.7 -5.08)
(stroke
(width 0.254)
(type default)
)
(fill
(type background)
)
)
(polyline
(pts
(xy 2.54 2.54) (xy 5.842 2.54) (xy 5.842 1.778)
)
(stroke
(width 0)
(type default)
)
(fill
(type none)
)
)
(polyline
(pts
(xy 2.54 0) (xy 4.064 0)
)
(stroke
(width 0)
(type default)
)
(fill
(type none)
)
)
(polyline
(pts
(xy 2.54 -2.54) (xy 5.842 -2.54) (xy 5.842 -1.778)
)
(stroke
(width 0)
(type default)
)
(fill
(type none)
)
)
(polyline
(pts
(xy 4.699 0) (xy 4.953 0) (xy 3.937 -0.381) (xy 3.937 0.381) (xy 4.953 0) (xy 4.699 0)
)
(stroke
(width 0)
(type default)
)
(fill
(type outline)
)
)
(rectangle
(start 6.604 1.8034)
(end 5.08 -1.8034)
(stroke
(width 0.254)
(type default)
)
(fill
(type none)
)
)
(polyline
(pts
(xy 8.89 1.016) (xy 9.652 -1.016)
)
(stroke
(width 0.254)
(type default)
)
(fill
(type none)
)
)
(polyline
(pts
(xy 9.144 0) (xy 8.763 0)
)
(stroke
(width 0.254)
(type default)
)
(fill
(type none)
)
)
(circle
(center 9.652 1.016)
(radius 0.127)
(stroke
(width 0.254)
(type default)
)
(fill
(type none)
)
)
(circle
(center 9.652 -1.016)
(radius 0.127)
(stroke
(width 0.254)
(type default)
)
(fill
(type none)
)
)
)
(symbol "Potentiometer_Switch_1_1"
(polyline
(pts
(xy 12.7 2.54) (xy 9.652 2.54) (xy 9.652 1.016)
)
(stroke
(width 0)
(type solid)
)
(fill
(type none)
)
)
(polyline
(pts
(xy 12.7 -2.54) (xy 9.652 -2.54) (xy 9.652 -1.016)
)
(stroke
(width 0)
(type solid)
)
(fill
(type none)
)
)
(pin passive line
(at 0 2.54 0)
(length 2.54)
(name "1"
(effects
(font
(size 1.27 1.27)
)
)
)
(number "1"
(effects
(font
(size 1.27 1.27)
)
)
)
)
(pin passive line
(at 0 0 0)
(length 2.54)
(name "2"
(effects
(font
(size 1.27 1.27)
)
)
)
(number "2"
(effects
(font
(size 1.27 1.27)
)
)
)
)
(pin passive line
(at 0 -2.54 0)
(length 2.54)
(name "3"
(effects
(font
(size 1.27 1.27)
)
)
)
(number "3"
(effects
(font
(size 1.27 1.27)
)
)
)
)
(pin passive line
(at 15.24 2.54 180)
(length 2.54)
(name "S1"
(effects
(font
(size 1.27 1.27)
)
)
)
(number "S1"
(effects
(font
(size 1.27 1.27)
)
)
)
)
(pin passive line
(at 15.24 -2.54 180)
(length 2.54)
(name "S2"
(effects
(font
(size 1.27 1.27)
)
)
)
(number "S2"
(effects
(font
(size 1.27 1.27)
)
)
)
)
)
(embedded_fonts no)
)
)

View file

@ -0,0 +1,191 @@
(footprint "Connector_08x09mm_pot_switch"
(version 20241229)
(generator "pcbnew")
(generator_version "9.0")
(layer "F.Cu")
(descr "Potentiometer with a switch in a 8x9 mm")
(property "Reference" "REF**"
(at -11.5 -15.2 0)
(unlocked yes)
(layer "F.SilkS")
(uuid "9890e7ca-94a3-4cb1-a47a-734e178fac27")
(effects
(font
(size 1 1)
(thickness 0.1)
)
)
)
(property "Value" "Connector_08x09mm_pot_switch"
(at -11.5 -13.7 0)
(unlocked yes)
(layer "F.Fab")
(uuid "bc4b000c-e3f6-4aeb-8981-1db6062542d5")
(effects
(font
(size 1 1)
(thickness 0.15)
)
)
)
(property "Datasheet" ""
(at 0 0 0)
(unlocked yes)
(layer "F.Fab")
(hide yes)
(uuid "6584efde-a6e1-403e-a565-ec335061a40b")
(effects
(font
(size 1 1)
(thickness 0.15)
)
)
)
(property "Description" ""
(at 0 0 0)
(unlocked yes)
(layer "F.Fab")
(hide yes)
(uuid "b307d16c-d3d6-4c2a-9e5d-0bad8a6ff7df")
(effects
(font
(size 1 1)
(thickness 0.15)
)
)
)
(attr through_hole)
(fp_line
(start -3.85 -3.35)
(end 3.85 -3.35)
(stroke
(width 0.1)
(type default)
)
(layer "F.SilkS")
(uuid "bc84ac40-080b-43d2-9715-1bd9875eca83")
)
(fp_line
(start -3.85 -3.05)
(end 3.85 -3.05)
(stroke
(width 0.1)
(type default)
)
(layer "F.SilkS")
(uuid "85eaa734-a14c-4e33-9618-82c226625e70")
)
(fp_line
(start -3.85 5.95)
(end -3.85 -3.35)
(stroke
(width 0.1)
(type default)
)
(layer "F.SilkS")
(uuid "2ff05fc7-531c-4d49-b7cb-12645a948121")
)
(fp_line
(start -2.9 -3.95)
(end 2.9 -3.95)
(stroke
(width 0.1)
(type default)
)
(layer "F.SilkS")
(uuid "23fbb450-9e8e-4cf8-b785-1800873b3fbf")
)
(fp_line
(start -2.9 -3.35)
(end -2.9 -3.95)
(stroke
(width 0.1)
(type default)
)
(layer "F.SilkS")
(uuid "00ab1fb3-0bb4-4934-b234-b4f1e7012109")
)
(fp_line
(start 2.9 -3.95)
(end 2.9 -3.35)
(stroke
(width 0.1)
(type default)
)
(layer "F.SilkS")
(uuid "877bfa50-5346-4dc1-ac5d-b70861709953")
)
(fp_line
(start 3.85 -3.35)
(end 3.85 5.95)
(stroke
(width 0.1)
(type default)
)
(layer "F.SilkS")
(uuid "5370b49c-176e-41a3-84b6-35015172f9a6")
)
(fp_line
(start 3.85 5.95)
(end -3.85 5.95)
(stroke
(width 0.1)
(type default)
)
(layer "F.SilkS")
(uuid "cfbe9542-44cb-41ca-a26f-af6bd3975c12")
)
(fp_text user "${REFERENCE}"
(at -11.5 -12.2 0)
(unlocked yes)
(layer "F.Fab")
(uuid "d9fed22c-ce47-4a3a-9580-5556a7ab479b")
(effects
(font
(size 1 1)
(thickness 0.15)
)
)
)
(pad "1" thru_hole circle
(at -2 0)
(size 1.6 1.6)
(drill 0.8)
(layers "*.Cu" "*.Mask")
(remove_unused_layers no)
(uuid "b6dbe38a-a48d-4ae1-8c50-6edfb5b2312c")
)
(pad "2" thru_hole circle
(at 0 0)
(size 1.6 1.6)
(drill 0.8)
(layers "*.Cu" "*.Mask")
(remove_unused_layers no)
(uuid "fae44cd1-7aa1-462f-b213-f05372bedfc6")
)
(pad "3" thru_hole circle
(at 2 0)
(size 1.6 1.6)
(drill 0.8)
(layers "*.Cu" "*.Mask")
(remove_unused_layers no)
(uuid "f742af84-ad9e-42d8-82c5-a2e5d625d3aa")
)
(pad "S1" thru_hole circle
(at -2 5)
(size 1.6 1.6)
(drill 0.8)
(layers "*.Cu" "*.Mask")
(remove_unused_layers no)
(uuid "6f5598bd-ba7f-46b9-814c-1f582cda068d")
)
(pad "S2" thru_hole circle
(at 2 5)
(size 1.6 1.6)
(drill 0.8)
(layers "*.Cu" "*.Mask")
(remove_unused_layers no)
(uuid "28a0fe90-74a3-4961-b284-24937c1247a6")
)
(embedded_fonts no)
)

View file

@ -5,4 +5,5 @@
(lib (name "BGS12P2L6")(type "KiCad")(uri "${KIPRJMOD}/parts/BGS12P2L6.kicad_sym")(options "")(descr ""))
(lib (name "MCM-iMX93-SOM")(type "KiCad")(uri "${KIPRJMOD}/parts/MCM-iMX93-SOM.kicad_sym")(options "")(descr ""))
(lib (name "WM8960")(type "KiCad")(uri "${KIPRJMOD}/parts/WM8960.kicad_sym")(options "")(descr ""))
(lib (name "parts")(type "KiCad")(uri "${KIPRJMOD}/parts/parts.kicad_sym")(options "")(descr ""))
)