Sign in with STEVE

steve/dip-switch-tht

Through-hole side-actuated (piano) DIP switches, CTS Series 194/195, 2 to 10 and 12 positions, from CTS's data sheet.

v1.0.0 Latest STEVE MIT 0
Isometric
part.py 49 lines · Python · STEVE runtime · checked
Download
1"""Through-hole DIP switch, CTS Series 194/195 (side-actuated, "piano" keys). Pin 1 is at the origin, the switches' pins 1 to N along +X
2in the row nearest the keys, their other pins in the row 7.62 towards +Y; the keys stick out of the body's -Y face. The body stands on the
3board (XY plane) and the pins go down through it. Dimensions from CTS's data sheet; see the README."""
4from steve import Model
5
6series = "194" # CTS series: 194 (gold-plated contacts) or 195 (tin-plated); the same size
7positions = 4 # number of switches: 2 to 10, or 12
8
9# series: (pitch, rows apart, body depth across the rows, height above the board, pin length below it, pin across X, pin across Y,
10# key width, key out of the body's face).
11# CTS Series 194/195 Data Sheet, Through Hole DIP Switch, 06/14/17, page 2-2 (Chip and Dip's copy, static.chipdip.ru DOC040834963):
12# 2.54 typ., 7.62 +0.38/-0.13, 9.78 +-0.25, 7.90 from the mounting surface, 3.81 +0.25/-0.51, terminals 0.48 +-0.08 and 0.20 +-0.08,
13# keys 1.52 wide, 1.14 REF (M, medium height actuator).
14SERIES = {
15 "194": (2.54, 7.62, 9.78, 7.90, 3.81, 0.48, 0.20, 1.52, 1.14),
16 "195": (2.54, 7.62, 9.78, 7.90, 3.81, 0.48, 0.20, 1.52, 1.14),
17}
18# Overall length "A" by number of positions, the same page's table (194/195-2MS to -12MS).
19LENGTH = {2: 7.26, 3: 9.80, 4: 12.34, 5: 14.88, 6: 17.42, 7: 19.96, 8: 22.50, 9: 25.04, 10: 27.58, 12: 32.66}
20# Proportions, for looks (the sheet doesn't dimension them): the keys' height, from the body's top down, as drawn in the front view.
21KEY_H = 3.2
22
23if positions not in LENGTH:
24 raise ValueError(f"CTS 194/195 come with {', '.join(map(str, LENGTH))} positions, not {positions}")
25pitch, rows, depth, height, tail, pin_x, pin_y, key_w, key_out = SERIES[series]
26length = LENGTH[positions]
27# The body is centred on the pins both ways.
28x_mid = (positions - 1) * pitch / 2
29y_mid = rows / 2
30front = y_mid - depth / 2
31model = Model()
32model.box("body", length, depth, height, at=(x_mid, y_mid, height / 2), op="new", body="body_body", name="Body")
33keys = []
34for i in range(positions):
35 x = i * pitch
36 model.box(f"key_{i + 1}", key_w, key_out, KEY_H, at=(x, front - key_out / 2, height - KEY_H / 2), op="new", body=f"key_{i + 1}_body",
37 name=f"Key {i + 1}")
38 keys.append(f"key_{i + 1}_body")
39pins = []
40for i in range(positions):
41 for row, number in ((0.0, i + 1), (rows, 2 * positions - i)):
42 model.box(f"pin_{number}", pin_x, pin_y, tail, at=(i * pitch, row, -tail / 2), op="new", body=f"pin_{number}_body",
43 name=f"Pin {number}")
44 pins.append(f"pin_{number}_body")
45# Materials, for looks and a rough mass: the sheet names UL 94V-0 plastics (pa6 here) and tin-plated terminals (copper here).
46model.material("pa6", bodies=["body_body", *keys], color="#1d1e20")
47model.material("copper", bodies=pins, color="#c9cbc8")
48result = model.result()
49

Through-hole DIP switch with side-actuated piano keys: body, keys and pins at 2.54 x 7.62 mm DIP centres, sized from CTS's Series 194/195 data sheet. See the README.

DIP switch, through-hole, side-actuated

A through-hole DIP switch with side-actuated "piano" keys, CTS Series 194/195. The body stands on the board, and the keys stick out of one long face. Pin 1 is at the origin. The switches' pins 1 to N run along +X in the row nearest the keys, and their other pins run in the row 7.62 towards +Y (switch 1 joins pins 1 and 2N). The keys stick out of the body's -Y face.

Parameters

  • series: 194 (gold-plated contacts) or 195 (tin-plated). The sheet gives both the same size.
  • positions: 2 to 10, or 12.

Sizes

Positions Part number "A" (length) Depth across the rows Height above the board Keys
2 194-2MS 7.26 9.78 7.90 2
3 194-3MS 9.80 9.78 7.90 3
4 194-4MS 12.34 9.78 7.90 4
5 194-5MS 14.88 9.78 7.90 5
6 194-6MS 17.42 9.78 7.90 6
7 194-7MS 19.96 9.78 7.90 7
8 194-8MS 22.50 9.78 7.90 8
9 194-9MS 25.04 9.78 7.90 9
10 194-10MS 27.58 9.78 7.90 10
12 194-12MS 32.66 9.78 7.90 12

All sizes: pins 2.54 apart, the rows 7.62 apart, pins 0.48 along the row and 0.20 across it, 3.81 below the board. Keys are 1.52 wide and stick out 1.14 (the M, medium height, actuator). The suffixes don't change the size: T (top tape seal) and N (shipped in the ON position).

Source

CTS Electrocomponents, Series 194/195 Data Sheet, Through Hole DIP Switch, dated 06/14/17 (© 2017 CTS Corporation), read from Chip and Dip's copy (static.chipdip.ru/lib/834/DOC040834963.pdf, a copy as downloaded from Arrow). Page 2-2 has the drawing and the table: 9.78 ±0.25 deep; "A" ±0.25 by positions (2 to 10 and 12); 7.90 from the mounting surface; terminals 3.81 +0.25/-0.51 long, 0.48 ±0.08 wide and 0.20 ±0.08 thick; 2.54 typ. pitch; rows 7.62 +0.38/-0.13 apart; keys 1.52 wide and 1.14 REF out; 0.38 standoff. Page 1-2 says the plastics are UL 94V-0 and the terminals tin-plated. The sheet gives no weight.

Proportions. The body is centred on the pins both ways. The keys are 3.2 high from the body's top, as the front view draws them. The 0.38 standoffs aren't modelled: the body stands on the board. The body is one solid block. The materials are pa6 for the body and keys (the sheet names only UL 94V-0 plastics) and copper for the pins, both chosen for density. That gives 0.67 g (2 positions), 2.1 g (8) and 3.06 g (12). The sheet gives no weight to compare with.

The body and keys are black, as in the sheet's pictures.

The old catalogue's models

SW_DIP_SPSTx02_Piano_CTS_Series194-2MSTN_W7.62mm_P2.54mm, measured 2026-11-06: 7.26 long, the pins at the sheet's places (the first 0.03 off the body's centre line), 0.48 x 0.20 and 3.81 below. Its body is 9.78 deep, and its keys stick out 0.9 against the sheet's 1.14 REF. It is 8.05 high against 7.90. The catalogue's 2- to 10- and 12-position CTS 194 models map to these presets. Its 11-position model is left out, because the sheet has no 11-position switch.

The catalogue's generic piano switches (Piano_10.8x...) name no maker. The 2-position one measures 12.2 deep with its keys and 10.2 high, so it isn't the CTS part. The generic slide switches are top-actuated, so they are another kind of part. See COVERAGE.md.

  1. 1.0.0 Latest
More #switch
STEVEMIT

steve/rotary-dip-switch-tht

Through-hole 10-position rotary coded DIP switch from Nidec's SH-7000 catalogue: SH-7010C (real code) and SH-7030C (complementary code).

0 2 sizes 0 1 hour ago v1.0.0
STEVEMIT

steve/dip-switch-smd

Surface-mount slide DIP switches in the Omron A6S (2.54 mm, 1 to 10 poles) and A6H (1.27 mm, 2 to 10 poles) sizes.

0 17 sizes 0 12 hours ago v1.0.0
STEVEMIT

steve/tht-tactile-switch

6 x 6 mm through-hole tactile switches from Omron's B3F data sheet: flat plungers 4.3 to 9.5 mm high, projected 7.3 mm, with or without a ground terminal.

0 9 sizes 0 3 hours ago v1.0.0
STEVEMIT

steve/right-angle-tactile-switch

Right-angle 6 x 6 mm through-hole tactile switches, C&K PTS645V: round actuators 3.15 to 8.35 mm from the front leads, or the 6.15 mm square actuator.

0 5 sizes 0 1 hour ago v1.0.0