Root/ants/meander.fpd

Source at commit 49e7c83796bc04941e9dbcec69bc0751563ff4d4 created 3 years 6 months ago.
By Werner Almesberger, atusb/: use ""VDD" symbol from kicad-libs
1/* MACHINE-GENERATED ! */
2
3frame via {
4    set d = 0.2mm
5
6    __0: vec @(d/2, d/2)
7    __1: vec @(-d/2, -d/2)
8    hole . __0
9}
10
11frame antenna {
12    set w = 5mil
13
14    __0: vec @(W1/2, -D4/2)
15    __1: vec .(0mm, L6)
16    __2: vec .(D5, 0mm)
17    __3: vec .(W2, 0mm)
18    __4: vec @(-W1/2, D4/2)
19    pad "1" __0 . trace
20    pad "X" . __1 trace
21    __5: vec .(-D1, 0mm)
22    __6: vec __1(-W1, 0mm)
23    __33: vec .(0mm, W2)
24    __34: vec .(-D1, D2)
25    line __5 . w
26    __7: vec __3(D6, 0mm)
27    __8: vec .(W2, 0mm)
28    __9: vec .(0mm, W2)
29    pad "X" __6 . trace
30    __10: vec __3(0mm, -L6)
31    __11: vec .(-W2, D4)
32    pad "2" . __10 trace
33    pad "X" . __3 trace
34    __12: vec __7(0mm, -L4)
35    __13: vec .(W2, 0mm)
36    pad "X" __7 . trace
37    __14: vec .(L5, 0mm)
38    __15: vec .(0mm, W2)
39    pad "X" __13 . trace
40    __18: vec .(0mm, L4)
41    __19: vec .(L2, 0mm)
42    __20: vec .(0mm, -W2)
43    pad "X" __18 . trace
44    __25: vec .(-W2, 0mm)
45    __21: vec .(0mm, -L4)
46    __22: vec .(W2, 0mm)
47    pad "X" __25 . trace
48    __23: vec .(L5, 0mm)
49    __16: vec __14(W2, 0mm)
50    __17: vec .(0mm, L4)
51    pad "X" __14 . trace
52    __24: vec __23(W2, 0mm)
53    __26: vec .(0mm, L4)
54    pad "X" __23 . trace
55    __27: vec __23(0mm, W2)
56    pad "X" __22 . trace
57    __28: vec .(0mm, L4)
58    __29: vec .(L2, 0mm)
59    __30: vec .(0mm, -W2)
60    pad "X" __28 . trace
61    __31: vec .(-W2, 0mm)
62    __32: vec __30(0mm, -L1)
63    pad "X" __31 . trace
64    __38: vec .(tail, W2)
65// @@@ avoid problems with zero-sized tails. Note that this breaks non-zero
66// tails. Anyone trying to use these experimental antennas is advised to
67// switch to kicad-libs/modules/meander-2450MHz.fpd instead.
68// pad "X" __32 . trace
69    __35: vec __29(D3+tail, D2)
70    line . __34 w
71    __36: vec .(0mm, -(D2+W2+L6-D4))
72    line __35 . w
73    __37: vec .(-(W2+L5+L2+L5+L2+D3+tail), 0mm)
74    line __36 . w
75    frame via @
76}
77
78package "MEANDER-$size"
79unit mm
80allow touch
81
82table
83    { L1, L2, L3, L4, L5, L6 }
84    { 3.94mm, 2.7mm*size/100, 5mm, 2.64mm, 2mm*size/100, 4.9mm }
85
86table
87    { W1, W2 }
88    { 0.9mm, 0.5mm }
89
90table
91    { D1, D2, D3, D4, D5, D6 }
92    { 0.5mm, 0.3mm, 0.3mm, 0.5mm, 1.4mm, 1.7mm }
93
94set __tail = 3*W2
95
96set tail = 0mm
97
98table
99    { size }
100    { 80 }
101    { 90 }
102    { 100 }
103    { 105 }
104    { 110 }
105    { 115 }
106    { 120 }
107
108__0: vec @(0mm, 0.1mm)
109frame antenna .
110measx antenna.__33 >> antenna.__9 1mm
111measx antenna.__18 >> antenna.__19 1mm
112measx antenna.__28 >> antenna.__29 1mm
113measx antenna.__29 >> antenna.__35 1mm
114measx antenna.__21 >> antenna.__22 -1mm
115measx antenna.__22 >> antenna.__23 -1mm
116measx antenna.__23 >> antenna.__24 -1mm
117measx antenna.__12 >> antenna.__13 -1mm
118measx antenna.__13 >> antenna.__14 -1mm
119measx antenna.__14 >> antenna.__16 -1mm
120measx antenna.__1 >> antenna.__2 -0.5mm
121measx antenna.__3 >> antenna.__7 -0.5mm
122measx antenna.__5 >> antenna.__4
123measy antenna.__33 >> antenna.__34 1mm
124measy antenna.__0 >> antenna.__4 W1
125measy antenna.__10 >> antenna.__11 W2
126measx antenna.__4 >> antenna.__0 -D4-1mm
127measx antenna.__11 >> antenna.__10 -D4-1mm
128measy antenna.__6 >> antenna.__33 1mm
129measx antenna.__31 >> antenna.__32 -L1-1mm
130measy antenna.__8 >> antenna.__9 -1mm
131measy antenna.__20 >> antenna.__19 -1mm
132measy antenna.__30 >> antenna.__29 -1mm-tail
133measy antenna.__21 >> antenna.__25 0.5mm
134measy antenna.__12 >> antenna.__7 0.5mm
135measy antenna.__32 >> antenna.__30 -1mm-tail
136measx antenna.__34 >> antenna.__35 1.5mm-D2
137measy antenna.__5 >> antenna.__34 1.5mm-D1
138measx antenna.__32 >> antenna.__38 -1mm
139

Archive Download this file



interactive