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, 2 to 16 positions.

v1.1.0 STEVE MIT 0
Isometric
part.py 53 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
6pitch = 5.08 # mm Pitch
7positions = 2 # Positions
8detail = "full" # full: the opening, the mating pins and the solder pins; simple: the housing's outline
9
10# series: (pitches, length, height above the board, solder pin length, solder pins from the back face, past each end pin by pitch, pin section)
11# 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,
12# 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.
13# 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,
14# 0.8 x 0.8, 8 from the opening (1.2 from the back face).
15SERIES = {
16 "MSTBA 2,5": ((5.0, 5.08), 12, 8.6, 3.5, 2, {5.0: 3.5, 5.08: 3.54}, 1.2),
17 "MC 1,5": ((3.81,), 9.2, 7.25, 3.4, 1.2, {3.81: 2.6}, 0.8),
18}
19pitches, LENGTH, HEIGHT, PIN_LENGTH, PIN_FROM_BACK, ENDS, PIN = SERIES[series]
20# the wall and the mating pins' reach are proportions, for looks: the data sheets don't dimension them
21SHORT = 1.5 # the mating pins stop this far short of the opening, where the plug's contacts meet them
22WALL = 1.0 if series == "MSTBA 2,5" else 0.8
23if pitch not in pitches or not 2 <= positions <= 16:
24 raise ValueError(f"{series} comes in pitch {pitches}, 2 to 16 positions.")
25
26end = ENDS[pitch]
27width = (positions - 1) * pitch + 2 * end
28x0 = -end
29back = PIN_FROM_BACK
30front = back - LENGTH
31model = Model()
32with model.sketch("housing_sketch", on="XY", name="Housing") as sk:
33 sk.rect("housing_rect", (x0, front), (x0 + width, back))
34model.extrude("housing", "housing_sketch", distance=HEIGHT, name="Housing")
35if detail == "full":
36 model.plane("opening_plane", on="XZ", offset=-front, name="Opening")
37 with model.sketch("opening_sketch", on="opening_plane", name="Opening") as sk:
38 sk.rect("opening_rect", (x0 + WALL, WALL), (x0 + width - WALL, HEIGHT - WALL))
39 model.extrude("opening", "opening_sketch", distance=-(LENGTH - 2 * WALL), op="cut", name="Opening")
40 z = HEIGHT / 2
41 model.plane("pins_plane", on="XZ", offset=-(back - WALL), name="Mating pins")
42 with model.sketch("pins_sketch", on="pins_plane", name="Mating pins") as sk:
43 for i in range(positions):
44 sk.rect(f"pin_{i}", (i * pitch - PIN / 2, z - PIN / 2), (i * pitch + PIN / 2, z + PIN / 2))
45 model.extrude("pins", "pins_sketch", distance=LENGTH - WALL - SHORT, name="Mating pins")
46 model.plane("solder_plane", on="XY", offset=-PIN_LENGTH, name="Solder pins")
47 with model.sketch("solder_sketch", on="solder_plane", name="Solder pins") as sk:
48 for i in range(positions):
49 sk.rect(f"solder_{i}", (i * pitch - PIN / 2, -PIN / 2), (i * pitch + PIN / 2, PIN / 2))
50 model.extrude("solder", "solder_sketch", distance=PIN_LENGTH + 1, name="Solder pins")
51model.material("pa6", color="#2f7d4a")
52result = model.result()
53

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, 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