Root/modules/usb_a_plug_smt.fpd

Source at commit 424ddce9756cb5ead3e86ec27e767b4e25596ed6 created 9 years 8 months ago.
By Werner Almesberger, ants/: Passive board for antenna testing.
1/* MACHINE-GENERATED ! */
2
3frame pad {
4    table
5        { h, w }
6        { 2mm, 1.2mm }
7
8    __0: vec @(w/2, h/2)
9    __1: vec @(-w/2, -h/2)
10    pad "$name" . __0
11}
12
13frame pads {
14    table
15        { name, x }
16        { 1, 3.5mm }
17        { 2, 1mm }
18        { 3, -1mm }
19        { 4, -3.5mm }
20
21    __0: vec @(0mm, 2.6mm)
22    __1: vec .(x, 0mm)
23    frame pad .
24}
25
26frame shield {
27    table
28        { name, x }
29        { 5, -B/2 }
30        { 6, B/2 }
31
32    table
33        { hi, wi }
34        { 2.5mm, 1mm }
35
36    set ratio = 2
37
38    set ho = hi*ratio
39
40    set wo = wi*ratio
41
42    __0: vec @(x, 0mm)
43    __1: vec .(wo/2, ho/2)
44    __2: vec __0(-wo/2, -ho/2)
45    rpad "$name" . __1
46    __3: vec __0(wi/2, hi/2)
47    __4: vec __0(-wi/2, -hi/2)
48    hole . __3
49}
50
51frame holes {
52    set d = 1.1mm
53
54    table
55        { x }
56        { -C/2 }
57        { C/2 }
58
59    __0: vec @(x, 0mm)
60    __1: vec .(d/2, d/2)
61    __2: vec __0(-d/2, -d/2)
62    hole . __1
63}
64
65frame edge {
66    set w = 5mil
67
68    __0: vec @(0mm, -2.75mm)
69    __1: vec .(B/2, 0mm)
70    __2: vec __0(-B/2, 0mm)
71    line . __1 w
72}
73
74package "USB-A-PLUG-SMT"
75unit auto
76
77table
78    { A, B, C }
79    { 2mm, 11.4mm, 4.5mm }
80
81frame edge @
82frame holes @
83frame pads @
84frame shield @
85measx pads.__1 >> pads.__1 3mm
86measx pads.__1 -> pads.__1 2.5mm
87measx pad.__1 -> pad.__0 3mm
88measy pad.__1 -> pad.__0 0.5mm
89measx shield.__2 -> shield.__1 -2.5mm
90measy shield.__2 -> shield.__1 1.5mm
91measy shield.__4 -> shield.__3 1mm
92measx shield.__4 -> shield.__3 -2mm
93measx shield.__0 >> shield.__0 6.5mm
94measx holes.__0 >> holes.__0 -1.5mm
95measy holes.__2 -> holes.__1 1mm
96measy edge.__1 >> shield.__0 -2mm
97measy pads.__0 << shield.__0 -2mm
98

Archive Download this file



interactive