Sign in with STEVE

steve/box-film-capacitor

Box film capacitor with radial leads, WIMA MKS 2, FKS 3 and MKS 4 case sizes, 5 to 52.5 mm pitch.

v1.0.0 Latest STEVE MIT 2
Isometric
part.py 37 lines · Python · STEVE runtime · checked
Download
1"""Box film capacitor (WIMA MKS 2, FKS 3 and MKS 4 cases), radial leads. Lead 1 is at the origin, lead 2 at +X by the pitch, the box standing on the XY plane centred
2between them, the leads down through the board. Case sizes from WIMA's data sheets in the README."""
3from steve import Model
4
5series = "MKS4" # Series
6width = 4.0 # mm Box width W
7height = 9.0 # mm Box height H
8length = 13.0 # mm Box length L
9pitch = 10.0 # mm Lead pitch (PCM)
10detail = "full" # full: box and leads; simple: the box only
11
12# series: the case sizes offered, (W, H, L, PCM) in mm. WIMA data sheets, General Data tables: MKS 2 (e_WIMA_MKS_2.pdf), FKS 3 (e_WIMA_FKS_3.pdf), MKS 4
13# (e_WIMA_MKS_4.pdf), https://www.wima.de/wp-content/uploads/media/.
14CASES = {
15 "MKS2": ((2.5, 6.5, 7.2, 5), (3, 7.5, 7.2, 5), (3.5, 8.5, 7.2, 5), (4.5, 9.5, 7.2, 5), (5, 10, 7.2, 5), (5.5, 11.5, 7.2, 5), (7.2, 13, 7.2, 5), (8.5, 14, 7.2, 5), (11, 16, 7.2, 5), (11, 18, 7.2, 5)),
16 "FKS3": ((3, 8.5, 10, 7.5), (3, 9, 13, 10), (4, 9.5, 13, 10), (5, 11, 13, 10), (6, 12, 13, 10), (6, 12.5, 18, 15), (7, 14, 18, 15), (8, 15, 18, 15), (9, 16, 18, 15)),
17 "MKS4": ((2.5, 7, 10, 7.5), (3, 8.5, 10, 7.5), (4, 9, 10, 7.5), (4, 9, 13, 10), (4.5, 9.5, 10.3, 7.5), (5, 10.5, 10.3, 7.5), (5, 11, 13, 10), (5, 11, 18, 15), (5.7, 12.5, 10.3, 7.5), (6, 12, 13, 10), (6, 12.5, 18, 15), (6, 15, 26.5, 22.5), (7, 14, 18, 15), (7, 16.5, 26.5, 22.5), (8, 15, 18, 15), (8.5, 18.5, 26.5, 22.5), (9, 16, 18, 15), (9, 19, 31.5, 27.5), (10.5, 19, 26.5, 22.5), (11, 21, 26.5, 22.5), (11, 21, 31.5, 27.5), (13, 24, 31.5, 27.5), (13, 24, 41.5, 37.5), (15, 26, 31.5, 27.5), (15, 26, 41.5, 37.5), (17, 29, 31.5, 27.5), (17, 29, 41.5, 37.5), (17, 34.5, 31.5, 27.5), (19, 32, 41.5, 37.5), (20, 39.5, 31.5, 27.5), (20, 39.5, 41.5, 37.5), (24, 45.5, 41.5, 37.5), (25, 45, 57, 52.5), (31, 46, 41.5, 37.5), (35, 50, 41.5, 37.5), (35, 50, 57, 52.5), (40, 55, 41.5, 37.5)),
18}
19PIN_LENGTH = 6 # the data sheets' standard pin length, 6 -2
20if (width, height, length, pitch) not in CASES[series]:
21 raise ValueError(f"WIMA {series} has no {width} x {height} x {length} case at {pitch} mm pitch.")
22# lead diameter from the sheets' notes: 0.5 at 5 mm pitch and at W = 3 or less, 0.6 at 7.5 and 10, 0.8 at 15 to 27.5, 1.0 at 37.5 and over
23lead = 0.5 if pitch <= 5 or width <= 3 else 0.6 if pitch <= 10 else 0.8 if pitch <= 27.5 else 1.0
24
25model = Model()
26with model.sketch("box_sketch", on="XY", name="Box") as sk:
27 sk.rect("box_rect", (pitch / 2 - length / 2, -width / 2), (pitch / 2 + length / 2, width / 2))
28model.extrude("box", "box_sketch", distance=height, name="Box")
29if detail == "full":
30 model.plane("lead_plane", on="XY", offset=-PIN_LENGTH, name="Leads")
31 with model.sketch("leads_sketch", on="lead_plane", name="Leads") as sk:
32 sk.circle("lead_1", (0, 0), lead / 2)
33 sk.circle("lead_2", (pitch, 0), lead / 2)
34 model.extrude("leads", "leads_sketch", distance=PIN_LENGTH + 1, name="Leads")
35model.material("pla", color="#c8362e")
36result = model.result()
37

Box film capacitor, radial leads, every case size of WIMA's MKS 2, FKS 3 and MKS 4 data sheets. See the README.

Box film capacitor

A box film capacitor with radial leads. Lead 1 is at the origin and lead 2 at +X by the pitch. The box stands on the XY plane centred between them, and the leads go down through the board.

Source

WIMA data sheets, case dimension columns W, H, L and PCM (lead pitch) of the General Data tables, at https://www.wima.de/wp-content/uploads/media/:

  • MKS 2: e_WIMA_MKS_2.pdf
  • FKS 3: e_WIMA_FKS_3.pdf
  • MKS 4: e_WIMA_MKS_4.pdf

Every case size those tables list is a preset. Pin length is the sheets' standard 6 mm. Lead diameter follows the sheets' notes: 0.5 at 5 mm pitch or W of 3 mm or less, 0.6 at 7.5 and 10, 0.8 at 15 to 27.5, and 1.0 from 37.5.

Proportions, for looks only: the box is a plain block without the sheets' rounded edges. It's PLA-like red for looks; the real case is plastic and the material only gives rough mass.

How the catalogue maps: its C_Rect models name L, W and pitch but not H, so a model maps to a case only when one height fits. MKS 4 at 31.5 x 17 mm has two heights (29 and 34.5), so those models aren't mapped. MKT models (another maker's series) and MKS 02 aren't here yet.

  1. 1.0.0 Latest
More #capacitor
STEVEMIT

steve/to-package

Through-hole TO packages standing on the board: TO-220AB, TO-220AC, TO-220F, TO-262, TO-251AA, TO-247AC, TO-126, TO-92 and the TO-3, TO-18, TO-39 and TO-46 metal cans, from the makers' drawings.

24 15 sizes 0 3 weeks ago v1.3.1
STEVEMIT

steve/dcdc-converter

Board-mounted DC/DC converter modules: RECOM R-78 and R-5xxxPA regulators; TRACO POWER TSR 1, TMR 1, TEN 10 and TEN 20; XP Power IA, IH and IT; Cincon EC5BE; Murata NMA and CRE1.

20 24 sizes 0 2 weeks ago v1.3.0
STEVEMIT

steve/pcb-relay

Through-hole PCB relays from the makers' data sheets: Omron, Finder, Schrack (TE), Tianbo HJR-4102, Hongfa HF115F and Sanyou SRD.

18 47 sizes 0 3 weeks ago v1.4.0
STEVEMIT

steve/radial-ptc-fuse

Bel Fuse 0ZRE radial-leaded resettable PTC fuses, 0.05 to 2 A hold, 0ZRE0005FF to 0ZRE0200FF.

12 13 sizes 0 3 weeks ago v1.0.1