Date:2012-06-15 10:46:46 (6 years 5 months ago)
Author:Adam Wang
Commit:c456f08cb11a8507a196163092df4f9a8188847f
Message:tactile-sw-spst-ra-dip.fpd: added package of TACTIL-SW-${TYPE}-RA-${A}-${B}

Files: modules/INFO (1 diff)
modules/tactile-sw-spst-ra-dip.fpd (1 diff)

Change Details

modules/INFO
339339# http://www.nxp.com/packages/SOT402-1.html
340340# http://www.nxp.com/documents/reflow_soldering/sot402-1_fr.pdf
341341
342# SWITCH, TACTILE, SPST, R/A, THROUGH HOLE
343F: tactile-sw-spst-ra-dip.fpd
344#
345# - TACTIL-SW-${TYPE}-RA-${A}-${B}, package drawing, land pattern
346# for example TYCO ELECTRONICS FSMRA2JH
347# http://www.farnell.com/datasheets/51343.pdf
348#
349
342350# "Generic" simple TO-252, TO-263
343351F: to
344352#
modules/tactile-sw-spst-ra-dip.fpd
1/* MACHINE-GENERATED ! */
2
3frame outline {
4    __0: vec @(-buttonDia/2, -B)
5    __1: vec .(buttonDia, A)
6    rect __0 . w
7    __2: vec @(0mm, -(B-A))
8    __3: vec .(-bx/2, 0mm)
9    __4: vec .(bx, by)
10    rect __3 . w
11    __5: vec @(bx/2+factor*shieldsDia/2+w, reary)
12    __6: vec @(-(bx/2+factor*shieldsDia/2+w), -(B-A))
13    __7: vec @(bx/2+factor*shieldsDia/2+w, -(B-A))
14    line __5 . w
15    __8: vec @(-(bx/2+factor*shieldsDia/2+w), reary)
16    line __5 . w
17    line . __6 w
18}
19
20frame pins {
21    table
22        { n, dx }
23        { 1, -1 }
24        { 2, 1 }
25
26    set m = n+2
27
28    __0: vec @(dx*pinsdiffx/2, 0mm)
29    __1: vec .(pinsDia/2, pinsDia/2)
30    __2: vec __0(-pinsDia/2, -pinsDia/2)
31    hole . __1
32    __3: vec __0(factor*pinsDia/2, -factor*pinsDia/2)
33    __4: vec __0(-factor*pinsDia/2, factor*pinsDia/2)
34    rpad "$n" . __3
35    __5: vec @(0mm, pins2shieldsy)
36    __6: vec .(dx*shieldsdiffx/2, 0mm)
37    __7: vec .(shieldsDia/2, shieldsDia/2)
38    __8: vec __6(-shieldsDia/2, -shieldsDia/2)
39    hole . __7
40    __9: vec __6(factor*shieldsDia/2, -factor*shieldsDia/2)
41    __10: vec __6(-factor*shieldsDia/2, factor*shieldsDia/2)
42    rpad "$m" . __9
43}
44
45package "TACTIL-SW-${TYPE}-RA-${A}-${B}"
46unit mm
47
48table
49    { A, B }
50    { 0.55mm, 3.15mm }
51    { 1.25mm, 3.86mm }
52    { 3.25mm, 5.84mm }
53    { 3.55mm, 6.15mm }
54    { 4.25mm, 6.85mm }
55    { 5.74mm, 8.36mm }
56    { 9.25mm, 11.86mm }
57    { 13.26mm, 15.85mm }
58
59set bx = 7.11mm
60
61set TYPE = "SPST"
62
63set by = 3.99mm
64
65set sy = 4.01mm
66
67set pinsdiffx = 4.49mm
68
69set shieldsdiffx = 7.01mm
70
71set pins2shieldsy = 2.5mm
72
73set pinsDia = 0.99mm
74
75set buttonDia = 3.5mm
76
77set shieldsDia = 1.3mm
78
79set reary = 4.01mm
80
81set w = 5mil
82
83set factor = 1.6
84
85frame pins @
86frame outline @
87measy pins.__2 -> pins.__1 -1.8mm
88measy pins.__8 -> pins.__7 1.5mm
89meas pins.__0 >> pins.__0 5mm
90meas pins.__6 >> pins.__6 4mm
91measx outline.__0 >> outline.__1 -1mm
92measx outline.__3 >> outline.__4 -(A+2mm)
93meas outline.__6 >> outline.__7 -(A+3mm)
94measy outline.__0 >> outline.__1 4.3mm
95measy outline.__3 >> outline.__4 2.5mm
96measy outline.__0 -> pins.__0 3.5mm
97meas outline.__7 >> outline.__5 -1mm

Archive Download the corresponding diff file

Branches:
master



interactive