Sign in with STEVE

Compare versions

4 files changed, +620 −20 1.1.0: Right-angle 2.54 mm headers.

part.py +43 −14
@@ -1,10 +1,12 @@
1"""Straight through-hole pin header, 2.54 mm and 2.00 mm pitch, one or two rows. Pin 1 is at the origin, the row along +X, the second row along
2+Y; the insulator's underside is on the XY plane, the posts' mating end up, the tails down through the board. Dimensions in the README."""
1"""Through-hole pin header, 2.54 mm and 2.00 mm pitch, one or two rows, straight or right-angle (2.54 mm only). Pin 1 is at the origin, the row along +X.
2Straight: the second row along +Y, the insulator's underside on the XY plane, the mating posts up. Right-angle: the second row's tails along -Y, the
3insulator standing on the XY plane, the mating posts along +Y. The tails go down through the board. Dimensions in the README."""
34from steve import Model
45
56pitch = 2.54 # mm Pitch
67rows = 1 # Rows
78pins = 8 # Pins per row
9style = "straight" # straight or right-angle
810detail = "full" # full: square posts and notched insulator; simple: one block per row, with no posts
911
1012# pitch: (above the insulator C, insulator height, tail B, one-row width, two-row width, post square).
@@ -12,6 +14,11 @@
1214# 2.00: Samtec TMM lead style -02, catalogue page TMM (F-226), A 8.20, B 3.70, C 3.00, body 1.50, widths 1.97 and 3.94. The page doesn't
1315# print the post size, so 0.50 here is a proportion of the pitch, for looks.
1416SIZES = {2.54: (5.84, 2.54, 2.54, 2.48, 5.02, 0.64), 2.0: (3.00, 1.50, 3.70, 1.97, 3.94, 0.50)}
17
18# Right-angle, 2.54: Samtec TSW lead style -08-RA, same page: post out from the insulator C 5.84, tail below the insulator E 2.29, tail to the insulator D 1.52,
19# insulator height 3.02 (one row) and 5.56 (two rows). The insulator's depth is taken as the straight header's 2.54 high.
20RIGHT_ANGLE = (5.84, 2.29, 1.52, 3.02, 5.56)
21
1522
1623above, body_h, tail, one, two, post = SIZES[pitch]
1724width = one if rows == 1 else two
@@ -28,20 +35,42 @@
2835outline += [(x0, y0 + width)]
2936
3037model = Model()
31with model.sketch("body_sketch", on="XY", name="Insulator") as sk:
38if style == "right-angle":
39 out, drop, back, high_one, high_two = RIGHT_ANGLE
40 high = high_one if rows == 1 else high_two
41 with model.sketch("body_sketch", on="XY", name="Insulator") as sk:
42 sk.rect("body_outline", (x0, back), (x0 + length, back + body_h))
43 model.extrude("body", "body_sketch", distance=high, name="Insulator")
3244 if detail == "full":
33 sk.polyline("body_outline", outline, closed=True)
34 else:
35 sk.rect("body_outline", (x0, y0), (x0 + length, y0 + width))
36model.extrude("body", "body_sketch", distance=body_h if detail == "full" else body_h + above, name="Insulator")
37if detail == "full":
38 model.plane("tail_plane", on="XY", offset=-tail, name="Tail end")
39 with model.sketch("posts_sketch", on="tail_plane", name="Posts") as sk:
45 rise = (high - (rows - 1) * pitch) / 2
4046 for row in range(rows):
41 for i in range(pins):
42 x, y = i * pitch, row * pitch
43 sk.rect(f"post_{row}_{i}", (x - post / 2, y - post / 2), (x + post / 2, y + post / 2))
44 model.extrude("posts", "posts_sketch", distance=tail + body_h + above, name="Posts")
47 z = rise + row * pitch
48 y_tail = -row * pitch
49 model.plane(f"run_plane_{row}", on="XZ", offset=-y_tail + post / 2, name="Posts")
50 with model.sketch(f"post_sketch_{row}", on=f"run_plane_{row}", name="Posts") as sk:
51 for i in range(pins):
52 sk.rect(f"post_{row}_{i}", (i * pitch - post / 2, z - post / 2), (i * pitch + post / 2, z + post / 2))
53 model.extrude(f"posts_{row}", f"post_sketch_{row}", distance=-(back + body_h + out - y_tail + post / 2), name="Posts")
54 model.plane(f"tail_plane_{row}", on="XY", offset=-drop, name="Tails")
55 with model.sketch(f"tail_sketch_{row}", on=f"tail_plane_{row}", name="Tails") as sk:
56 for i in range(pins):
57 sk.rect(f"tail_{row}_{i}", (i * pitch - post / 2, y_tail - post / 2), (i * pitch + post / 2, y_tail + post / 2))
58 model.extrude(f"tails_{row}", f"tail_sketch_{row}", distance=drop + z + post / 2, name="Tails")
59else:
60 with model.sketch("body_sketch", on="XY", name="Insulator") as sk:
61 if detail == "full":
62 sk.polyline("body_outline", outline, closed=True)
63 else:
64 sk.rect("body_outline", (x0, y0), (x0 + length, y0 + width))
65 model.extrude("body", "body_sketch", distance=body_h if detail == "full" else body_h + above, name="Insulator")
66 if detail == "full":
67 model.plane("tail_plane", on="XY", offset=-tail, name="Tail end")
68 with model.sketch("posts_sketch", on="tail_plane", name="Posts") as sk:
69 for row in range(rows):
70 for i in range(pins):
71 x, y = i * pitch, row * pitch
72 sk.rect(f"post_{row}_{i}", (x - post / 2, y - post / 2), (x + post / 2, y + post / 2))
73 model.extrude("posts", "posts_sketch", distance=tail + body_h + above, name="Posts")
4574model.material("steel-generic", color="#2b2b2d")
4675result = model.result()
4776
pypart.toml +11 −3
@@ -1,9 +1,10 @@
11name = "steve/pin-header"
2version = "1.0.0"
2version = "1.1.0"
33runtime = "steve"
44license = "MIT"
5summary = "Straight through-hole pin header, 2.54 mm and 2.00 mm pitch, one or two rows, 1 to 40 pins per row."
6description = """Straight through-hole pin header with square posts and a notched insulator. Pin 1 at the origin, row along +X. Heights and widths from Samtec's TSW and TMM pages. See the README."""
5summary = "Through-hole pin header, 2.54 mm and 2.00 mm pitch, one or two rows, 1 to 40 pins per row, straight or right-angle."
6changes = "Right-angle 2.54 mm headers."
7description = """Through-hole pin header, straight or right-angle, with square posts and a notched insulator. Pin 1 at the origin, row along +X. Heights and widths from Samtec's TSW and TMM pages. See the README."""
78tags = ["pin-header", "connector", "header", "board-to-board", "electronics"]
89
910[parameters.pitch]
@@ -26,6 +27,13 @@
2627max = 40
2728label = "Pins per row"
2829
30[parameters.style]
31type = "choice"
32default = "straight"
33choices = ["straight", "right-angle"]
34label = "Style"
35description = "right-angle is 2.54 mm only."
36
2937[parameters.detail]
3038type = "choice"
3139default = "full"
presets.toml +560 −0
@@ -1,4 +1,564 @@
11# Presets of this part (factory/PRESETS.md). Written by factory/gen.py.
2
3[[presets]]
4id = "2.54-1x01-RA"
5title = "Pin header 1x01, 2.54 mm, right-angle"
6params = { pitch = 2.54, rows = 1, pins = 1, style = "right-angle" }
7aliases = ["1x01 right angle header", "1x1 right angle header", "1x1 right angle 2.54", "1x01 2.54mm right angle", "1 pin right angle header"]
8standard = "Samtec TSW"
9
10[[presets]]
11id = "2.54-1x02-RA"
12title = "Pin header 1x02, 2.54 mm, right-angle"
13params = { pitch = 2.54, rows = 1, pins = 2, style = "right-angle" }
14aliases = ["1x02 right angle header", "1x2 right angle header", "1x2 right angle 2.54", "1x02 2.54mm right angle", "2 pin right angle header"]
15standard = "Samtec TSW"
16
17[[presets]]
18id = "2.54-1x03-RA"
19title = "Pin header 1x03, 2.54 mm, right-angle"
20params = { pitch = 2.54, rows = 1, pins = 3, style = "right-angle" }
21aliases = ["1x03 right angle header", "1x3 right angle header", "1x3 right angle 2.54", "1x03 2.54mm right angle", "3 pin right angle header"]
22standard = "Samtec TSW"
23
24[[presets]]
25id = "2.54-1x04-RA"
26title = "Pin header 1x04, 2.54 mm, right-angle"
27params = { pitch = 2.54, rows = 1, pins = 4, style = "right-angle" }
28aliases = ["1x04 right angle header", "1x4 right angle header", "1x4 right angle 2.54", "1x04 2.54mm right angle", "4 pin right angle header"]
29standard = "Samtec TSW"
30
31[[presets]]
32id = "2.54-1x05-RA"
33title = "Pin header 1x05, 2.54 mm, right-angle"
34params = { pitch = 2.54, rows = 1, pins = 5, style = "right-angle" }
35aliases = ["1x05 right angle header", "1x5 right angle header", "1x5 right angle 2.54", "1x05 2.54mm right angle", "5 pin right angle header"]
36standard = "Samtec TSW"
37
38[[presets]]
39id = "2.54-1x06-RA"
40title = "Pin header 1x06, 2.54 mm, right-angle"
41params = { pitch = 2.54, rows = 1, pins = 6, style = "right-angle" }
42aliases = ["1x06 right angle header", "1x6 right angle header", "1x6 right angle 2.54", "1x06 2.54mm right angle", "6 pin right angle header"]
43standard = "Samtec TSW"
44
45[[presets]]
46id = "2.54-1x07-RA"
47title = "Pin header 1x07, 2.54 mm, right-angle"
48params = { pitch = 2.54, rows = 1, pins = 7, style = "right-angle" }
49aliases = ["1x07 right angle header", "1x7 right angle header", "1x7 right angle 2.54", "1x07 2.54mm right angle", "7 pin right angle header"]
50standard = "Samtec TSW"
51
52[[presets]]
53id = "2.54-1x08-RA"
54title = "Pin header 1x08, 2.54 mm, right-angle"
55params = { pitch = 2.54, rows = 1, pins = 8, style = "right-angle" }
56aliases = ["1x08 right angle header", "1x8 right angle header", "1x8 right angle 2.54", "1x08 2.54mm right angle", "8 pin right angle header"]
57standard = "Samtec TSW"
58
59[[presets]]
60id = "2.54-1x09-RA"
61title = "Pin header 1x09, 2.54 mm, right-angle"
62params = { pitch = 2.54, rows = 1, pins = 9, style = "right-angle" }
63aliases = ["1x09 right angle header", "1x9 right angle header", "1x9 right angle 2.54", "1x09 2.54mm right angle", "9 pin right angle header"]
64standard = "Samtec TSW"
65
66[[presets]]
67id = "2.54-1x10-RA"
68title = "Pin header 1x10, 2.54 mm, right-angle"
69params = { pitch = 2.54, rows = 1, pins = 10, style = "right-angle" }
70aliases = ["1x10 right angle header", "1x10 right angle 2.54", "1x10 2.54mm right angle", "10 pin right angle header"]
71standard = "Samtec TSW"
72
73[[presets]]
74id = "2.54-1x11-RA"
75title = "Pin header 1x11, 2.54 mm, right-angle"
76params = { pitch = 2.54, rows = 1, pins = 11, style = "right-angle" }
77aliases = ["1x11 right angle header", "1x11 right angle 2.54", "1x11 2.54mm right angle", "11 pin right angle header"]
78standard = "Samtec TSW"
79
80[[presets]]
81id = "2.54-1x12-RA"
82title = "Pin header 1x12, 2.54 mm, right-angle"
83params = { pitch = 2.54, rows = 1, pins = 12, style = "right-angle" }
84aliases = ["1x12 right angle header", "1x12 right angle 2.54", "1x12 2.54mm right angle", "12 pin right angle header"]
85standard = "Samtec TSW"
86
87[[presets]]
88id = "2.54-1x13-RA"
89title = "Pin header 1x13, 2.54 mm, right-angle"
90params = { pitch = 2.54, rows = 1, pins = 13, style = "right-angle" }
91aliases = ["1x13 right angle header", "1x13 right angle 2.54", "1x13 2.54mm right angle", "13 pin right angle header"]
92standard = "Samtec TSW"
93
94[[presets]]
95id = "2.54-1x14-RA"
96title = "Pin header 1x14, 2.54 mm, right-angle"
97params = { pitch = 2.54, rows = 1, pins = 14, style = "right-angle" }
98aliases = ["1x14 right angle header", "1x14 right angle 2.54", "1x14 2.54mm right angle", "14 pin right angle header"]
99standard = "Samtec TSW"
100
101[[presets]]
102id = "2.54-1x15-RA"
103title = "Pin header 1x15, 2.54 mm, right-angle"
104params = { pitch = 2.54, rows = 1, pins = 15, style = "right-angle" }
105aliases = ["1x15 right angle header", "1x15 right angle 2.54", "1x15 2.54mm right angle", "15 pin right angle header"]
106standard = "Samtec TSW"
107
108[[presets]]
109id = "2.54-1x16-RA"
110title = "Pin header 1x16, 2.54 mm, right-angle"
111params = { pitch = 2.54, rows = 1, pins = 16, style = "right-angle" }
112aliases = ["1x16 right angle header", "1x16 right angle 2.54", "1x16 2.54mm right angle", "16 pin right angle header"]
113standard = "Samtec TSW"
114
115[[presets]]
116id = "2.54-1x17-RA"
117title = "Pin header 1x17, 2.54 mm, right-angle"
118params = { pitch = 2.54, rows = 1, pins = 17, style = "right-angle" }
119aliases = ["1x17 right angle header", "1x17 right angle 2.54", "1x17 2.54mm right angle", "17 pin right angle header"]
120standard = "Samtec TSW"
121
122[[presets]]
123id = "2.54-1x18-RA"
124title = "Pin header 1x18, 2.54 mm, right-angle"
125params = { pitch = 2.54, rows = 1, pins = 18, style = "right-angle" }
126aliases = ["1x18 right angle header", "1x18 right angle 2.54", "1x18 2.54mm right angle", "18 pin right angle header"]
127standard = "Samtec TSW"
128
129[[presets]]
130id = "2.54-1x19-RA"
131title = "Pin header 1x19, 2.54 mm, right-angle"
132params = { pitch = 2.54, rows = 1, pins = 19, style = "right-angle" }
133aliases = ["1x19 right angle header", "1x19 right angle 2.54", "1x19 2.54mm right angle", "19 pin right angle header"]
134standard = "Samtec TSW"
135
136[[presets]]
137id = "2.54-1x20-RA"
138title = "Pin header 1x20, 2.54 mm, right-angle"
139params = { pitch = 2.54, rows = 1, pins = 20, style = "right-angle" }
140aliases = ["1x20 right angle header", "1x20 right angle 2.54", "1x20 2.54mm right angle", "20 pin right angle header"]
141standard = "Samtec TSW"
142
143[[presets]]
144id = "2.54-1x21-RA"
145title = "Pin header 1x21, 2.54 mm, right-angle"
146params = { pitch = 2.54, rows = 1, pins = 21, style = "right-angle" }
147aliases = ["1x21 right angle header", "1x21 right angle 2.54", "1x21 2.54mm right angle", "21 pin right angle header"]
148standard = "Samtec TSW"
149
150[[presets]]
151id = "2.54-1x22-RA"
152title = "Pin header 1x22, 2.54 mm, right-angle"
153params = { pitch = 2.54, rows = 1, pins = 22, style = "right-angle" }
154aliases = ["1x22 right angle header", "1x22 right angle 2.54", "1x22 2.54mm right angle", "22 pin right angle header"]
155standard = "Samtec TSW"
156
157[[presets]]
158id = "2.54-1x23-RA"
159title = "Pin header 1x23, 2.54 mm, right-angle"
160params = { pitch = 2.54, rows = 1, pins = 23, style = "right-angle" }
161aliases = ["1x23 right angle header", "1x23 right angle 2.54", "1x23 2.54mm right angle", "23 pin right angle header"]
162standard = "Samtec TSW"
163
164[[presets]]
165id = "2.54-1x24-RA"
166title = "Pin header 1x24, 2.54 mm, right-angle"
167params = { pitch = 2.54, rows = 1, pins = 24, style = "right-angle" }
168aliases = ["1x24 right angle header", "1x24 right angle 2.54", "1x24 2.54mm right angle", "24 pin right angle header"]
169standard = "Samtec TSW"
170
171[[presets]]
172id = "2.54-1x25-RA"
173title = "Pin header 1x25, 2.54 mm, right-angle"
174params = { pitch = 2.54, rows = 1, pins = 25, style = "right-angle" }
175aliases = ["1x25 right angle header", "1x25 right angle 2.54", "1x25 2.54mm right angle", "25 pin right angle header"]
176standard = "Samtec TSW"
177
178[[presets]]
179id = "2.54-1x26-RA"
180title = "Pin header 1x26, 2.54 mm, right-angle"
181params = { pitch = 2.54, rows = 1, pins = 26, style = "right-angle" }
182aliases = ["1x26 right angle header", "1x26 right angle 2.54", "1x26 2.54mm right angle", "26 pin right angle header"]
183standard = "Samtec TSW"
184
185[[presets]]
186id = "2.54-1x27-RA"
187title = "Pin header 1x27, 2.54 mm, right-angle"
188params = { pitch = 2.54, rows = 1, pins = 27, style = "right-angle" }
189aliases = ["1x27 right angle header", "1x27 right angle 2.54", "1x27 2.54mm right angle", "27 pin right angle header"]
190standard = "Samtec TSW"
191
192[[presets]]
193id = "2.54-1x28-RA"
194title = "Pin header 1x28, 2.54 mm, right-angle"
195params = { pitch = 2.54, rows = 1, pins = 28, style = "right-angle" }
196aliases = ["1x28 right angle header", "1x28 right angle 2.54", "1x28 2.54mm right angle", "28 pin right angle header"]
197standard = "Samtec TSW"
198
199[[presets]]
200id = "2.54-1x29-RA"
201title = "Pin header 1x29, 2.54 mm, right-angle"
202params = { pitch = 2.54, rows = 1, pins = 29, style = "right-angle" }
203aliases = ["1x29 right angle header", "1x29 right angle 2.54", "1x29 2.54mm right angle", "29 pin right angle header"]
204standard = "Samtec TSW"
205
206[[presets]]
207id = "2.54-1x30-RA"
208title = "Pin header 1x30, 2.54 mm, right-angle"
209params = { pitch = 2.54, rows = 1, pins = 30, style = "right-angle" }
210aliases = ["1x30 right angle header", "1x30 right angle 2.54", "1x30 2.54mm right angle", "30 pin right angle header"]
211standard = "Samtec TSW"
212
213[[presets]]
214id = "2.54-1x31-RA"
215title = "Pin header 1x31, 2.54 mm, right-angle"
216params = { pitch = 2.54, rows = 1, pins = 31, style = "right-angle" }
217aliases = ["1x31 right angle header", "1x31 right angle 2.54", "1x31 2.54mm right angle", "31 pin right angle header"]
218standard = "Samtec TSW"
219
220[[presets]]
221id = "2.54-1x32-RA"
222title = "Pin header 1x32, 2.54 mm, right-angle"
223params = { pitch = 2.54, rows = 1, pins = 32, style = "right-angle" }
224aliases = ["1x32 right angle header", "1x32 right angle 2.54", "1x32 2.54mm right angle", "32 pin right angle header"]
225standard = "Samtec TSW"
226
227[[presets]]
228id = "2.54-1x33-RA"
229title = "Pin header 1x33, 2.54 mm, right-angle"
230params = { pitch = 2.54, rows = 1, pins = 33, style = "right-angle" }
231aliases = ["1x33 right angle header", "1x33 right angle 2.54", "1x33 2.54mm right angle", "33 pin right angle header"]
232standard = "Samtec TSW"
233
234[[presets]]
235id = "2.54-1x34-RA"
236title = "Pin header 1x34, 2.54 mm, right-angle"
237params = { pitch = 2.54, rows = 1, pins = 34, style = "right-angle" }
238aliases = ["1x34 right angle header", "1x34 right angle 2.54", "1x34 2.54mm right angle", "34 pin right angle header"]
239standard = "Samtec TSW"
240
241[[presets]]
242id = "2.54-1x35-RA"
243title = "Pin header 1x35, 2.54 mm, right-angle"
244params = { pitch = 2.54, rows = 1, pins = 35, style = "right-angle" }
245aliases = ["1x35 right angle header", "1x35 right angle 2.54", "1x35 2.54mm right angle", "35 pin right angle header"]
246standard = "Samtec TSW"
247
248[[presets]]
249id = "2.54-1x36-RA"
250title = "Pin header 1x36, 2.54 mm, right-angle"
251params = { pitch = 2.54, rows = 1, pins = 36, style = "right-angle" }
252aliases = ["1x36 right angle header", "1x36 right angle 2.54", "1x36 2.54mm right angle", "36 pin right angle header"]
253standard = "Samtec TSW"
254
255[[presets]]
256id = "2.54-1x37-RA"
257title = "Pin header 1x37, 2.54 mm, right-angle"
258params = { pitch = 2.54, rows = 1, pins = 37, style = "right-angle" }
259aliases = ["1x37 right angle header", "1x37 right angle 2.54", "1x37 2.54mm right angle", "37 pin right angle header"]
260standard = "Samtec TSW"
261
262[[presets]]
263id = "2.54-1x38-RA"
264title = "Pin header 1x38, 2.54 mm, right-angle"
265params = { pitch = 2.54, rows = 1, pins = 38, style = "right-angle" }
266aliases = ["1x38 right angle header", "1x38 right angle 2.54", "1x38 2.54mm right angle", "38 pin right angle header"]
267standard = "Samtec TSW"
268
269[[presets]]
270id = "2.54-1x39-RA"
271title = "Pin header 1x39, 2.54 mm, right-angle"
272params = { pitch = 2.54, rows = 1, pins = 39, style = "right-angle" }
273aliases = ["1x39 right angle header", "1x39 right angle 2.54", "1x39 2.54mm right angle", "39 pin right angle header"]
274standard = "Samtec TSW"
275
276[[presets]]
277id = "2.54-1x40-RA"
278title = "Pin header 1x40, 2.54 mm, right-angle"
279params = { pitch = 2.54, rows = 1, pins = 40, style = "right-angle" }
280aliases = ["1x40 right angle header", "1x40 right angle 2.54", "1x40 2.54mm right angle", "40 pin right angle header"]
281standard = "Samtec TSW"
282
283[[presets]]
284id = "2.54-2x01-RA"
285title = "Pin header 2x01, 2.54 mm, right-angle"
286params = { pitch = 2.54, rows = 2, pins = 1, style = "right-angle" }
287aliases = ["2x01 right angle header", "2x1 right angle header", "2x1 right angle 2.54", "2x01 2.54mm right angle", "2 pin right angle header"]
288standard = "Samtec TSW"
289
290[[presets]]
291id = "2.54-2x02-RA"
292title = "Pin header 2x02, 2.54 mm, right-angle"
293params = { pitch = 2.54, rows = 2, pins = 2, style = "right-angle" }
294aliases = ["2x02 right angle header", "2x2 right angle header", "2x2 right angle 2.54", "2x02 2.54mm right angle", "4 pin right angle header"]
295standard = "Samtec TSW"
296
297[[presets]]
298id = "2.54-2x03-RA"
299title = "Pin header 2x03, 2.54 mm, right-angle"
300params = { pitch = 2.54, rows = 2, pins = 3, style = "right-angle" }
301aliases = ["2x03 right angle header", "2x3 right angle header", "2x3 right angle 2.54", "2x03 2.54mm right angle", "6 pin right angle header"]
302standard = "Samtec TSW"
303
304[[presets]]
305id = "2.54-2x04-RA"
306title = "Pin header 2x04, 2.54 mm, right-angle"
307params = { pitch = 2.54, rows = 2, pins = 4, style = "right-angle" }
308aliases = ["2x04 right angle header", "2x4 right angle header", "2x4 right angle 2.54", "2x04 2.54mm right angle", "8 pin right angle header"]
309standard = "Samtec TSW"
310
311[[presets]]
312id = "2.54-2x05-RA"
313title = "Pin header 2x05, 2.54 mm, right-angle"
314params = { pitch = 2.54, rows = 2, pins = 5, style = "right-angle" }
315aliases = ["2x05 right angle header", "2x5 right angle header", "2x5 right angle 2.54", "2x05 2.54mm right angle", "10 pin right angle header"]
316standard = "Samtec TSW"
317
318[[presets]]
319id = "2.54-2x06-RA"
320title = "Pin header 2x06, 2.54 mm, right-angle"
321params = { pitch = 2.54, rows = 2, pins = 6, style = "right-angle" }
322aliases = ["2x06 right angle header", "2x6 right angle header", "2x6 right angle 2.54", "2x06 2.54mm right angle", "12 pin right angle header"]
323standard = "Samtec TSW"
324
325[[presets]]
326id = "2.54-2x07-RA"
327title = "Pin header 2x07, 2.54 mm, right-angle"
328params = { pitch = 2.54, rows = 2, pins = 7, style = "right-angle" }
329aliases = ["2x07 right angle header", "2x7 right angle header", "2x7 right angle 2.54", "2x07 2.54mm right angle", "14 pin right angle header"]
330standard = "Samtec TSW"
331
332[[presets]]
333id = "2.54-2x08-RA"
334title = "Pin header 2x08, 2.54 mm, right-angle"
335params = { pitch = 2.54, rows = 2, pins = 8, style = "right-angle" }
336aliases = ["2x08 right angle header", "2x8 right angle header", "2x8 right angle 2.54", "2x08 2.54mm right angle", "16 pin right angle header"]
337standard = "Samtec TSW"
338
339[[presets]]
340id = "2.54-2x09-RA"
341title = "Pin header 2x09, 2.54 mm, right-angle"
342params = { pitch = 2.54, rows = 2, pins = 9, style = "right-angle" }
343aliases = ["2x09 right angle header", "2x9 right angle header", "2x9 right angle 2.54", "2x09 2.54mm right angle", "18 pin right angle header"]
344standard = "Samtec TSW"
345
346[[presets]]
347id = "2.54-2x10-RA"
348title = "Pin header 2x10, 2.54 mm, right-angle"
349params = { pitch = 2.54, rows = 2, pins = 10, style = "right-angle" }
350aliases = ["2x10 right angle header", "2x10 right angle 2.54", "2x10 2.54mm right angle", "20 pin right angle header"]
351standard = "Samtec TSW"
352
353[[presets]]
354id = "2.54-2x11-RA"
355title = "Pin header 2x11, 2.54 mm, right-angle"
356params = { pitch = 2.54, rows = 2, pins = 11, style = "right-angle" }
357aliases = ["2x11 right angle header", "2x11 right angle 2.54", "2x11 2.54mm right angle", "22 pin right angle header"]
358standard = "Samtec TSW"
359
360[[presets]]
361id = "2.54-2x12-RA"
362title = "Pin header 2x12, 2.54 mm, right-angle"
363params = { pitch = 2.54, rows = 2, pins = 12, style = "right-angle" }
364aliases = ["2x12 right angle header", "2x12 right angle 2.54", "2x12 2.54mm right angle", "24 pin right angle header"]
365standard = "Samtec TSW"
366
367[[presets]]
368id = "2.54-2x13-RA"
369title = "Pin header 2x13, 2.54 mm, right-angle"
370params = { pitch = 2.54, rows = 2, pins = 13, style = "right-angle" }
371aliases = ["2x13 right angle header", "2x13 right angle 2.54", "2x13 2.54mm right angle", "26 pin right angle header"]
372standard = "Samtec TSW"
373
374[[presets]]
375id = "2.54-2x14-RA"
376title = "Pin header 2x14, 2.54 mm, right-angle"
377params = { pitch = 2.54, rows = 2, pins = 14, style = "right-angle" }
378aliases = ["2x14 right angle header", "2x14 right angle 2.54", "2x14 2.54mm right angle", "28 pin right angle header"]
379standard = "Samtec TSW"
380
381[[presets]]
382id = "2.54-2x15-RA"
383title = "Pin header 2x15, 2.54 mm, right-angle"
384params = { pitch = 2.54, rows = 2, pins = 15, style = "right-angle" }
385aliases = ["2x15 right angle header", "2x15 right angle 2.54", "2x15 2.54mm right angle", "30 pin right angle header"]
386standard = "Samtec TSW"
387
388[[presets]]
389id = "2.54-2x16-RA"
390title = "Pin header 2x16, 2.54 mm, right-angle"
391params = { pitch = 2.54, rows = 2, pins = 16, style = "right-angle" }
392aliases = ["2x16 right angle header", "2x16 right angle 2.54", "2x16 2.54mm right angle", "32 pin right angle header"]
393standard = "Samtec TSW"
394
395[[presets]]
396id = "2.54-2x17-RA"
397title = "Pin header 2x17, 2.54 mm, right-angle"
398params = { pitch = 2.54, rows = 2, pins = 17, style = "right-angle" }
399aliases = ["2x17 right angle header", "2x17 right angle 2.54", "2x17 2.54mm right angle", "34 pin right angle header"]
400standard = "Samtec TSW"
401
402[[presets]]
403id = "2.54-2x18-RA"
404title = "Pin header 2x18, 2.54 mm, right-angle"
405params = { pitch = 2.54, rows = 2, pins = 18, style = "right-angle" }
406aliases = ["2x18 right angle header", "2x18 right angle 2.54", "2x18 2.54mm right angle", "36 pin right angle header"]
407standard = "Samtec TSW"
408
409[[presets]]
410id = "2.54-2x19-RA"
411title = "Pin header 2x19, 2.54 mm, right-angle"
412params = { pitch = 2.54, rows = 2, pins = 19, style = "right-angle" }
413aliases = ["2x19 right angle header", "2x19 right angle 2.54", "2x19 2.54mm right angle", "38 pin right angle header"]
414standard = "Samtec TSW"
415
416[[presets]]
417id = "2.54-2x20-RA"
418title = "Pin header 2x20, 2.54 mm, right-angle"
419params = { pitch = 2.54, rows = 2, pins = 20, style = "right-angle" }
420aliases = ["2x20 right angle header", "2x20 right angle 2.54", "2x20 2.54mm right angle", "40 pin right angle header"]
421standard = "Samtec TSW"
422
423[[presets]]
424id = "2.54-2x21-RA"
425title = "Pin header 2x21, 2.54 mm, right-angle"
426params = { pitch = 2.54, rows = 2, pins = 21, style = "right-angle" }
427aliases = ["2x21 right angle header", "2x21 right angle 2.54", "2x21 2.54mm right angle", "42 pin right angle header"]
428standard = "Samtec TSW"
429
430[[presets]]
431id = "2.54-2x22-RA"
432title = "Pin header 2x22, 2.54 mm, right-angle"
433params = { pitch = 2.54, rows = 2, pins = 22, style = "right-angle" }
434aliases = ["2x22 right angle header", "2x22 right angle 2.54", "2x22 2.54mm right angle", "44 pin right angle header"]
435standard = "Samtec TSW"
436
437[[presets]]
438id = "2.54-2x23-RA"
439title = "Pin header 2x23, 2.54 mm, right-angle"
440params = { pitch = 2.54, rows = 2, pins = 23, style = "right-angle" }
441aliases = ["2x23 right angle header", "2x23 right angle 2.54", "2x23 2.54mm right angle", "46 pin right angle header"]
442standard = "Samtec TSW"
443
444[[presets]]
445id = "2.54-2x24-RA"
446title = "Pin header 2x24, 2.54 mm, right-angle"
447params = { pitch = 2.54, rows = 2, pins = 24, style = "right-angle" }
448aliases = ["2x24 right angle header", "2x24 right angle 2.54", "2x24 2.54mm right angle", "48 pin right angle header"]
449standard = "Samtec TSW"
450
451[[presets]]
452id = "2.54-2x25-RA"
453title = "Pin header 2x25, 2.54 mm, right-angle"
454params = { pitch = 2.54, rows = 2, pins = 25, style = "right-angle" }
455aliases = ["2x25 right angle header", "2x25 right angle 2.54", "2x25 2.54mm right angle", "50 pin right angle header"]
456standard = "Samtec TSW"
457
458[[presets]]
459id = "2.54-2x26-RA"
460title = "Pin header 2x26, 2.54 mm, right-angle"
461params = { pitch = 2.54, rows = 2, pins = 26, style = "right-angle" }
462aliases = ["2x26 right angle header", "2x26 right angle 2.54", "2x26 2.54mm right angle", "52 pin right angle header"]
463standard = "Samtec TSW"
464
465[[presets]]
466id = "2.54-2x27-RA"
467title = "Pin header 2x27, 2.54 mm, right-angle"
468params = { pitch = 2.54, rows = 2, pins = 27, style = "right-angle" }
469aliases = ["2x27 right angle header", "2x27 right angle 2.54", "2x27 2.54mm right angle", "54 pin right angle header"]
470standard = "Samtec TSW"
471
472[[presets]]
473id = "2.54-2x28-RA"
474title = "Pin header 2x28, 2.54 mm, right-angle"
475params = { pitch = 2.54, rows = 2, pins = 28, style = "right-angle" }
476aliases = ["2x28 right angle header", "2x28 right angle 2.54", "2x28 2.54mm right angle", "56 pin right angle header"]
477standard = "Samtec TSW"
478
479[[presets]]
480id = "2.54-2x29-RA"
481title = "Pin header 2x29, 2.54 mm, right-angle"
482params = { pitch = 2.54, rows = 2, pins = 29, style = "right-angle" }
483aliases = ["2x29 right angle header", "2x29 right angle 2.54", "2x29 2.54mm right angle", "58 pin right angle header"]
484standard = "Samtec TSW"
485
486[[presets]]
487id = "2.54-2x30-RA"
488title = "Pin header 2x30, 2.54 mm, right-angle"
489params = { pitch = 2.54, rows = 2, pins = 30, style = "right-angle" }
490aliases = ["2x30 right angle header", "2x30 right angle 2.54", "2x30 2.54mm right angle", "60 pin right angle header"]
491standard = "Samtec TSW"
492
493[[presets]]
494id = "2.54-2x31-RA"
495title = "Pin header 2x31, 2.54 mm, right-angle"
496params = { pitch = 2.54, rows = 2, pins = 31, style = "right-angle" }
497aliases = ["2x31 right angle header", "2x31 right angle 2.54", "2x31 2.54mm right angle", "62 pin right angle header"]
498standard = "Samtec TSW"
499
500[[presets]]
501id = "2.54-2x32-RA"
502title = "Pin header 2x32, 2.54 mm, right-angle"
503params = { pitch = 2.54, rows = 2, pins = 32, style = "right-angle" }
504aliases = ["2x32 right angle header", "2x32 right angle 2.54", "2x32 2.54mm right angle", "64 pin right angle header"]
505standard = "Samtec TSW"
506
507[[presets]]
508id = "2.54-2x33-RA"
509title = "Pin header 2x33, 2.54 mm, right-angle"
510params = { pitch = 2.54, rows = 2, pins = 33, style = "right-angle" }
511aliases = ["2x33 right angle header", "2x33 right angle 2.54", "2x33 2.54mm right angle", "66 pin right angle header"]
512standard = "Samtec TSW"
513
514[[presets]]
515id = "2.54-2x34-RA"
516title = "Pin header 2x34, 2.54 mm, right-angle"
517params = { pitch = 2.54, rows = 2, pins = 34, style = "right-angle" }
518aliases = ["2x34 right angle header", "2x34 right angle 2.54", "2x34 2.54mm right angle", "68 pin right angle header"]
519standard = "Samtec TSW"
520
521[[presets]]
522id = "2.54-2x35-RA"
523title = "Pin header 2x35, 2.54 mm, right-angle"
524params = { pitch = 2.54, rows = 2, pins = 35, style = "right-angle" }
525aliases = ["2x35 right angle header", "2x35 right angle 2.54", "2x35 2.54mm right angle", "70 pin right angle header"]
526standard = "Samtec TSW"
527
528[[presets]]
529id = "2.54-2x36-RA"
530title = "Pin header 2x36, 2.54 mm, right-angle"
531params = { pitch = 2.54, rows = 2, pins = 36, style = "right-angle" }
532aliases = ["2x36 right angle header", "2x36 right angle 2.54", "2x36 2.54mm right angle", "72 pin right angle header"]
533standard = "Samtec TSW"
534
535[[presets]]
536id = "2.54-2x37-RA"
537title = "Pin header 2x37, 2.54 mm, right-angle"
538params = { pitch = 2.54, rows = 2, pins = 37, style = "right-angle" }
539aliases = ["2x37 right angle header", "2x37 right angle 2.54", "2x37 2.54mm right angle", "74 pin right angle header"]
540standard = "Samtec TSW"
541
542[[presets]]
543id = "2.54-2x38-RA"
544title = "Pin header 2x38, 2.54 mm, right-angle"
545params = { pitch = 2.54, rows = 2, pins = 38, style = "right-angle" }
546aliases = ["2x38 right angle header", "2x38 right angle 2.54", "2x38 2.54mm right angle", "76 pin right angle header"]
547standard = "Samtec TSW"
548
549[[presets]]
550id = "2.54-2x39-RA"
551title = "Pin header 2x39, 2.54 mm, right-angle"
552params = { pitch = 2.54, rows = 2, pins = 39, style = "right-angle" }
553aliases = ["2x39 right angle header", "2x39 right angle 2.54", "2x39 2.54mm right angle", "78 pin right angle header"]
554standard = "Samtec TSW"
555
556[[presets]]
557id = "2.54-2x40-RA"
558title = "Pin header 2x40, 2.54 mm, right-angle"
559params = { pitch = 2.54, rows = 2, pins = 40, style = "right-angle" }
560aliases = ["2x40 right angle header", "2x40 right angle 2.54", "2x40 2.54mm right angle", "80 pin right angle header"]
561standard = "Samtec TSW"
2562
3563[[presets]]
4564id = "2.54-1x01"
README.md +6 −3
@@ -1,15 +1,18 @@
11# Pin header
22
3A straight through-hole pin header. Pin 1 is at the origin, the row runs along +X and the second row along +Y. The insulator's underside is on the XY plane, the mating posts point up and the tails go down through the board.
3A through-hole pin header, straight or right-angle. Right-angle: the tails and second row go along -Y, the posts along +Y, and the insulator stands on the XY plane.
4
5Straight: Pin 1 is at the origin, the row runs along +X and the second row along +Y. The insulator's underside is on the XY plane, the mating posts point up and the tails go down through the board.
46
57## Source
68
79- 2.54 mm: Samtec TSW/HTSW catalogue page (F-226), <https://suddendocs.samtec.com/catalog_english/tsw_th.pdf>, lead style -07: post above the insulator C 5.84, tail B 2.54, overall A 10.92, so the insulator is 2.54 high. Width 2.48 (one row), 5.02 (two rows). Post .025 in square, 0.64 mm.
10- 2.54 mm right-angle: the same TSW/HTSW catalogue page, lead style -08-RA: post out from the insulator C 5.84, tail below the insulator E 2.29, tail to the insulator D 1.52, insulator height 3.02 (one row) and 5.56 (two rows).
811- 2.00 mm: Samtec TMM catalogue page (F-226), <https://suddendocs.samtec.com/catalog_english/tmm_th.pdf>, lead style -02: C 3.00, B 3.70, A 8.20, insulator 1.50. Width 1.97 and 3.94.
912
1013Other headers of the same pitch differ in post and tail length, so check the one you buy.
1114
12**Proportions, for looks only:** the V notches between pins, and the 2.00 mm post size of 0.50 mm, which that page doesn't print.
15**Proportions, for looks only:** the V notches between pins, the 2.00 mm post size of 0.50 mm, which that page doesn't print, and the right-angle insulator's depth, taken as the straight header's 2.54.
1316
14Right-angle, surface-mount, 1.27 mm and 1.00 mm headers aren't here yet; see `COVERAGE.md`.
172.00 mm right-angle, surface-mount, 1.27 mm and 1.00 mm headers aren't here yet; see `COVERAGE.md`.
1518