Switch Basics

Pages

Contributors: Jimb0

Momentary Switches

Momentary switches are switches which only remain in their on state as long as they’re being actuated (pressed, held, magnetized, etc.). Most often momentary switches are best used for intermittent user-input cases; stuff like reset or keypad buttons.

Examples of Momentary Switches

Push-button

Push-button switches are the classic momentary switch. Typically these switches have a really nice, tactile, “clicky” feedback when you press them. They come in all sorts of flavors: big, small, colorful, illuminated (when an LED shines up through the button). They might be terminated as through-hole, surface-mount, or even panel-mount.

Assortment of tactile switches

An assortment of tactile push-button switches. Starting top-left, clockwise: blue and pink arcade buttons, 12mm push button, white capped button, orange illuminated, right-angle, panel-mount, and a mini push button.

Button Matrices

Large arrays of momentary buttons, like your keyboard or even smaller groupings like a keypad, usually arrange all of their switches into a big matrix. Every button on the pad is assigned a row and column . This requires some extra button-press-processing on the microcontroller end, but free’s up a big chunk of I/O pins.

12-button keypad

Etc.

Momentary switches don’t always have to be actuated by a pushdown. It could be push-sideways, like the movement action in a handful of joysticks.

Joysticks

An arcade joystick uses four microswitches to sense up, down, left and right movements. The tiny little surface-mount 5-way tactile switch is an SP5T directional switch (up, down, left, right, and press-down).

On the other end of the spectrum, reed switches open or close when exposed to the presence of a magnetic field. These are great for making a non-contact switch.

Reed switches

A couple of reed switches: non-insulated (bottom) and insulated.


Want more information about SparkFun's classes? Interested in getting involved with teaching electronics? Just want to talk? Sign up for our newsletter, or contact our education department.

SparkFun is a company built around one core idea – sharing ingenuity. We think everyone should have the hardware and resources to learn and play with cool electronic gadgetry.

Share, give, learn, SparkFun.

Do you regularly instruct classes and workshops in a formal or informal learning environment? SparkFun offers Educator Discounts to people teaching and sharing electronics.

Find out more.