DIYables DIP Switch Red 4 Position (Pack of 10) - Compatible with Arduino, ESP32, ESP8266, Raspberry Pi - DIP 4-Way Toggle Switch for DIY Electronics & Prototyping

Input ComponentsSwitches
Buy on Amazon
DIYables red 4 position DIP switch showing ON marking and numbered positions 1 to 4 Click to zoom
DIYables red 4 position DIP switch showing ON marking and numbered positions 1 to 4Angled view of the 4 way DIP switch with white actuators and through-hole pinsTwo DIP switches with dimensions marked 11.7mm by 9.9mm by 5.4mmTen red 4 position DIP switches included in the 10 packDIP switch wired on a breadboard to an Arduino board with four signal lines and ground

Quick Overview

The DIYables 4 Position DIP Switch packs four independent slide switches into a single red through-hole body. Each position is numbered 1 to 4 on the housing with ON printed along the edge, so the state of every switch is readable at a glance without a meter. The white actuators move with a firm, positive action and stay where they are put, which is what makes DIP switches the standard way to hold a setting that should survive a power cycle but still be changeable by hand.

Each switch is electrically separate, giving four independent single-pole contacts on one part. Wire each position between a GPIO pin and ground, enable the microcontroller's internal pull-up, and four switches give sixteen selectable states — enough for an I2C address, a mode selector, a baud rate setting, or a set of feature flags. Pins are on a 2.54mm grid in the standard DIP footprint, so the part drops straight into a breadboard across the centre channel or into a PCB with no adapter.

Ideal for address selection on sensor boards, hardware configuration that should not live in firmware, mode and option switching, and teaching binary in a classroom. Measuring 11.7 x 9.9 x 5.4mm, it stays small enough for crowded boards. This listing includes 10 switches.

Key Features

  • Four Independent Switches — Four separate single-pole contacts in one package for up to sixteen selectable states
  • Clear ON Marking — ON is printed along the edge and positions are numbered 1 to 4, so settings are readable without a meter
  • 2.54mm Pitch Through Hole — Standard DIP footprint drops into breadboards across the centre channel or straight into a PCB
  • Compact 11.7 x 9.9 x 5.4mm Body — Small enough for crowded boards while remaining easy to operate by hand
  • Positive Slide Action — Actuators move firmly and hold position, so settings survive handling and power cycles
  • Setting Without Firmware — Hardware configuration that can be changed in the field with no reflashing
  • High Visibility Red Housing — Red body with white actuators stands out on a populated board
  • Works With Internal Pull-Ups — Wire to ground and enable the MCU pull-up, no external resistors needed
  • Wide Compatibility — Suits Arduino, ESP32, ESP8266, Raspberry Pi, and any board with digital inputs
  • 10 Pack — Ten switches for multiple builds, classroom sets, or spares

SPECIFICATION

Specification Value
Product Type DIP Switch, Through Hole
Positions 4
Switch Type Slide, single pole per position
Pin Pitch 2.54mm
Dimensions 11.7 x 9.9 x 5.4mm
Pin Count 8 (2 per position)
Housing Colour Red with white actuators
Marking ON along the edge, positions numbered 1 to 4
Mounting Through-hole, breadboard and PCB
Package Quantity 10 pieces
Compatibility Arduino, ESP32, ESP8266, Raspberry Pi, any digital input
Applications Address setting, mode selection, configuration, signal routing, education

COMPATIBLE HARDWARE

  • Arduino boards (UNO, Mega, Nano, etc.) — Digital input pins with INPUT_PULLUP enabled
  • Arduino Uno R4 WiFi and Minima — Digital input pins with internal pull-ups
  • ESP32 development boards — 3.3V digital inputs with internal pull-ups
  • ESP8266 boards (NodeMCU, Wemos D1, etc.) — 3.3V digital inputs
  • Raspberry Pi (all models) — GPIO inputs with pull-ups configured in software
  • Raspberry Pi Pico — GPIO inputs with internal pull-ups
  • Breadboards — Straddles the centre channel on the standard 2.54mm grid
  • Custom PCBs — Standard through-hole DIP footprint
  • I2C and addressable modules — Manual address selection without firmware changes
  • Any microcontroller with digital inputs — Wire each position between a pin and ground