Skip to Content
Circuitera

Miniature slide switch

Find the common pin of a small SPDT slide switch and wire a defined logic state for each position.

Miniature slide switch photograph
Mountable Slide Switch (35529389702).jpg by SparkFun Electronics from Boulder, USA · CC BY 2.0. Resized and encoded as WebP without cropping.

Contact arrangement

With an SPDT switch, a moving common contact selects one of two throws. On a small board switch, case-mounting tabs may also look like electrical pins.

Source: SparkFun

Wiring a logic input

Connect the common terminal to a digital input and establish valid logic levels at the throws, or use a pull-up and switch one throw to ground. Check continuity in each position because physical terminal arrangements vary.

Source: SparkFun

Selecting a part

Many small slide switches are meant for signal currents. Check the switching rating and case fit when choosing one for power. A maintained slide switch does not return by itself like a momentary pushbutton.

Source: SparkFun

Specifications

ParameterValue or conditionSource
Representative topologySingle pole, double throw for SparkFun product 14330SparkFun
BehaviorMaintained mechanical positionsSparkFun

Compatibility and practice

Use continuity mode with the circuit unpowered to identify the contacts before connecting rails.

Sources and datasheets