Date:2012-06-12 10:34:53 (7 years 3 months ago)
Author:Adam Wang
Commit:081a8b8402e7444c2342bf3c969561174e5ff7e2
Message:he-shrouded.fpd: SMD type header with shrouded case outline

Files: modules/INFO (1 diff)
modules/he-shrouded.fpd (1 diff)

Change Details

modules/INFO
7171# Fiducial (1 mm copper pad, 2 mm solder mask clearance)
7272F: fiducial
7373
74# Header with outline for shrouded wafer for example, SMD type
75F: he-shrouded
76#
77# - ${n}x2pins-${pitch}: for example Molex: the 87832-1420 data sheet, package drawing
78# http://www.molex.com/pdm_docs/sd/878321420_sd.pdf
79#
80
7481# IR Receiver Module
7582F: ir
7683#
modules/he-shrouded.fpd
1/* MACHINE-GENERATED ! */
2
3frame pin {
4    __0: vec @(px/2, py/2)
5    __1: vec @(-px/2, -py/2)
6    pad "$n" . __0
7}
8
9frame pins_top {
10    set n = i*2+2
11
12    __0: vec @(x, 0mm)
13    frame pin .
14}
15
16frame pins_bottom {
17    set n = i*2+1
18
19    __0: vec @(x, 0mm)
20    frame pin .
21}
22
23frame pins {
24    set y = (gap+py)/2
25
26    set x = (i-(N/2-1)/2)*pitch
27
28    loop i = 0, N/2-1
29
30    __0: vec @(0mm, y)
31    frame pins_top .
32    __1: vec @(0mm, -y)
33    frame pins_bottom .
34}
35
36frame npth {
37}
38
39frame outline {
40    set r = 0.3mm
41
42    __0: vec @(W/2, py+gap/2+w)
43    __1: vec @(-W/2, -(gap/2+py+w))
44    rect . __0 w
45    __2: vec @(-(W/2+2*r), -H/2)
46    __3: vec .(r, 0mm)
47    circ __2 . w
48}
49
50package "${n}x2pins-${pitch}"
51unit auto
52
53table
54    { N, n, pitch, px, py, gap, H, base, W }
55    { 4, N/2, 2mm, 1mm, 2.75mm, 1.5mm, 6.3mm, 6.65mm, base+(N-4)*1mm }
56    { 14, N/2, 2mm, 1mm, 2.75mm, 1.5mm, 6.3mm, 6.65mm, base+(N-4)*1mm }
57
58set w = 5mil
59
60frame outline @
61frame pins @
62measy outline.__1 >> outline.__0 -(W+px)
63measx outline.__1 >> outline.__0 H+py/2+4*w
64measy pin.__1 -> pin.__0 px/2
65measy pin.__1 >> pin.__0 -(W/2+pitch)
66measy pin.__0 >> pin.__1 -(pitch+px/2)
67measx pins_top.__0 -> pins_top.__0 px/2
68measy pins.__0 << pins_bottom.__0 -3*px/2
69measx pin.__1 -> pin.__0 -4*w
70meas pins_top.__0 >> pins_top.__0 py/2+4*w

Archive Download the corresponding diff file

Branches:
master



interactive