Sign in with STEVE

steve/jst-ph-header

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

v1.0.0 Latest STEVE MIT 0
Isometric
part.py 34 lines · Python · STEVE runtime · checked
Download
1"""JST PH shrouded header, 2.0 mm pitch, top entry, through-hole: B2B-PH-K to B16B-PH-K. Pin 1 is at the origin, the row along +X, the housing's underside on the
2XY plane, its opening up, the posts' tails down through the board. Dimensions from JST's catalogue page in the README."""
3from steve import Model
4
5circuits = 4 # Circuits
6detail = "full" # full: the shroud's opening and the posts; simple: a plain block
7
8# JST PH connector catalogue, Through-hole type Header, Top entry type, p. 2: pitch 2.0, A = 2.0 x (circuits - 1), B = A + 3.9 (1.95 past the end pins
9# each side), height 6, depth 4.5 with the pins 1.7 from one face, tails 3.4, posts 0.5 square.
10PITCH, END, HEIGHT, DEPTH, FROM_FACE, TAIL, POST = 2.0, 1.95, 6.0, 4.5, 1.7, 3.4, 0.5
11WALL = 0.6 # the shroud's wall, the floor and how far the posts stand in it are proportions, for looks
12FLOOR = 1.2
13if not 2 <= circuits <= 16:
14 raise ValueError("The B..B-PH-K top entry header has 2 to 16 circuits.")
15
16A = PITCH * (circuits - 1)
17x0, y0 = -END, -FROM_FACE
18model = Model()
19with model.sketch("housing_sketch", on="XY", name="Housing") as sk:
20 sk.rect("housing_rect", (x0, y0), (A + END, y0 + DEPTH))
21model.extrude("housing", "housing_sketch", distance=HEIGHT, name="Housing")
22if detail == "full":
23 model.plane("top_plane", on="XY", offset=HEIGHT, name="Top")
24 with model.sketch("opening_sketch", on="top_plane", name="Opening") as sk:
25 sk.rect("opening_rect", (x0 + WALL, y0 + WALL), (A + END - WALL, y0 + DEPTH - WALL))
26 model.extrude("opening", "opening_sketch", distance=-(HEIGHT - FLOOR), op="cut", name="Opening")
27 model.plane("tail_plane", on="XY", offset=-TAIL, name="Tails")
28 with model.sketch("posts_sketch", on="tail_plane", name="Posts") as sk:
29 for i in range(circuits):
30 sk.rect(f"post_{i}", (i * PITCH - POST / 2, -POST / 2), (i * PITCH + POST / 2, POST / 2))
31 model.extrude("posts", "posts_sketch", distance=TAIL + HEIGHT - 1.0, name="Posts")
32model.material("pa6", color="#f1ede4")
33result = model.result()
34

JST PH through-hole shrouded header, top entry, 2 to 16 circuits, with its opening and posts. Dimensions from JST's catalogue page. See the README.

JST PH header

A JST PH through-hole shrouded header, 2.0 mm pitch, top entry: B2B-PH-K to B16B-PH-K. Pin 1 is at the origin, the row runs along +X, the housing sits on the XY plane with its opening up, and the tails go down through the board.

Source

JST PH connector catalogue, Through-hole type Header, Top entry type, page 2, a copy at https://static.chipdip.ru/lib/832/DOC031832410.pdf (JST's own site refuses automated downloads):

  • pitch 2.0, A = 2.0 x (circuits - 1), and B = A + 3.9, 1.95 past the end pins each side
  • height 6, depth 4.5, with the pins 1.7 from one face
  • tails 3.4, posts 0.5 square

Proportions, for looks only: the shroud's wall and floor, and how high the posts stand in it. The polarising ribs aren't modelled. The page gives the wafer as nylon 66, natural white. The material list has no nylon 66, so the part uses pa6 (nylon 6), for looks and rough mass.

Side entry (S..B-PH-K) and SMT headers aren't here yet; see COVERAGE.md.

  1. 1.0.0 Latest
More #connector
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
STEVEMIT

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.

0 61 sizes 0 1 hour ago v1.2.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/pin-socket

Straight through-hole pin socket, 2.54 mm pitch, one or two rows, 1 to 40 pins per row.

0 81 sizes 0 2 hours ago v1.0.0