Sign in with STEVE

steve/trimmer-potentiometer

Trimming potentiometers: Bourns 3266, 3296 and 3299 multiturn square in pin styles P, W and Y, 3339 round (H, P) and 3386W single turn square.

v1.2.0 Latest STEVE MIT 7
Isometric
part.py 157 lines · Python · STEVE runtime · checked
Download
1"""Trimming potentiometer, Bourns 3266 (1/4 inch square), 3296 and 3299 (3/8 inch square, multiturn) in the pin
2styles P, W and Y, 3339 (5/16 inch round, top adjust) in styles H and P, and 3386 (3/8 inch square, single turn) in
3style W (side adjust). The board is the XY plane and the three pins point down (-Z); the body is centred on the origin
4in X and Y. 3266, 3296, 3299: the adjustment screw points along +X in style P (side adjust, the body lying flat) and
5along +Z in styles W and Y (top adjust). 3339: the slotted rotor is in the top face. 3386W: the body stands on a narrow
6face and the slotted rotor is in the face towards -Y. The body, the adjustment screw (3266, 3296, 3299) and every pin
7are separate solids. Dimensions in the README."""
8import math
9
10from steve import Model
11
12series = "3296" # Series: Bourns 3266, 3296, 3299, 3339 or 3386
13style = "W" # Pin style: H, P, W or Y (each series has its own)
14
15# Body and adjustment screw, from each sheet's "Common Dimensions" drawing (page 1). L: from the seating plane of
16# styles W and Y to the face with the adjustment screw (the standoff is inside it); L_P (3266 only): the same side as
17# the sheet gives it for style P, lying flat; H: the other side of the square; T: thickness; screw_out: how far the
18# screw head stands out of its face; screw_d, slot_w, slot_deep: "ADJ. SLOT" diameter x wide x deep; screw_h: screw
19# centre from the nearer narrow face; screw_t: screw centre from the nearer large face; pin_d, pin_l: pin diameter and
20# length below the seating plane; pin1_h (3266 only): pin 1 from the narrow face the screw is near.
21# Bourns data sheets "3266 - 1/4 inch Square Trimpot Trimming Potentiometer" (REV. 07/24), "3296 - 3/8 inch Square
22# Trimpot Trimming Potentiometer" and "3299 - 3/8 inch Square Trimpot Trimming Potentiometer" (files dated 2026-05-17),
23# page 1.
24SERIES = {
25 "3266": {"L": 7.24, "L_P": 6.78, "H": 6.71, "T": 4.50, "screw_out": 1.02, "screw_d": 1.78, "slot_w": 0.51, "slot_deep": 0.64,
26 "screw_h": 1.22, "screw_t": 1.27, "pin_d": 0.46, "pin_l": 4.88, "pin1_h": 0.76},
27 "3296": {"L": 10.03, "H": 9.53, "T": 4.83, "screw_out": 1.52, "screw_d": 2.19, "slot_w": 0.56, "slot_deep": 0.76,
28 "screw_h": 1.27, "screw_t": 1.27, "pin_d": 0.51, "pin_l": 6.40},
29 "3299": {"L": 10.03, "H": 9.53, "T": 6.10, "screw_out": 1.52, "screw_d": 2.29, "slot_w": 0.56, "slot_deep": 0.64,
30 "screw_h": 1.12, "screw_t": 1.09, "pin_d": 0.51, "pin_l": 6.22},
31}
32PITCH = 2.54 # between neighbouring pins, every style of every series
33# Pin fields, from each style's drawing on page 1. "row" is the distance of the first row from the face named by
34# "face"; "first" says which pins that row holds ("ends": pins 1 and 3, "pin2": pin 2); the other pins stand "step"
35# further from that face (0: the three pins in line). Styles W and Y: "far" is the large face away from the screw,
36# "near" the large face the screw is near. Style P: "opposite" is the narrow face opposite the screw's, "screw" the
37# face with the screw.
38PINS = {
39 "3266": {"P": {"face": "screw", "first": "pin2", "row": 0.76, "step": 2.54}, "W": {"face": "near", "first": "pin2", "row": 1.02, "step": 2.54},
40 "Y": {"face": "near", "first": "ends", "row": 2.16, "step": 0}},
41 "3296": {"P": {"face": "opposite", "first": "ends", "row": 5.23, "step": 2.54}, "W": {"face": "far", "first": "ends", "row": 2.41, "step": 0},
42 "Y": {"face": "far", "first": "ends", "row": 1.14, "step": 2.54}},
43 "3299": {"P": {"face": "opposite", "first": "ends", "row": 5.23, "step": 2.54}, "W": {"face": "far", "first": "ends", "row": 1.91, "step": 0},
44 "Y": {"face": "far", "first": "ends", "row": 1.91, "step": 2.54}},
45}
46# Proportions, for looks only: the 3296 and 3299 drawings show the pin field in the middle of the body without a
47# dimension from the body's edges across the row, so it is centred there (the 3266 sheet gives pin 1 from the edge);
48# the screw slot is drawn across the body's thickness.
49
50# 3339, 5/16 inch round, top adjust: from the data sheet "3339 - 5/16 inch Round Trimpot Trimming Potentiometer"
51# (REV. 06/24), page 1, "3339H Common Dimensions (Top Adjust)" and "3339P". D: body diameter; H: from the seating
52# plane to the top face (the 0.51 standoff is inside it); pin_d, pin_l: pin diameter and length below the seating
53# plane (4.78 MIN.); slot_l, slot_w, slot_deep: "ADJ. CROSS SLOT" long x wide x deep, 2 places.
54ROUND = {
55 "3339": {"D": 7.62, "H": 6.35, "pin_d": 0.43, "pin_l": 4.78, "slot_l": 2.54, "slot_w": 0.64, "slot_deep": 0.76},
56}
57# Pin fields, from the bottom views. Style H: pin 2 0.38 from the body's axis; pins 1 and 3 each 2.54 from pin 2,
58# 90 degrees apart, on the other side of the axis. Style P: pins 1 and 3 2.54 either side of the axis on one line, pin 2
59# 2.54 from the axis on the perpendicular line.
60ROUND_PINS = {
61 "3339": {"H": {"pin2": 0.38, "arm": 2.54, "angle": 90}, "P": {"grid": 2.54}},
62}
63# 3386, 3/8 inch square, single turn, side adjust (standing): from the data sheet "3386 - 3/8 inch Square Trimpot
64# Trimming Potentiometer" (REV. 12/24), page 1, "Common Dimensions Side Adjust Models H,S,W" and "3386W". W: body width;
65# H: from the seating plane to the top (the 0.38 standoff is inside it); T: body thickness, 4.83 in the "3386B" and
66# the top adjust drawings (the W drawing shows the same body without the figure); rotor_h: rotor centre above the
67# seating plane; slot_w, slot_deep, slot_l: "ADJ. SLOT" wide x deep x long; pin_d, pin_l: pin diameter and length
68# below the seating plane; row: the pin row from the face away from the rotor; pitch: between neighbouring pins.
69SIDE = {
70 "3386": {"W": 9.53, "H": 9.53, "T": 4.83, "rotor_h": 5.64, "slot_w": 0.76, "slot_deep": 0.76, "slot_l": 3.15,
71 "pin_d": 0.51, "pin_l": 5.97, "row": 2.44, "pitch": 2.54},
72}
73SIDE_STYLES = {"3386": ("W",)}
74# Proportions, for looks only (3339, 3386): the rotors' diameters are not given, so they are not separate solids; the
75# slots are cut into the body at the rotor's place, the 3339's in the middle of the top face, the 3386's in the middle
76# of the 9.53 width (the drawing gives the rotor's height only); the 3386's pin 2 is in the middle of the width.
77
78STYLES = {**{k: tuple(v) for k, v in PINS.items()}, **{k: tuple(v) for k, v in ROUND_PINS.items()}, **SIDE_STYLES}
79if series not in STYLES:
80 raise ValueError(f"no series {series!r}: {', '.join(STYLES)}")
81if style not in STYLES[series]:
82 raise ValueError(f"no style {style!r} for series {series}: {', '.join(STYLES[series])}")
83
84
85def place(l: float, h: float, t: float) -> tuple:
86 """Body coordinates (l towards the screw face, h away from the narrow face the screw is near, t towards the large
87 face the screw is near, from the body's centre) to the mounted part."""
88 if style == "P":
89 return (l, h, t + T / 2)
90 return (h, t, l + L / 2)
91
92
93def turn(l: float, h: float, t: float) -> tuple:
94 if style == "P":
95 return (l, h, t)
96 return (h, t, l)
97
98
99def size(l: float, h: float, t: float) -> tuple:
100 return tuple(abs(v) for v in turn(l, h, t))
101
102
103model = Model()
104if series in SERIES:
105 B = SERIES[series]
106 F = PINS[series][style]
107 L, H, T = (B.get("L_P", B["L"]) if style == "P" else B["L"]), B["H"], B["T"]
108 screw_h = -H / 2 + B["screw_h"]
109 screw_t = T / 2 - B["screw_t"]
110 h1 = -H / 2 + B["pin1_h"] if "pin1_h" in B else -PITCH # pin 1 across the row, from the body's centre
111 first = F["row"]
112 other = F["row"] + F["step"]
113 ends, mid = (first, other) if F["first"] == "ends" else (other, first)
114 if style == "P":
115 sign, edge = (1, -L / 2) if F["face"] == "opposite" else (-1, L / 2)
116 pins = [(edge + sign * ends, h1, -T / 2), (edge + sign * mid, h1 + PITCH, -T / 2), (edge + sign * ends, h1 + 2 * PITCH, -T / 2)]
117 down = (0, 0, -1)
118 else:
119 sign, edge = (1, -T / 2) if F["face"] == "far" else (-1, T / 2)
120 pins = [(-L / 2, h1, edge + sign * ends), (-L / 2, h1 + PITCH, edge + sign * mid), (-L / 2, h1 + 2 * PITCH, edge + sign * ends)]
121 down = (-1, 0, 0)
122
123 model.box("body", *size(L, H, T), at=place(0, 0, 0), op="new", body="body_body", name="Body")
124 model.cylinder("screw", B["screw_d"] / 2, B["screw_out"], at=place(L / 2, screw_h, screw_t), direction=turn(1, 0, 0), op="new",
125 body="screw_body", name="Adjustment screw")
126 model.box("slot", *size(B["slot_deep"], B["slot_w"], B["screw_d"] + 1), at=place(L / 2 + B["screw_out"] - B["slot_deep"] / 2, screw_h, screw_t),
127 op="cut", body="screw_body", name="Screw slot")
128 for number, at in enumerate(pins, start=1):
129 model.cylinder(f"pin_{number}", B["pin_d"] / 2, B["pin_l"], at=place(*at), direction=turn(*down), op="new",
130 body=f"pin_{number}_body", name=f"Pin {number}")
131elif series in ROUND:
132 R = ROUND[series]
133 F = ROUND_PINS[series][style]
134 if "arm" in F:
135 half = math.radians(F["angle"] / 2)
136 dx, dy = F["arm"] * math.sin(half), F["arm"] * math.cos(half)
137 pins = [(-dx, F["pin2"] - dy), (0.0, F["pin2"]), (dx, F["pin2"] - dy)]
138 else:
139 pins = [(-F["grid"], 0.0), (0.0, F["grid"]), (F["grid"], 0.0)]
140 model.cylinder("body", R["D"] / 2, R["H"], at=(0, 0, 0), direction=(0, 0, 1), op="new", body="body_body", name="Body")
141 model.box("slot_x", R["slot_l"], R["slot_w"], R["slot_deep"] + 1, at=(0, 0, R["H"] - R["slot_deep"] + (R["slot_deep"] + 1) / 2),
142 op="cut", body="body_body", name="Cross slot")
143 model.box("slot_y", R["slot_w"], R["slot_l"], R["slot_deep"] + 1, at=(0, 0, R["H"] - R["slot_deep"] + (R["slot_deep"] + 1) / 2),
144 op="cut", body="body_body", name="Cross slot, second bar")
145 for number, (x, y) in enumerate(pins, start=1):
146 model.cylinder(f"pin_{number}", R["pin_d"] / 2, R["pin_l"], at=(x, y, 0), direction=(0, 0, -1), op="new",
147 body=f"pin_{number}_body", name=f"Pin {number}")
148else:
149 S = SIDE[series]
150 model.box("body", S["W"], S["T"], S["H"], at=(0, 0, S["H"] / 2), op="new", body="body_body", name="Body")
151 model.box("slot", S["slot_l"], S["slot_deep"] + 1, S["slot_w"], at=(0, -S["T"] / 2 + S["slot_deep"] - (S["slot_deep"] + 1) / 2, S["rotor_h"]),
152 op="cut", body="body_body", name="Rotor slot")
153 for number in (1, 2, 3):
154 model.cylinder(f"pin_{number}", S["pin_d"] / 2, S["pin_l"], at=((number - 2) * S["pitch"], S["T"] / 2 - S["row"], 0),
155 direction=(0, 0, -1), op="new", body=f"pin_{number}_body", name=f"Pin {number}")
156result = model.result()
157

Bourns trimming potentiometers: the 3266 (a 7.24 x 6.71 mm body 4.50 thick), 3296 and 3299 (10.03 x 9.53 mm bodies 4.83 or 6.10 thick) multiturn square trimmers with a slotted adjustment screw in the data sheets' pin styles W and Y (top adjust) and P (side adjust, lying flat); the 3339, a 7.62 mm round body 6.35 high with a cross-slotted rotor on top, in pin styles H and P; and the 3386W, a 9.53 mm square single turn trimmer 4.83 thick standing on a narrow face with its slotted rotor in front. The body, the multiturn models' screw and every pin are separate solids. See the README.

Trimmer potentiometer

A Bourns trimming potentiometer with three round pins:

  • 3266, 3296 and 3299: multiturn square trimmers (3266 1/4 inch square, 12 turns; 3296 and 3299 3/8 inch square, 25 turns), a 7.24 x 6.71 mm body 4.50 mm thick (3266) or a 10.03 x 9.53 mm body 4.83 mm (3296) or 6.10 mm (3299) thick, with a slotted adjustment screw at one corner. Pin styles P, W and Y.
  • 3339: a 5/16 inch round trimmer (4 turns), 7.62 mm across and 6.35 mm high, top adjust with a cross-slotted rotor. Pin styles H and P.
  • 3386: a 3/8 inch square single turn trimmer, 9.53 x 9.53 mm and 4.83 mm thick. Pin style W: side adjust, standing on a narrow face with the slotted rotor in front.

The board is the XY plane and the pins point down. The body is centred on the origin in X and Y. 3266, 3296, 3299: in styles W and Y the screw points up (top adjust); in style P the body lies flat and the screw points along +X (side adjust). 3339: the rotor is in the top face. 3386W: the rotor is in the face towards -Y. The body, the multiturn models' adjustment screw and every pin are separate solids, named Pin 1 to Pin 3 as the sheets number them (1 counter-clockwise end, 2 wiper, 3 clockwise end).

Parameters: series (3266, 3296, 3299, 3339 or 3386) and style, the sheet's pin style letter (P, W or Y for 3266, 3296, 3299; H or P for 3339; W for 3386).

Source

Bourns data sheets "3266 - 1/4 inch Square Trimpot Trimming Potentiometer" (REV. 07/24), "3296 - 3/8 inch Square Trimpot Trimming Potentiometer" and "3299 - 3/8 inch Square Trimpot Trimming Potentiometer" (files dated 2026-05-17), page 1 of each: the "Common Dimensions" drawing and the drawing of each pin style. Read at www.bourns.com/docs/Product-Datasheets/3266.pdf, 3296.pdf and 3299.pdf. Dimensions in mm; the sheets' tolerance is ±0.25 except where noted.

3266 3296 3299
Body, from the seating plane of styles W and Y to the screw's face 7.24 ± 0.51 10.03 10.03
The same side in style P, lying flat 6.78 ± 0.51 not given separately not given separately
Body, the other side of the square 6.71 ± 0.38 9.53 9.53
Body thickness 4.50 ± 0.38 4.83 ± 0.13 6.10 +0.30/-0.25
Standoff (inside the first row's figure) 0.46 ± 0.03 0.38 min. 0.38
Screw head stands out of its face 1.02 1.52 1.52
Adjustment slot: diameter x wide x deep 1.78 x 0.51 x 0.64 2.19 x 0.56 x 0.76 2.29 x 0.56 x 0.64
Screw centre from the nearer narrow face 1.22 ± 0.25 1.27 ± 0.1 1.12 ± 0.254
Screw centre from the nearer large face 1.27 ± 0.25 1.27 ± 0.1 1.09 ± 0.254
Pin diameter 0.46 ± 0.03 0.51 ± 0.03 0.51
Pin length 4.88 ± 0.51 6.40 ± 1.32 6.22 ± 1.14
Pin spacing 2.54 2.54 2.54
Pin 1 from the narrow face the screw is near 0.76 not given not given
Weight 0.015 oz 0.03 oz 0.035 oz

Pin fields:

Style 3266 3296 3299
P pin 2 0.76 ± 0.25 from the screw's face; pins 1 and 3 5.08 apart, 2.54 ± 0.25 further from it pins 1 and 3 5.08 apart, 5.23 from the narrow face opposite the screw; pin 2 between them, 2.54 nearer the screw the same as 3296
W pin 2 1.02 from the large face the screw is near; pins 1 and 3 2.54 further from it the three pins in line, 2.41 from the large face away from the screw in line, 1.91 from that face
Y the three pins in line, 2.16 from the large face the screw is near pins 1 and 3 1.14 from the large face away from the screw; pin 2 2.54 further in pins 1 and 3 at 1.91; pin 2 2.54 further in

Which large face the pin rows are measured from is read from the drawings: on the 3296 and 3299 from the standing styles, which show the screw head on the far side of the body from the dimensioned edge; on the 3266 from the top and bottom views of each style, which put the screw and the dimensioned edge on the same side of the front view. Pin 1 is the pin nearest the screw's corner.

On the 3299 the screw's 2.29 head is 1.09 from the large face, so it stands 0.055 past that face; the model follows the two figures.

3339 and 3386

Bourns data sheets "3339 - 5/16 inch Round Trimpot Trimming Potentiometer" (REV. 06/24) and "3386 - 3/8 inch Square Trimpot Trimming Potentiometer" (REV. 12/24), page 1 of each: for the 3339 the drawings "3339H Common Dimensions (Top Adjust)" and "3339P"; for the 3386 "Common Dimensions Side Adjust Models H,S,W" and "3386W". Read at www.bourns.com/docs/Product-Datasheets/3339.pdf and 3386.pdf. Tolerance ±0.25 except where noted.

3339 3386
Body 7.62 diameter 9.53 wide
From the seating plane to the top (the standoff inside it) 6.35 9.53
Standoff 0.51 0.38 min.
Body thickness 4.83 (given in the "3386B" drawing and the top adjust drawings of the same sheet; the W drawing shows the same body without the figure)
Adjustment slot cross slot, 2 places: 2.54 long x 0.64 wide x 0.76 deep 0.76 wide x 0.76 deep x 3.15 long
Rotor centre above the seating plane 5.64
Pin diameter 0.43 ± 0.05 0.51 ± 0.05
Pin length below the seating plane 4.78 min. (the only figure; used as the length) 5.97 ± 0.89
Weight 0.02 oz 0.03 oz

Pin fields, read from the sheets' bottom views (seen from above, as the part is placed, they are mirrored):

Style Pins
3339H pin 2 0.38 from the body's axis; pins 1 and 3 each 2.54 ± 0.025 from pin 2, 90° ± 1° apart, on the other side of the axis (so 3.59 apart and 1.42 from the axis' line through them)
3339P pins 1 and 3 2.54 either side of the axis on one line; pin 2 2.54 from the axis on the perpendicular
3386W the three pins in line, 2.54 apart, 2.44 from the face away from the rotor

Proportions, for looks

  • The 3296 and 3299 drawings show the pin field in the middle of the body but give no dimension from the body's edges across the row (along the 9.53 side); it is centred. The 3266 sheet gives it (pin 1 0.76 from the edge).
  • The screw slot is drawn across the body's thickness; on a real part it turns with the screw.
  • The standoff feet, the body's corner bosses and its chamfers are not modelled: the body is a plain block (3339: a plain cylinder) of the sheet's overall size.
  • 3339 and 3386: the sheets give no rotor diameter, so the rotor is not a separate solid; its slot is cut into the body, the 3339's cross slot in the middle of the top face, the 3386's slot in the middle of the 9.53 width at the rotor's height (the sheet gives that height only) and drawn across it. The 3386W drawing shows pin 2 in the middle of the width without a dimension; it is placed there.

Not offered

  • Bourns 3005, 3006 and 3009 (3/4 inch rectangular) are not in this version. Their sheets were read ("3005" REV. 07/24, "3006" REV. 05/25, "3009" REV. 06/24): the 3005 sheet places its two pin rows only relative to each other, not to the body, and the 3009 sheet gives the pin length in its style Y drawing only and the body only in its style P drawing.

  • Styles X and Z (side adjust, standing on a narrow face). The 3296 and 3299 sheets dimension the body once, with the pins opposite the screw, and do not say which side of the square, 9.53 or 10.03, then stands on the board; the 3266 sheet gives no height for style X and no length along the screw for style Z.

  • No material is set: the sheets name none (flammability U.L. 94V-0, solderable pins). Sheet weights are in the table above.

  1. 1.2.0 Latest
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