Sign in with STEVE

steve/pluggable-terminal-header

PCB header for pluggable terminal blocks: right-angle Phoenix Contact MSTBA 2,5 (5.0, 5.08 mm) and MC 1,5 (3.81 mm) types, and vertical MSTBVA 2,5 (5.08 mm), 2 to 16 positions.

v1.2.0 Latest STEVE MIT 0
Isometric
part.py 69 lines · Python · STEVE runtime · checked
Download
1"""PCB header for pluggable terminal blocks, right-angle, Phoenix Contact MSTBA 2,5 type (5.0 or 5.08 mm, 2 to 16 positions) or MC 1,5 type (3.81 mm, 2 to 16). Pin 1 is at the origin, the row
2along +X, the housing on the XY plane with its opening facing -Y, the solder pins down through the board. Dimensions from Phoenix Contact's data sheet in the README."""
3from steve import Model
4
5series = "MSTBA 2,5" # Series
6style = "right-angle" # right-angle or vertical (vertical: MSTBVA 2,5)
7pitch = 5.08 # mm Pitch
8positions = 2 # Positions
9detail = "full" # full: the opening, the mating pins and the solder pins; simple: the housing's outline
10
11# series: (pitches, length, height above the board, solder pin length, solder pins from the back face, past each end pin by pitch, pin section)
12# MSTBA 2,5: data sheet MSTBA 2,5/ 2-G-5,08 (1757242), Dimensions p. 5 and Dimensional drawing p. 6: width a + 7 (5.0 mm) or a + 7.08 (5.08 mm), length 12,
13# height 8.6 above the board, solder pins 3.5 long, 2 from the back face. The drawing gives the same housing for 5.0 and 5.08 mm pitch.
14# MC 1,5: data sheet MC 1,5/ 2-G-3,81 (1803277), Technische Daten p. 1 and Massszeichnung p. 4: width a + 5.2, length 9.2, height 7.25, solder pins 3.4 long,
15# 0.8 x 0.8, 8 from the opening (1.2 from the back face).
16SERIES = {
17 "MSTBA 2,5": ((5.0, 5.08), 12, 8.6, 3.5, 2, {5.0: 3.5, 5.08: 3.54}, 1.2),
18 "MC 1,5": ((3.81,), 9.2, 7.25, 3.4, 1.2, {3.81: 2.6}, 0.8),
19}
20# Vertical, MSTBVA 2,5: data sheet MSTBVA 2,5/ 2-G-5,08 (1755736, 24 Feb 2024), Dimensions p. 3: width 12.16 for 2 positions (a + 7.08), length 8.6, installed
21# height 12, solder pins 3.9 long, 1 x 1; the July 2003 edition's dimensioned drawing and drilling diagram (p. 4): pins 3.8 from one face, 3.54 past each end pin.
22VERTICAL = ((5.08,), 8.6, 12, 3.9, 3.8, {5.08: 3.54}, 1.0)
23pitches, LENGTH, HEIGHT, PIN_LENGTH, PIN_FROM_BACK, ENDS, PIN = VERTICAL if style == "vertical" else SERIES[series]
24# the wall and the mating pins' reach are proportions, for looks: the data sheets don't dimension them
25SHORT = 1.5 # the mating pins stop this far short of the opening, where the plug's contacts meet them
26WALL = 1.0 if series == "MSTBA 2,5" else 0.8
27if style == "vertical" and series != "MSTBA 2,5":
28 raise ValueError("The vertical header here is MSTBVA 2,5 (5.08 mm).")
29if pitch not in pitches or not 2 <= positions <= 16:
30 raise ValueError(f"{series} comes in pitch {pitches}, 2 to 16 positions.")
31
32end = ENDS[pitch]
33width = (positions - 1) * pitch + 2 * end
34x0 = -end
35back = PIN_FROM_BACK
36front = back - LENGTH
37model = Model()
38with model.sketch("housing_sketch", on="XY", name="Housing") as sk:
39 sk.rect("housing_rect", (x0, front), (x0 + width, back))
40model.extrude("housing", "housing_sketch", distance=HEIGHT, name="Housing")
41if detail == "full" and style == "vertical":
42 model.plane("top_plane", on="XY", offset=HEIGHT, name="Opening")
43 with model.sketch("opening_sketch", on="top_plane", name="Opening") as sk:
44 sk.rect("opening_rect", (x0 + WALL, front + WALL), (x0 + width - WALL, back - WALL))
45 model.extrude("opening", "opening_sketch", distance=-(HEIGHT - WALL), op="cut", name="Opening")
46 model.plane("pin_plane", on="XY", offset=-PIN_LENGTH, name="Pins")
47 with model.sketch("pins_sketch", on="pin_plane", name="Pins") as sk:
48 for i in range(positions):
49 sk.rect(f"pin_{i}", (i * pitch - PIN / 2, -PIN / 2), (i * pitch + PIN / 2, PIN / 2))
50 model.extrude("pins", "pins_sketch", distance=PIN_LENGTH + HEIGHT - SHORT, name="Pins")
51elif detail == "full":
52 model.plane("opening_plane", on="XZ", offset=-front, name="Opening")
53 with model.sketch("opening_sketch", on="opening_plane", name="Opening") as sk:
54 sk.rect("opening_rect", (x0 + WALL, WALL), (x0 + width - WALL, HEIGHT - WALL))
55 model.extrude("opening", "opening_sketch", distance=-(LENGTH - 2 * WALL), op="cut", name="Opening")
56 z = HEIGHT / 2
57 model.plane("pins_plane", on="XZ", offset=-(back - WALL), name="Mating pins")
58 with model.sketch("pins_sketch", on="pins_plane", name="Mating pins") as sk:
59 for i in range(positions):
60 sk.rect(f"pin_{i}", (i * pitch - PIN / 2, z - PIN / 2), (i * pitch + PIN / 2, z + PIN / 2))
61 model.extrude("pins", "pins_sketch", distance=LENGTH - WALL - SHORT, name="Mating pins")
62 model.plane("solder_plane", on="XY", offset=-PIN_LENGTH, name="Solder pins")
63 with model.sketch("solder_sketch", on="solder_plane", name="Solder pins") as sk:
64 for i in range(positions):
65 sk.rect(f"solder_{i}", (i * pitch - PIN / 2, -PIN / 2), (i * pitch + PIN / 2, PIN / 2))
66 model.extrude("solder", "solder_sketch", distance=PIN_LENGTH + 1, name="Solder pins")
67model.material("pa6", color="#2f7d4a")
68result = model.result()
69

Right-angle PCB header of the MSTBA 2,5 or MC 1,5 type, with its opening, mating pins and solder pins. Width, length, height and pins from Phoenix Contact's data sheets. See the README.

Pluggable terminal block header

A right-angle PCB header for pluggable terminal blocks, of the Phoenix Contact MSTBA 2,5 type (5.0 or 5.08 mm pitch) or MC 1,5 type (3.81 mm), 2 to 16 positions. Pin 1 is at the origin, the row runs along +X, and the housing sits on the XY plane with its opening facing -Y. The solder pins go down through the board.

Source

Phoenix Contact data sheet, MSTBA 2,5/ 2-G-5,08 (1757242), a copy at https://static.chipdip.ru/lib/776/DOC031776447.pdf (Phoenix Contact's own site refuses automated downloads):

  • Dimensions (page 5): length 12, height 8.6 above the board, solder pins 3.5 long.
  • Dimensional drawing (page 6): width a + 7 (5.0 mm) or a + 7.08 (5.08 mm), and the solder pins 2 from the back face.

The data sheet is for the 2-position, 5.08 mm part. Its drawing gives the same housing for both pitches.

MC 1,5: data sheet MC 1,5/ 2-G-3,81 (1803277, German, 10.03.2011), a copy at https://asset.conrad.com/media10/add/160267/c1/-/de/000740533DS02/tehnicni-podatki-740533-pinsko-ohisje-za-tiskano-vezje-mc-phoenix-contact-1803277-raster-381-mm-1-kos.pdf. Technical data (page 1): length 9.2, pins 0.8 x 0.8. Dimensional drawing (page 4): width a + 5.2, height 7.25, solder pins 3.4 long and 8 from the opening.

Proportions, for looks only: the MSTBA pin section (1.2), the wall, and the mating pins' reach. The data sheet's side view doesn't dimension the reach, so the pins run to 1.5 mm short of the opening, where the plug's contacts meet them. The plug isn't part of this header. The housing is PA, modelled as pa6, green.

Vertical MSTBVA 2,5 at 5.08 mm: data sheet MSTBVA 2,5/ 2-G-5,08 (1755736), Dimensions page 3 of the 24 Feb 2024 edition, a copy at https://static.chipdip.ru/lib/759/DOC041759173.pdf: width 12.16 for 2 positions (a + 7.08), length 8.6, installed height 12, solder pins 3.9 long and 1 x 1. The pins' place, 3.8 from one face and 3.54 past each end pin, is from the July 2003 edition's dimensioned drawing and drilling diagram, page 4, a copy at https://tvsat.com.pl/PDF/1/1755736-phoenix.pdf. Vertical: the opening faces up and the pins stand 1.5 mm below the top.

MSTBVA at 5.0 mm, MCV, flanged (GF) and 3.5 mm MC headers aren't here yet; see COVERAGE.md.

  1. 1.2.0 Latest Compare with 1.1.0

    Vertical MSTBVA 2,5 headers at 5.08 mm. Right-angle parts are unchanged.

  2. 1.1.0 Compare with 1.0.0

    MC 1,5 headers at 3.81 mm. MSTBA 2,5 parts are unchanged.

  3. 1.0.0
STEVEMIT

steve/screw-terminal-block

PCB screw terminal block, Phoenix Contact types: MKDS 1,5 (5.0, 5.08 mm), PT 1,5 (3.5 mm), MPT 0,5 (2.54 mm).

0 57 sizes 0 1 hour ago v1.1.0
STEVEMIT

steve/jst-ph-header

JST PH shrouded header, 2.0 mm pitch, top entry: B2B-PH-K to B16B-PH-K.

0 16 sizes 0 1 hour ago v1.0.0
STEVEMIT

steve/pin-header

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.

0 241 sizes 0 2 hours ago v1.1.0
STEVEMIT

steve/jst-xh-header

JST XH shrouded header, 2.5 mm pitch, top entry: B2B-XH-A to B16B-XH-A and B20B-XH-A.

0 17 sizes 0 1 hour ago v1.0.0