Sign in with STEVE

steve/barrier-terminal-block

PCB barrier terminal block with M4 screws, 9.5 mm pitch: Ningbo Kangnex HB9500 (open) and HB9500M (with cover), 2 to 12 positions.

v1.0.0 Latest STEVE MIT 4
Isometric
part.py 77 lines · Python · STEVE runtime · checked
Download
1"""PCB barrier terminal block with M4 screws at 9.5 mm pitch, Ningbo Kangnex HB9500 (open) and HB9500M (with a cover). Pin 1 is at the origin,
2the row along +X, the housing on the XY plane with its long wall on the +Y side and the screw pockets open towards -Y, the solder pins down
3through the board. The housing, every screw, every solder pin and the cover are separate solids. Dimensions from the maker's drawings in the
4README."""
5from steve import Model
6
7series = "HB9500" # Series: HB9500 (open) or HB9500M (with cover)
8positions = 2 # Positions (poles)
9
10# Ningbo Kangnex customer drawings "HB9500 series" and "HB9500M series", barrier terminal block, pitch 9.50 mm (one page each, no drawing number
11# or revision; files dated 2020-08-20). length: N x 9.5 + extra; pin row (N - 1) x 9.5; depth and height: the housing's section; total: height
12# over the cover (HB9500M); pin_l: solder pin below the housing; pin_w x pin_t: the pin along the row x across it; pin_wall: the pin's centre
13# line from the housing's long face it is dimensioned from ("side": the face on the long wall's side, +Y, or the open side, -Y).
14PITCH = 9.5
15SERIES = {
16 "HB9500": {"extra": 1.5, "depth": 17.80, "height": 14.20, "pin_l": 6.30, "pin_w": 1.50, "pin_t": 0.70, "pin_wall": 5.10, "side": "wall"},
17 "HB9500M": {"extra": 1.5, "depth": 16.00, "height": 13.00, "total": 16.8, "pin_l": 5.30, "pin_w": 1.50, "pin_t": 0.70, "pin_wall": 3.95, "side": "open"},
18}
19# The sizes the catalogue lists; the drawings give the length for any N.
20MIN_POSITIONS = 2
21MAX_POSITIONS = 12
22# Proportions, for looks only (drawn, not dimensioned): the pockets' floor at FLOOR of the height, the long wall WALL thick, the screw heads
23# HEAD_D across and HEAD_H high in the middle of their pockets. The barriers between poles are as thick as the length's extra 1.5.
24FLOOR = 0.45
25WALL = 1.5
26HEAD_D = 7.0
27HEAD_H = 2.5
28
29if series not in SERIES:
30 raise ValueError(f"no series {series!r}: {', '.join(SERIES)}")
31if not MIN_POSITIONS <= positions <= MAX_POSITIONS:
32 raise ValueError(f"positions is {MIN_POSITIONS} to {MAX_POSITIONS}")
33B = SERIES[series]
34length = positions * PITCH + B["extra"]
35x0 = -(length - (positions - 1) * PITCH) / 2 # the pin row is in the middle of the length, as drawn
36back = B["pin_wall"] if B["side"] == "wall" else B["depth"] - B["pin_wall"]
37front = back - B["depth"]
38H = B["height"]
39floor = FLOOR * H
40barrier = B["extra"]
41
42model = Model()
43with model.sketch("housing_sketch", on="XY", name="Housing") as sk:
44 sk.rect("housing_rect", (x0, front), (x0 + length, back))
45model.extrude("housing", "housing_sketch", distance=H, op="new", body="housing_body", name="Housing")
46model.plane("floor_plane", on="XY", offset=floor, name="Pocket floor")
47with model.sketch("pockets_sketch", on="floor_plane", name="Screw pockets") as sk:
48 for i in range(positions):
49 sk.rect(f"pocket_{i + 1}", (i * PITCH - PITCH / 2 + barrier / 2, front - 1), (i * PITCH + PITCH / 2 - barrier / 2, back - WALL))
50model.extrude("pockets", "pockets_sketch", distance=H - floor + 1, op="cut", name="Screw pockets")
51screws, pins = [], []
52y_screw = (front + back - WALL) / 2
53for i in range(positions):
54 with model.sketch(f"screw_{i + 1}_sketch", on="floor_plane", name=f"Screw {i + 1}") as sk:
55 sk.circle(f"screw_{i + 1}_circle", (i * PITCH, y_screw), HEAD_D / 2)
56 model.extrude(f"screw_{i + 1}", f"screw_{i + 1}_sketch", distance=HEAD_H, op="new", body=f"screw_{i + 1}_body", name=f"Screw {i + 1}")
57 screws.append(f"screw_{i + 1}_body")
58# Each solder pin is its own solid, from its end below the board up to the housing's bottom face.
59model.plane("pin_plane", on="XY", offset=-B["pin_l"], name="Solder pins")
60for i in range(positions):
61 with model.sketch(f"pin_{i + 1}_sketch", on="pin_plane", name=f"Pin {i + 1}") as sk:
62 sk.rect(f"pin_{i + 1}_rect", (i * PITCH - B["pin_w"] / 2, -B["pin_t"] / 2), (i * PITCH + B["pin_w"] / 2, B["pin_t"] / 2))
63 model.extrude(f"pin_{i + 1}", f"pin_{i + 1}_sketch", distance=B["pin_l"], op="new", body=f"pin_{i + 1}_body", name=f"Pin {i + 1}")
64 pins.append(f"pin_{i + 1}_body")
65if "total" in B:
66 # The cover: a plain plate over the housing, from the housing's top to the sheet's height over the cover.
67 model.plane("cover_plane", on="XY", offset=H, name="Cover")
68 with model.sketch("cover_sketch", on="cover_plane", name="Cover") as sk:
69 sk.rect("cover_rect", (x0, front), (x0 + length, back))
70 model.extrude("cover", "cover_sketch", distance=B["total"] - H, op="new", body="cover_body", name="Cover")
71# The drawings' material list: plastic PA66, UL94V-0 (pa6 is the nearest in the materials list); solder pins brass, tin plated; screws M4.0,
72# steel, nickel plated. The cover's material is not named, so none is set.
73model.material("pa6", bodies=["housing_body"], color="#2b2d30")
74model.material("brass", bodies=pins, color="#c9ccd1")
75model.material("steel-generic", bodies=screws, color="#b9bcc0")
76result = model.result()
77

PCB barrier terminal block with M4 screws at 9.5 mm pitch, Ningbo Kangnex HB9500 and, with a cover, HB9500M. The housing with its barriers, every screw, every solder pin and the cover are separate solids. Length, depth, height and pins from the maker's drawings. See the README.

Barrier terminal block, 9.5 mm

A PCB barrier terminal block with M4 screws at 9.5 mm pitch: Ningbo Kangnex HB9500 (open) and HB9500M (with a cover), 2 to 12 positions. Pin 1 is at the origin, the row runs along +X, the housing sits on the XY plane with its long wall on the +Y side and the screw pockets open towards -Y, and the solder pins go down through the board. The housing, every screw, every solder pin and the cover are separate solids.

Parameters: series (HB9500 or HB9500M) and positions.

Source

Ningbo Kangnex Electric customer drawings "HB9500 series" and "HB9500M series", barrier terminal block, pitch 9.50 mm: one page each, no drawing number or revision, files dated 2020-08-20. Read as the data sheets of HB9500-9.5-12P and HB9500M-9.5-12P at lcsc.com (product codes C601238 and C601245). Millimetres, with the tolerance each figure carries on the drawing:

HB9500 HB9500M
Length, N positions N x 9.5 + 1.5 ± 0.20 N x 9.5 + 1.5 ± 0.20
Pin row, first to last (N - 1) x 9.5 ± 0.20 (N - 1) x 9.5 ± 0.20
Pitch 9.50 ± 0.05 9.50 ± 0.05
Depth 17.80 ± 0.20 16.00 ± 0.20
Housing height 14.20 ± 0.20 13.00 ± 0.20
Height over the cover no cover 16.8
Solder pin below the housing 6.30 ± 0.20 5.30 ± 0.20
Solder pin, along the row x across it 1.50 ± 0.05 x 0.70 ± 0.05 1.50 ± 0.05 x 0.70 ± 0.05
Pin's centre line from a long face 5.10 ± 0.10, from the face on the long wall's side 3.95 ± 0.10, from the face on the open side
Screw M4.0, steel, nickel plated the same
Solder pin brass, tin plated the same
Plastic PA66, UL94V-0 the same

Which long face the pin is dimensioned from is read from each drawing's section: on the HB9500 it is the face below the housing's tall wall, on the HB9500M the face away from it.

The drawings give the length for any number of positions N and no range; this part offers 2 to 12.

Check your own sheet before laying out a board.

Proportions, for looks

  • The pin row is in the middle of the length, as drawn: the drawings give the length and the row's span, and no dimension from the housing's end to the first pin (5.5 when centred).
  • The pockets' floor (0.45 of the housing's height), the long wall's thickness (1.5) and the barriers between positions (1.5, the same as the length's extra 1.5) are drawn, not dimensioned.
  • The screws are plain discs 7 across and 2.5 high in the middle of their pockets: the drawings name the thread only. The clamping plates, the screws' threads and slots, and the pins' pointed ends are not modelled.
  • The HB9500M's cover is a plain plate over the whole housing, from the housing's top (13.00) to the drawing's 16.8.

Materials and mass

Housing: PA66; the part uses pa6, the nearest in the materials list. Solder pins: brass. Screws: steel. The cover's material is not named in the drawing, so none is set. The drawings give no weight, and with solid plastic under the pockets and no clamping plates the model's mass is only a rough figure.

Catalogue models

TerminalBlock Ningbo-Kagnex HB9500 1xNN P9.5mm and HB9500M 1xNN P9.5mm, 2 to 12 positions (the catalogue spells the maker Kagnex), each map to the preset of that series and number of positions.

  1. 1.0.0 Latest
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).

8 57 sizes 0 4 weeks ago v1.1.0
STEVEMIT

steve/angled-terminal-block

PCB screw terminal block with 45 degree wire entry, 5.0 mm pitch: PTR HARTMANN AK300 (Altech AK300), 2 to 24 positions.

3 24 sizes 0 2 weeks ago v1.0.0
STEVEMIT

steve/pluggable-terminal-header

PCB header for pluggable terminal blocks, Phoenix Contact: MSTBA 2,5, MC 1,5, GMSTBA 2,5; vertical MSTBVA, MCV, GMSTBVA; MC/MCV with threaded flange (GF).

48 232 sizes 0 3 weeks ago v1.6.0
STEVEMIT

steve/push-in-terminal-block

PCB terminal block with push-in spring connection, Phoenix Contact types: SPT 1,5 (3.5 mm), SPT 2,5 (5.0 mm, also -EX) and SPT 5 (7.5 mm, also -ZB), horizontal or vertical.

9 68 sizes 0 3 weeks ago v1.1.0