1
0
mirror of git://projects.qi-hardware.com/kicad-libs.git synced 2024-06-28 04:47:38 +03:00

add C&K TSWA series switch with 22 mm wheel

This commit is contained in:
Werner Almesberger 2013-09-15 16:15:06 -03:00
parent 2aa3233623
commit 3f1b978b2b
7 changed files with 91 additions and 2 deletions

View File

@ -85,6 +85,7 @@ Werner Almesberger <werner@almesberger.net>
components/inductor.lib (based on filter.lib by Adam Wang)
components/kl25-48.lib
components/er-oled-fpc30.lib
components/tswa.lib
modules/pads.fpd
modules/stdpass.fpd
modules/8_10-card.fpd
@ -103,10 +104,10 @@ Werner Almesberger <werner@almesberger.net>
modules/inductor-2p.fpd
modules/er-oled-fpc30.fpd
modules/memcard8-amp-10100660.fpd
modules/tswa.fpd
Xiangfu <xiangfu@openmobilefree.net>
components/c.lib
components/led.lib
components/r.lib

View File

@ -146,6 +146,7 @@ Electromechanical
FSMRA2JH
SW_PUSH
EVQQ7
TSWA
Case
MH
Sensor

View File

@ -150,3 +150,4 @@ LibName78=./memcard8
LibName79=./inductor
LibName80=./kl25-48
LibName81=./er-oled-fpc30
LibName82=./tswa

29
components/tswa.lib Normal file
View File

@ -0,0 +1,29 @@
EESchema-LIBRARY Version 2.3 Date: Sun Sep 15 15:56:00 2013
#encoding utf-8
#
# TSWA
#
DEF TSWA SW 0 40 Y N 1 F N
F0 "SW" -50 300 60 H V C CNN
F1 "TSWA" 0 -250 60 H V C CNN
F2 "~" 0 0 60 H V C CNN
F3 "~" 0 0 60 H V C CNN
DRAW
S -150 250 150 -200 0 1 0 N
P 2 0 1 0 -100 -150 -150 -150 N
P 2 0 1 0 -100 0 -150 0 N
P 2 0 1 0 -100 150 -150 150 N
P 2 0 1 0 50 -150 -100 -100 N
P 2 0 1 0 50 -150 100 -150 N
P 2 0 1 0 50 0 -100 50 N
P 2 0 1 0 50 0 100 0 N
P 2 0 1 0 50 150 -100 200 N
P 4 0 1 0 50 150 100 150 100 -150 150 -150 N
X A A -450 0 300 R 50 50 1 1 P
X B B -450 -150 300 R 50 50 1 1 P
X NO NO -450 150 300 R 50 50 1 1 P
X COM COM 450 -150 300 L 50 50 1 1 P
ENDDRAW
ENDDEF
#
#End Library

View File

@ -400,3 +400,4 @@ Mechanical
TACTIL-SW-SPST-RA-13.26mm-15.85mm
E-SWITCH_320
EVQQ7
TSWA-22mm

View File

@ -12,7 +12,7 @@ MODULES=8_10-card 8_10-socket-ra 8_10-socket-ra-push-pull \
qfn qfp \
rca-3-ra rj45 \
soic sot23 spacer sot sot-323 ssop stdpass \
tactile-sw-spst-ra-dip to tsop tssop5 \
tactile-sw-spst-ra-dip to tsop tssop5 tswa \
usb-a-dual-recept-r usb-a-pcb usb_a_plug_smt \
xlr-plug xlr-socket \
xtal-2 xtal-4 \

56
modules/tswa.fpd Normal file
View File

@ -0,0 +1,56 @@
/* MACHINE-GENERATED ! */
frame holes {
set xi = 9mm
set d = 1.6mm
loop i = 0, 1
__0: vec @(xi*(i-0.5), 0mm)
__1: vec .(d/2, d/2)
__2: vec __0(-d/2, -d/2)
hole . __1
}
frame pins {
table
{ pin, x, y }
{ "NO", 0mm, y2-y1 }
{ "A", -xo/2, 0mm }
{ "B", 0mm, -y1 }
{ "COM", xo/2, 0mm }
table
{ xo, y1, y2 }
{ 18.52mm, xo/2, 10.83mm }
set d = 1.3mm
__0: vec @(x, y)
__1: vec .(d/2, d/2)
__2: vec __0(-d/2, -d/2)
rpad "$pin" . __1
}
frame outline {
set w = 5mil
__0: vec @(0mm, d/2)
circ @ . w
}
package "TSWA-${d}"
unit mm
set d = 22mm
frame pins @
frame outline @
frame holes @
measx pins.__0 >> pins.__0 5mm
measx holes.__0 >> holes.__0 4mm
measx holes.__2 -> holes.__1 -1mm
measx pins.__2 -> pins.__1 -1mm
measy pins.__0 >> pins.__0 14mm
measy pins.__0 >> holes.__0 13mm