Sign in with STEVE

steve/ir-receiver-module

Vishay IR receiver modules for remote control, by package: Cast, Minicast, Mold and Minimold, three leads.

v1.0.0 Latest STEVE MIT 3
Isometric
part.py 136 lines · Python · STEVE runtime · checked
Download
1"""Vishay IR receiver modules for remote control, by package: Cast, Minicast, Mold and Minimold. Three leads in a row and an
2epoxy body with a domed lens on its front. The body's underside is the XY plane, the leads run down (-Z) at their full length
3as supplied, the pin row runs along X and is centred on the body, the leads' plane is Y = 0 and the lens looks toward -Y. The
4body with its lens is one solid and each lead is its own solid. Dimensions from Vishay's data sheets; see the README."""
5from steve import Model
6
7package = "Cast" # Vishay package name
8
9# All from the sheets' page 7, PACKAGE DIMENSIONS in millimeters (not indicated tolerances +/-0.2 on the Minicast, Mold and
10# Minimold drawings).
11# Cast: Vishay TSOP311.., TSOP313.., TSOP315.. data sheet, Rev. 1.8, 13-Mar-2024 (document 82493), drawing 6.550-5095.01-4 issue
12# 20 (the same drawing in TSOP312.., TSOP314.., Rev. 2.1, 13-Mar-2024, document 82492): body 10 +/-0.3 wide, 12.5 +/-0.4 high,
13# 4 +/-0.3 deep, 5.8 +/-0.3 deep over the lens; lens R 2.75, the centre of the sensitive area (9.2) above the underside; 30.6
14# +/-0.5 overall (leads 18.1); leads 0.5 (+0.15/-0.05) wide, 0.4 (+0.10/-0.05) thick, a wider part 0.65 (+0.10/-0.15); pins
15# 2.54 nom. and 3 x 2.54 = 7.62 nom. from the first; the leads' near face 1.4 +/-0.3 from the body's back.
16# Minicast: Vishay TSOP382.., TSOP384.. data sheet, Rev. 2.1, 27-May-2025 (document 82491), drawing 6.550-5263.01-4 issue 12:
17# body 5 wide, 6.95 +/-0.3 high, 2.8 deep, 4.8 deep over the lens; lens R 2, (4) wide; 8.25 +/-0.3 from the top to the leads'
18# shoulder line (1.3 below the body) and (5.55) from that line to the lens centre (4.25 above the underside); 30.5 +/-0.5
19# overall (leads 23.55); leads 0.7 max. wide, 0.5 max. thick, a wider part 0.85 max., starting 0.9 below the shoulder line
20# and 1.1 long; pitch 2.54 nom.; (1.54) from an outer lead's stub (inner edge) to that lead's outer edge, so the stub's inner
21# edge is 2.54 + 0.35 - 1.54 = 1.35 from the middle; the leads' near face 1.2 +/-0.2 from the back.
22# Mold: Vishay TSOP32S40F, TSOP34S40F data sheet, Rev. 1.2, 26-Feb-2024 (document 82669), drawing 6.550-5169.01-4 issue 9: body
23# 6 wide, 6.95 high, 3.9 deep over its upper 5.3 and 4.1 deep below that, 5.6 deep over the lens; lens R 2.5; 8.25 to the
24# shoulder line (1.3 below the body), (5.55) to the lens centre (4.25 above the underside); 30.5 +/-0.5 overall (leads 23.55);
25# leads 0.7 max. wide, 0.5 max. thick, a wider part 0.85 max., starting 1 below the shoulder line and 1 long; pitch 2.54 nom.;
26# 0.89 from an outer lead's stub (inner edge) to that lead's centre line, so the stub's inner edge is 2.54 - 0.89 = 1.65 from
27# the middle; the leads' near face 1.3 from the back.
28# Minimold: Vishay TSOP331.., TSOP333.., TSOP335.. data sheet, Rev. 1.8, 28-May-2025 (document 82742), drawing 6.550-5335.01-4
29# issue 2: body 5.4 wide, 6.35 high, 2.25 deep, 5 deep over the lens; lens R2.5 (so it stands on a collar 5 - 2.25 - 2.5 = 0.25
30# long); 7.6 to the shoulder line (1.25 below the body), (5.05) to the lens centre (3.8 above the underside); 15.2 +/-0.3
31# overall (leads 8.85); leads (3 x) 0.6 +/-0.1 wide, 0.3 +/-0.1 thick, a wider part (3 x) 0.85 max., starting (0.95) below the
32# shoulder line and (1.1) long; pitch 2.54 nom.; the leads' near face 0.95 from the back.
33# width X, height Z, block depth Y, depth over the lens, lens radius, lens centre above the underside, lead length below the
34# body, lead width, lead thickness, wider part's width, leads' near face from the back, pin positions along X
35PACKAGES = {
36 "Cast": {"width": 10.0, "height": 12.5, "block": 4.0, "depth": 5.8, "lens_r": 2.75, "lens_z": 9.2, "lead_len": 18.1,
37 "lead_w": 0.5, "lead_t": 0.4, "bulge_w": 0.65, "back": 1.4, "pins": (-3.81, -1.27, 3.81)},
38 "Minicast": {"width": 5.0, "height": 6.95, "block": 2.8, "depth": 4.8, "lens_r": 2.0, "lens_z": 4.25, "lead_len": 23.55,
39 "lead_w": 0.7, "lead_t": 0.5, "bulge_w": 0.85, "back": 1.2, "pins": (-2.54, 0.0, 2.54)},
40 "Mold": {"width": 6.0, "height": 6.95, "block": 3.9, "depth": 5.6, "lens_r": 2.5, "lens_z": 4.25, "lead_len": 23.55,
41 "lead_w": 0.7, "lead_t": 0.5, "bulge_w": 0.85, "back": 1.3, "pins": (-2.54, 0.0, 2.54)},
42 "Minimold": {"width": 5.4, "height": 6.35, "block": 2.25, "depth": 5.0, "lens_r": 2.5, "lens_z": 3.8, "lead_len": 8.85,
43 "lead_w": 0.6, "lead_t": 0.3, "bulge_w": 0.85, "back": 0.95, "pins": (-2.54, 0.0, 2.54)},
44}
45# The outer leads' jog (none on the Cast package, whose leads are straight): shoulder line below the body, the wider part's start
46# below that line and its length, and the stub's inner edge from the middle where the drawing dimensions it.
47JOGS = {
48 "Minicast": {"shoulder": 1.3, "bulge_at": 0.9, "bulge_len": 1.1, "stub_in": 1.35},
49 "Mold": {"shoulder": 1.3, "bulge_at": 1.0, "bulge_len": 1.0, "stub_in": 1.65},
50 "Minimold": {"shoulder": 1.25, "bulge_at": 0.95, "bulge_len": 1.1},
51}
52# The Mold body's lower part: 6.95 - 5.3 = 1.65 high and 4.1 deep.
53MOLD_FOOT = (1.65, 4.1)
54# Proportions, for looks (the drawings show these but don't dimension them; README): where the Cast leads' wider part starts
55# below the body and how long it is; the outer leads' stub width and the thickness of the run from the stub out to the lead;
56# the Minimold stub's inner edge from the middle.
57PROPORTIONS = {
58 "Cast": {"bulge_at": 2.1, "bulge_len": 1.6},
59 "Minicast": {"stub_w": 0.5, "run": 0.6},
60 "Mold": {"stub_w": 0.5, "run": 0.6},
61 "Minimold": {"stub_w": 0.55, "run": 0.5, "stub_in": 1.5},
62}
63
64if package not in PACKAGES:
65 raise ValueError(f"no package {package!r}: {', '.join(PACKAGES)}")
66D = PACKAGES[package]
67P = PROPORTIONS[package]
68J = JOGS.get(package)
69W, H, block, depth, R, zc = D["width"], D["height"], D["block"], D["depth"], D["lens_r"], D["lens_z"]
70w, t, bw, lead_len = D["lead_w"], D["lead_t"], D["bulge_w"], D["lead_len"]
71back = D["back"] + t / 2 # the body's back face, from the leads' middle plane (Y = 0)
72face = back - block # the block's front face
73tip = back - depth # the lens's front
74
75model = Model()
76if package == "Mold":
77 foot_h, foot_d = MOLD_FOOT
78 model.box("block", W, block, H - foot_h, at=(0, back - block / 2, foot_h + (H - foot_h) / 2), op="new", body="body_body", name="Body")
79 model.box("foot", W, foot_d, foot_h, at=(0, back - foot_d / 2, foot_h / 2), op="join", body="body_body", name="Body, lower part")
80 # The lens: a ball of radius R whose front is the package's depth from the back; the block's front face cuts it to a cap.
81 model.sphere("lens", R, at=(0, tip + R, zc), op="join", body="body_body", name="Lens")
82else:
83 model.box("block", W, block, H, at=(0, back - block / 2, H / 2), op="new", body="body_body", name="Body")
84 if package == "Minimold":
85 # A half ball on a short collar, its axis along Y through the lens centre.
86 yc = tip + R
87 with model.sketch("lens_sketch", on="YZ", name="Lens") as sk:
88 sk.polyline("lens_sides", [(yc, zc + R), (face, zc + R), (face, zc), (tip, zc)], closed=False)
89 sk.arc("lens_arc", (yc, zc), R, 90, 180)
90 model.revolve("lens", "lens_sketch", axis=((0, 0, zc), (0, 1, 0)), op="join", body="body_body", name="Lens")
91 else:
92 # An upright round column from the underside up to the lens centre, then a ball top. Its axis is R behind the lens's
93 # front: inside the block on the Cast package, on the block's front face on the Minicast.
94 ya = tip + R
95 with model.sketch("lens_sketch", on="YZ", name="Lens") as sk:
96 sk.polyline("lens_sides", [(ya, zc + R), (ya, 0), (tip, 0), (tip, zc)], closed=False)
97 sk.arc("lens_arc", (ya, zc), R, 90, 180)
98 model.revolve("lens", "lens_sketch", axis=((0, ya, 0), (0, 0, 1)), op="join", body="body_body", name="Lens")
99
100
101def side(x, top, sign):
102 """One side of a lead from z = -top down to its end, with the wider part's step, top to bottom; sign -1 is the left side."""
103 if J:
104 b0 = J["shoulder"] + J["bulge_at"]
105 b1 = b0 + J["bulge_len"]
106 else:
107 b0 = P["bulge_at"]
108 b1 = b0 + P["bulge_len"]
109 a, b = x + sign * w / 2, x + sign * bw / 2
110 return [(a, -top), (a, -b0), (b, -b0), (b, -b1), (a, -b1), (a, -lead_len)]
111
112
113leads = []
114for n, x in enumerate(D["pins"]):
115 if J and x != 0:
116 # An outer lead: a stub out of the body down to the shoulder line, a run outward, then the lead.
117 s = 1 if x > 0 else -1
118 xi = J.get("stub_in", P.get("stub_in"))
119 shoulder, run = J["shoulder"], P["run"]
120 inner = [(s * xi, 0), (s * xi, -shoulder)] + [(s * px, pz) for px, pz in side(abs(x), shoulder, -1)]
121 outer = [(s * px, pz) for px, pz in side(abs(x), shoulder - run, 1)]
122 pts = inner + outer[::-1] + [(s * (xi + P["stub_w"]), -(shoulder - run)), (s * (xi + P["stub_w"]), 0)]
123 else:
124 pts = side(x, 0, -1) + side(x, 0, 1)[::-1]
125 with model.sketch(f"lead_{n}_sketch", on="XZ", name=f"Lead {n + 1}") as sk:
126 sk.polyline(f"lead_{n}_outline", pts, closed=True)
127 model.extrude(f"lead_{n}", f"lead_{n}_sketch", distance=t, both=True, op="new", body=f"lead_{n}_body", name=f"Lead {n + 1}")
128 leads.append(f"lead_{n}_body")
129
130# Materials: the sheets say the "epoxy package contains an IR filter" and that the parts are "assembled on a lead frame" (Mold:
131# "on a PCB"), and name nothing further. The body is the dark filter epoxy, shown as pmma (1.18; epoxy is about 1.2); the leads
132# are metal, shown as copper.
133model.material("pmma", bodies=["body_body"], color="#2a2a30")
134model.material("copper", bodies=leads, color="#c9ccd1")
135result = model.result()
136

IR receiver modules for remote control (a photo detector and preamplifier in an epoxy package with a domed lens, on three leads) for board layouts and enclosures, as Vishay draws the Cast, Minicast, Mold and Minimold packages. The leads are at their full length as supplied. The body with its lens is one solid and each lead is its own solid. Dimensions from Vishay's data sheets. See the README.

IR receiver module

Vishay's IR receiver modules for remote control, chosen by package: Cast, Minicast, Mold and Minimold. Each is an epoxy body with a domed lens on its front and three leads in a row. The body's underside is the XY plane and the leads run down (-Z) at their full length as supplied. The pin row runs along X, centred on the body. The leads' middle plane is Y = 0 and the lens looks toward -Y. The body with its lens is one solid, and each lead is its own solid.

Package Body (W x H x D over the lens) Leads below the body Vishay series (sheet title)
Cast 10 x 12.5 x 5.8 18.1 TSOP311.., TSOP313.., TSOP315.. (also TSOP312.., TSOP314..)
Minicast 5 x 6.95 x 4.8 23.55 TSOP382.., TSOP384..
Mold 6 x 6.95 x 5.6 23.55 TSOP32S40F, TSOP34S40F
Minimold 5.4 x 6.35 x 5 8.85 TSOP331.., TSOP333.., TSOP335..

Source

Each package is drawn on page 7 of its data sheet, PACKAGE DIMENSIONS in millimeters:

  • Cast: Vishay, TSOP311.., TSOP313.., TSOP315.. "IR Receiver Modules for Remote Control Systems", Rev. 1.8, 13-Mar-2024, document number 82493, drawing 6.550-5095.01-4, issue 20. The same drawing is in TSOP312.., TSOP314.., Rev. 2.1, 13-Mar-2024, document number 82492. Copies: vishay.com/docs/82493/tsop311.pdf, vishay.com/docs/82492/tsop312.pdf (1 request each).
  • Minicast: Vishay, TSOP382.., TSOP384.., Rev. 2.1, 27-May-2025, document number 82491, drawing 6.550-5263.01-4, issue 12. Copy: vishay.com/docs/82491/tsop382.pdf (1 request).
  • Mold: Vishay, TSOP32S40F, TSOP34S40F, Rev. 1.2, 26-Feb-2024, document number 82669, drawing 6.550-5169.01-4, issue 9. Copy: vishay.com/docs/82669/tsop32s40f.pdf (1 request).
  • Minimold: Vishay, TSOP331.., TSOP333.., TSOP335.., Rev. 1.8, 28-May-2025, document number 82742, drawing 6.550-5335.01-4, issue 2. Copy: vishay.com/docs/82742/tsop331.pdf (1 request).

All dimensions are in mm. The Minicast, Mold and Minimold drawings give ±0.2 where no tolerance is shown.

Cast Minicast Mold Minimold
Body width 10 ±0.3 5 6 5.4
Body height 12.5 ±0.4 6.95 ±0.3 6.95 6.35
Body depth 4 ±0.3 2.8 3.9 over the upper 5.3, 4.1 below 2.25
Depth over the lens 5.8 ±0.3 4.8 5.6 5
Lens radius R 2.75 R 2, (4) wide R 2.5 R2.5
Lens centre above the underside (9.2) 4.25: (5.55) from the shoulder line 4.25: (5.55) from the shoulder line 3.8: (5.05) from the shoulder line
Leads' shoulder line below the body none (straight leads) 1.3 (8.25 ±0.3 from the top) 1.3 (8.25 from the top) 1.25 (7.6 from the top)
Overall height 30.6 ±0.5 30.5 ±0.5 30.5 ±0.5 15.2 ±0.3
Lead width 0.5 +0.15/-0.05 0.7 max. 0.7 max. 0.6 ±0.1
Lead thickness 0.4 +0.10/-0.05 0.5 max. 0.5 max. 0.3 ±0.1
Leads' wider part 0.65 +0.10/-0.15 0.85 max., from 0.9 below the shoulder line, 1.1 long 0.85 max., from 1 below the shoulder line, 1 long 0.85 max., from (0.95) below the shoulder line, (1.1) long
Pins 2.54 nom. and 3 x 2.54 = 7.62 nom. from the first 2.54 nom. apart 2.54 nom. apart 2.54 nom. apart
Outer leads' stub, inner edge from the middle - 1.35: (1.54) from it to the lead's outer edge 1.65: 0.89 from it to the lead's centre line not dimensioned
Leads' near face from the body's back 1.4 ±0.3 1.2 ±0.2 1.3 0.95

The lens shapes follow the drawings' three views:

  • Cast: an upright round column of radius 2.75 from the underside up to the lens centre, with a ball top. Its front is 5.8 from the back, so its axis lies inside the body and it shows about 5.2 wide on the front face, as drawn.
  • Minicast: a half-round column of radius 2 on the front face up to the lens centre, with a quarter-ball top.
  • Mold: a ball of radius 2.5 whose front is 5.6 from the back. The front face cuts it to a cap.
  • Minimold: a half ball of radius 2.5 on a collar 0.25 long (5 - 2.25 - 2.5).

Where the sheet gives only a maximum (the Minicast and Mold leads' 0.7 and 0.5, and the wider parts' 0.85), the model uses that value. The Cast package's three pins are drawn centred on the body: seen from the lens side they are 3.81 and 1.27 left of the middle and 3.81 right of it.

Proportions, stated plainly. The drawings show these but don't dimension them. They are scaled off the drawings:

  • Cast: the leads' wider part starts 2.1 below the body and is 1.6 long.
  • Minicast and Mold: each outer lead's stub is 0.5 wide, and the run from the stub out to the lead is 0.6 thick (its lower edge is the shoulder line).
  • Minimold: each outer lead's stub has its inner edge 1.5 from the middle and is 0.55 wide. The run out to the lead is 0.5 thick.
  • The leads' wider parts step out squarely. The drawings show small tapers at their ends.
  • The bodies are plain blocks. The drawings' draft angles, edge chamfers, marking areas and the Minicast and Minimold side tabs aren't modelled, nor is the Cast package's "area not plane" (0.8 max.) around the leads under the body.

Materials. The sheets say the epoxy package contains an IR filter and that the detector and preamplifier are assembled on a lead frame (Cast, Minicast, Minimold) or on a PCB (Mold). They name nothing further. The body is shown as pmma (1.18; epoxy is about 1.2), dark. The leads are metal, shown as copper.

Mass. The sheets give no weight. The models weigh about 0.78 g (Cast: body 573 mm³, leads 11.2 mm³), 0.38 g (Minicast: 132 mm³, 25.4 mm³), 0.44 g (Mold: 182 mm³, 25.1 mm³) and 0.18 g (Minimold: 115 mm³, 5.2 mm³). No material was chosen to meet a weight.

Catalogue models

The old catalogue's Vishay_CAST-3Pin, Vishay_MINICAST-3Pin, Vishay_MOLD-3Pin and Vishay_MINIMOLD-3Pin entries map to the presets of those packages. Their reference models were measured against the drawings:

Model Measured Drawing
Vishay_CAST-3Pin body 10 x 12.5, 4.0 deep, 5.9 over the lens; pins at 0, 2.54 and 7.62, the first 1.19 from the body's edge; leads 0.5 x 0.4, 0.66 at the wider part; back 1.6 from the leads' middle 10 x 12.5, 4, 5.8 ±0.3; 2.54 and 7.62; 0.5 x 0.4, 0.65; 1.4 + 0.2
Vishay_MINICAST-3Pin body 5 x 6.95, 4.8 over the lens; leads 0.7 x 0.4, 0.85 at the wider part, 5.93 across; stub's inner edge 1.35 from the middle; back 1.4 from the leads' middle 5 x 6.95, 4.8; 0.7 max. x 0.5 max., 0.85 max.; 1.35; 1.2 + 0.25
Vishay_MOLD-3Pin body 6 x 6.95, 5.6 over the lens; leads 0.7 x 0.5, 0.85 at the wider part; back 1.55 from the leads' middle; stub's inner edge 1.35 from the middle 6 x 6.95, 5.6; 0.7 max. x 0.5 max., 0.85 max.; 1.3 + 0.25; 1.65
Vishay_MINIMOLD-3Pin body 5.4 x 6.35, 5.0 over the lens; leads 0.6 x 0.4, 5.93 across; back 1.125 from the leads' middle 5.4 x 6.35, 5; 0.6 ±0.1 x 0.3 ±0.1, 0.85 max.; 0.95 + 0.15

Two differences are left as the sheets have them. The Mold reference model puts the outer leads' stubs 0.3 nearer the middle than the drawing's 0.89 gives (1.35 against 1.65); the model follows the drawing. The Minimold reference model's leads are 0.4 thick, the top of the drawing's 0.3 ±0.1; the model uses 0.3.

The reference models show the leads cut short for a board (8 below the body on the Cast model, about 6.4 on the others). This part keeps the leads at the length the sheets draw, as supplied.

  1. 1.0.0 Latest
More #ir-receiver
STEVEMIT

steve/reflective-optical-sensor

Reflective optical sensors with transistor output: Vishay CNY70, TCRT5000 and TCRT5000L and onsemi QRE1113GR, by part number.

10 4 sizes 0 2 weeks ago v1.1.0
STEVEMIT

steve/leaded-inductor

Axial leaded inductor, Fastron fixed choke coils (MICC, SMCC, MECC, HCCC, LACC, HBCC, VHBCC, XHBCC) and suppression coils (MISC, MESC, 77A), Vishay Dale molded IM-1 to IM-10, horizontal or vertical.

11 63 sizes 0 3 weeks ago v1.1.0
STEVEMIT

steve/tht-led

Through-hole round LEDs from Vishay's drawings: 5 mm (T-1 3/4, TLHx5400) and 3 mm (T-1, TLHx4400), red, yellow or green.

10 6 sizes 0 3 weeks ago v1.0.1
STEVEMIT

steve/axial-diode

Axial leaded diodes in Vishay's DO-35, DO-41, DO-15, DO-201AD and P600 packages, with the cathode band, horizontal or vertical.

7 30 sizes 0 3 weeks ago v1.0.0