deckle studio
Open the editor
Built-in circuit elementmx_switch

Mechanical key switch (MX style, hot-swap)

MX-style mechanical key switch (Cherry MX and the many compatible switches: Gateron, Kailh, Akko …) for keyboards. On a hot-swap board the PCB carries a Kailh socket on its back (put the part on the bottom side; the key matrix does) and the switch is plugged in from the front through a 14 × 14 mm plate cut-out; "solder" puts the switch pins straight into the board. Keys of 2 u and wider get the holes of a PCB-mount (screw-in) stabilizer. In a keyboard each switch sits in a row / column matrix with one diode (1N4148W) per key. While the simulation runs, the keyboard key named in "Key" presses it.

Schematic symbol

Key data

Category
Switches
Simulation model
Built-in circuit element
Reference prefix
SW
Pins
2
Land pattern
SW_MX_Hotswap_1.00u
Interactive
Click it while the simulation runs

Simulation model

Switch with on-resistance when closed. Click it while the simulation runs.

Primitive
SW

Pins 2

PinNameUse
11Passive pinContact: to the column (COL) net of the key matrix
22Passive pinContact: to the anode of this key's diode (its cathode goes to the row)

Parameters 6

pressedclosed
Defaultoff
R onRon
Default0.1 Ω
Key sizesize
Default1 u
11.251.51.7522.252.756.257

1 u = 19.05 mm; 2 u and wider (Backspace, Enter, Shift, Space) get stabilizer holes

Mountingpackage
Defaulthotswap
hotswapsolder

hotswap: Kailh CPG151101S11 socket on the back, switches plug in; solder: switch pins soldered into the board

Legendlabel
Default–

Printed on the keycap in the 3D view

Keyboard keykey
Default–

KeyboardEvent code (KeyA, Digit1, Space, ShiftLeft …): holding that key during the simulation presses the switch

PCB

Verified land patternSW_MX_Hotswap_1.00u