What Is a DIP Switch?
A DIP switch is a setting component soldered to a board, made of several small switches arranged side by side in a single body. It takes its name from the DIP (Dual In-line Package) body shape.
What Is It For?
Each switch represents one bit; with open/closed combinations it gives the hardware a persistent setting. It's used to set an address, mode or option without requiring software.
| Property | Typical |
|---|---|
| Ways | 2 / 4 / 8 switches |
| Type | Slide / rotary |
| Use | Persistent hardware setting |
Addressing Example
An 8-way DIP switch gives 2⁸ = 256 different combinations. So it's common in settings like an I2C device address, RF channel selection or a machine number.
Where Is It Used?
Old motherboards, industrial modules, RF receivers/transmitters, garage-door remotes and devices needing a field setting.
Reading
An MCU reads each leg of the DIP switch from an input pin with a pull-up/pull-down and converts the setting to a number; the device is configured to this value at startup.
Slide and Rotary Type
The most common is the slide DIP switch; each switch is turned on/off individually. A rotary DIP switch selects a value between 0–9 or 0–F with a single arrow and gives this value as a binary code on the output pins; it's practical for single-digit address selection.
Common Mistakes
- No pull resistor: the input floats in the open position.
- Confusing direction: overlooking which side ON is on.
- Power switching: a DIP switch is only for low signal.
Frequently Asked Questions
Why is it still used?+
How many ways does it have?+
Search parts related to "What Is a DIP Switch?"
Find the right part by comparing price, stock and distributors.