Switch Quick Reference Guide

cardimg

What is a Switch?

A switch is an electromechanical device that opens or closes an electrical circuit, controlling current flow.
Think of it as a manual gate for electricity — ON means current flows, OFF means it doesn’t.

Switch-open-close-circuit

Why Switches Are Important in Embedded Applications

Switches are the primary user interface in many systems, from a power ON/OFF button to a microcontroller reset pin.
 They provide:

  • User input (mode select, menu navigation)
  • Control (power enable/disable)
  • Maintenance functions (reset, programming mode)
  • Safety interlocks (door sensors, emergency stop)

Practical note: In embedded products, switches often carry logic-level signals to MCUs, but sometimes handle power switching too, which changes their rating requirements.

How a Switch Works

  • Contacts: Metal surfaces that touch to close the circuit.
  • Actuator: The part you press, toggle, or slide.
  • Housing: Protects the mechanism.

Switch Operation Types

Image

Description

Momentary

Momentary-Switch

Works only while pressed (e.g., reset switch).

Maintained (latching)

Maintained-latching-switches

Stays in the last position until changed (e.g., light switch).

Switch Types

1) By Contact Configuration

NameSymbolExample Use

Single Pole Single Throw

(SPST)

SPST-switch-symbol
Simple ON/OFF

Single Pole Double Throw

(SPDT)

SPDT-switch-symbol
Select between two signals

Double Pole Single Throw

(DPST)

DPST-switch-type
Control two circuits at once

Double Pole Double Throw

(DPDT)

DPDT-switch-type
Two SPDTs linked

2) By Actuation

TypeImageDescription

Tactile Switch

(e.g., Omron B3F)

Tactile-Switch
Compact, momentary, SMD or THT, used for menu buttons.
Pushbutton
Pushbutton
Larger, panel-mount, momentary or maintained.
Toggle Switch
Toggle-Switch
Lever-type, maintained, for power/mode selection.
Rocker Switch
Rocker-Switch
Common in mains power panels.
Slide Switch
Slide-Switch
Mode selection in small devices.
DIP Switch
DIP-Switch
Sets configuration bits, replaces jumpers.
Rotary Switch
Multiple position selector (e.g., fan speed control).
Reed Switch
Reed-Switch
Magnetic actuation, used in door sensors.
Membrane Switch
Membrane-Switch
Flat, sealed, used in control panels.
Microswitch
Microswitch
Snap-action, high durability (mouse buttons, limit switches).

3) By Mounting

TypeImageDescription
Through Hole Mount
Through-Hole-Mount
Durable, replaceable, suited for power circuits
Surface Mount
Surface-Mount
Compact, reflow-solderable, for automated assembly.
Panel Mount
Panel-Mount
Designed for user-facing controls.

Key Specifications

Electrical:

  • Contact Rating – Max voltage & current (e.g., 50mA @ 12VDC for a tactile switch).
  • Contact Resistance – Lower is better (<100 mΩ typical).
  • Insulation Resistance – Typically >100 MΩ.
  • Bounce Time – Delay before stable contact (1–20 ms).

Mechanical:

  • Operating Force – Force needed to actuate (e.g., 160g for Omron B3F tactile).
  • Travel Distance – How far the actuator moves before closing contact.
  • Life Expectancy – Measured in cycles (e.g., 1M actuations for tactile switches).

Example FSMJ series Tactile Switch specifications:

Tactile-push-button-switch
TypeDescription
Category

Switches

Tactile Switches

MfrTE Connectivity ALCOSWITCH Switches
SeriesFSMJ
PackagingBulk
CircuitSPST-NO
Switch FunctionOff-Mom
Contact Rating @ Voltage0.05A @ 24VDC
Actuator TypeStandard
Mounting TypeThrough Hole
Actuator Height off PCB, Vertical5.00mm
Actuator OrientationTop Actuated
Outline6.00mm x 6.00mm
Operating Temperature-40°C ~ 105°C
Actuator MaterialPolybutylene Terephthalate (PBT)
Switch Travel0.25mm
Mechanical Life100,000 Cycles

Example: Push-Button Switch Interfacing with Arduino UNO:

Push-Button-Interfacing-Arduino-UNO

Field Issues & Common Mistakes

  • Choosing a low-current contact for power switching → overheating.
  • Ignoring debounce → erratic readings.
  • Using a non-IP-rated switch in an outdoor environment → corrosion failure.
  • Poor soldering on THT switches → intermittent contact.

PCB Design Considerations

  • Pad size & hole diameter for THT switches — follow datasheet.
  • Keep-out zones for actuator clearance.
  • Reinforce mounting pads for high-force switches.
  • Thermal reliefs for large copper areas.

Failure Modes & Diagnosis

FailureCauseTest
Contact wearHigh current arcingMeasure resistance
Dust ingressNo sealingVisual inspection
PCB crackingExcessive forceMagnification check
Bounce issuesWorn springOscilloscope waveform

Switch Press and Release Oscilloscope Waveform:

Switch-Press-and-Release-Oscilloscope-Waveform

ESD/EMI Considerations

  • Panel-mounted switches can act as antenna points for ESD.
  • Add TVS diodes to MCU lines.
  • Use series resistors or ferrite beads for filtering.
  • If it's a metal housing, ground it.

Debouncing Methods

  • Hardware: RC filter, Schmitt trigger buffer.
  • Software: Ignore state changes for a set period (10–50 ms).
  • Measurement Tip: Use a scope to capture bounce waveform.

Selection Checklist

  1. Define the electrical rating needed.
  2. Pick mounting style (THT/SMD/panel).
  3. Choose momentary vs maintained.
  4. Check the IP rating for the environment.
  5. Confirm mechanical life.

Verify actuator accessibility in the enclosure.

Concept understood? Let's apply and learn for real

Practice now