# DIP开关

DIP开关是一种手动机电开关组件，在一个矩形壳体内装有一排或一组小型独立开关，并带有两排平行引脚，排列方式与集成电路所用的双列直插封装（DIP）外形相匹配，因此可直接安装在印制电路板（PCB）上。<sup>[1](https://www.te.com/en/products/switches/intersection/dip-switches-and-their-role-in-the-iot.html)</sup><sup> • </sup><sup>[2](https://www.te.com/en/products/switches/dip-switches.html)</sup>组内的每个开关由人工拨至ON或OFF，从而形成一种硬件层面的配置；该配置断电后仍能保持，并由设备电路以二进制模式读取。<sup>[1](https://www.te.com/en/products/switches/intersection/dip-switches-and-their-role-in-the-iot.html)</sup>

| 关键事实 | 详情 |
|---|---|
| 起源 | 20世纪70年代初开发，作为在软件菜单和可重编程存储器出现之前手动定制电子系统行为的方式<sup>[1](https://www.te.com/en/products/switches/intersection/dip-switches-and-their-role-in-the-iot.html)</sup> |
| 封装几何 | 两排引脚与IC的DIP封装匹配：常见IC样式配置中引脚间距为0.1英寸、排间距为0.3英寸<sup>[1](https://www.te.com/en/products/switches/intersection/dip-switches-and-their-role-in-the-iot.html)</sup> |
| 容量 | 8位开关提供2⁸ = 256种组合，相当于一个字节，因此8位开关组很常见<sup>[1](https://www.te.com/en/products/switches/intersection/dip-switches-and-their-role-in-the-iot.html)</sup> |
| 操作方式 | 三大驱动类型：滑动式、钢琴式（侧向驱动拨杆）和旋转式<sup>[3](https://www.aratas.com/eu-en/products/switches/dip-switches/dip-switch_features)</sup> |
| 典型额定值 | 开关负载约为24 VDC下25 mA，最小负载可低至20 mVDC下1 µA；接触电阻视系列不同最大为50至200 mΩ<sup>[4](https://www.nidec-components.com/eu/product/detail/00000603/)</sup> |
| 寿命 | 滑动式电气耐久性超过1,000次操作，旋转式超过5,000步（部分密封微型型号为2,000步）<sup>[5](https://components.omron.com/us-en/faq/switches/FAQE20094)</sup> |
| 位数 | 商用产品系列通常从1位到12位，并有可端部堆叠的单位置开关用于定制长度<sup>[2](https://www.te.com/en/products/switches/dip-switches.html)</sup> |

## 用途与工作原理

DIP开关的存在，是为了让用户或工厂技术人员无需软件、焊接或供电即可改变设备特性。在软件菜单和可重编程存储器出现之前，它们是微调机器行为、设置地址或选择工作模式的标准方式；制造商可以只设计一种硬件方案，然后通过拨动开关驱动器在工厂或现场对其进行定制。<sup>[1](https://www.te.com/en/products/switches/intersection/dip-switches-and-their-role-in-the-iot.html)</sup>

在内部，滑动式DIP开关使用V形弹性金属滑片作为活动触点，该滑片与由用户用细尖工具或指尖设定的拨杆相连。移动拨杆会使滑片在模制于基座中的镀金固定触点上滑动或离开，从而断开或闭合电路；与基座结合的盖子保护该机构。<sup>[3](https://www.aratas.com/eu-en/products/switches/dip-switches/dip-switch_features)</sup>由于这些开关仅用于更改设置且很少操作，制造商针对长期不活动期间的接触可靠性进行优化，而不是针对频繁开关。<sup>[3](https://www.aratas.com/eu-en/products/switches/dip-switches/dip-switch_features)</sup>

设置以二进制逻辑读取。每一位贡献一个比特，因此8位开关组编码一个字节，而16档旋转式DIP开关提供十六种独特逻辑组合，可分配给节点地址、工作模式或定时选择。<sup>[1](https://www.te.com/en/products/switches/intersection/dip-switches-and-their-role-in-the-iot.html)</sup><sup> • </sup><sup>[6](https://www.digikey.com/en/articles/rotary-dip-switches-and-their-application-in-modern-devices)</sup>

## 类型

三种操作方法定义了主要产品系列。<sup>[3](https://www.aratas.com/eu-en/products/switches/dip-switches/dip-switch_features)</sup>

- **滑动式**是经典形式：小型驱动器可向前或向后推动，在ON和OFF两个位置之间切换，通常为单刀单掷（SPST）触点。部分产品提供带中央中立位置的三位开/关/开布置。<sup>[7](https://www.mouser.com/pdfDocs/DIPSwitches101_CUIDevices.pdf)</sup>
- **钢琴式**将驱动器沿本体侧面垂直排列，因此每个拨杆像钢琴键一样按下；这适合边缘安装卡上的前面板操作。<sup>[3](https://www.aratas.com/eu-en/products/switches/dip-switches/dip-switch_features)</sup><sup> • </sup><sup>[7](https://www.mouser.com/pdfDocs/DIPSwitches101_CUIDevices.pdf)</sup>
- **旋转式**使用旋转拨盘，通常有4至16个定位位置，与线性开关组不同，它们可输出二进制编码十进制（BCD）或十六进制等编码格式，而不是每位一个比特。<sup>[8](https://www.digikey.com/en/articles/what-you-need-to-know-about-switches)</sup>

在每个系列中，端子可用于通孔（插孔）PCB安装或表面贴装，采用标准2.54 mm间距或用于小型化设计的1.27 mm半间距。<sup>[3](https://www.aratas.com/eu-en/products/switches/dip-switches/dip-switch_features)</sup>带胶带或膜密封的密封型号可在焊接后清洗，并能防尘和防助焊剂；非密封标准型号通常不能清洗。<sup>[4](https://www.nidec-components.com/eu/product/detail/00000603/)</sup><sup> • </sup><sup>[9](https://components.omron.com/us-en/faq/switches/FAQE20084)</sup>

## 历史

DIP开关开发于20世纪70年代初，旨在满足以简便手动方式改变电子系统特性的需求。<sup>[1](https://www.te.com/en/products/switches/intersection/dip-switches-and-their-role-in-the-iot.html)</sup>AMP公司于1975年3月25日提交了一项DIP配置微型开关的早期专利申请（优先权日为1974年8月20日，发明人为约瑟夫·拉鲁·洛克德），并于1977年3月15日获批；该专利描述了一种低矮型开关，其零件堆叠，完全通过水平滑动驱动，触点在开关极上擦拭，以确保电气连接，而不会因反复偏转导致触点永久变形。<sup>[10](https://patents.google.com/patent/US4012608A/en)</sup>同一设计允许操作件与开关顶部齐平或凹入其下，因此可用压敏胶带将其密封，作为廉价的防污盖。<sup>[10](https://patents.google.com/patent/US4012608A/en)</sup>

自20世纪90年代起，其使用逐渐减少：电子设备持续小型化使实体DIP开关对许多消费产品而言过大，而非易失性存储器变得更便宜、更紧凑，使重编程可由软件驱动。DIP开关并未消失，它仍在生产，用于工业、网络和物联网应用，在这些应用中，网络安装前的预配置可减少停机时间。<sup>[1](https://www.te.com/en/products/switches/intersection/dip-switches-and-their-role-in-the-iot.html)</sup>

## 电气特性与操作

DIP开关是信号级器件，不是电源开关。当前产品线的代表性规格包括：24 VDC下25 mA（或6 VDC下100 mA）的开关额定值，100 mA下50 VDC的非开关承载额定值，微负载逻辑电路允许的最小负载为20 mVDC下1 µA，初始接触电阻最大为50至200 mΩ，绝缘电阻为100 MΩ或更高，介电强度为300至500 VAC持续一分钟。<sup>[4](https://www.nidec-components.com/eu/product/detail/00000603/)</sup>操作力大致在0.29至5 N范围内，视系列而定。<sup>[4](https://www.nidec-components.com/eu/product/detail/00000603/)</sup>

**失效模式**集中在触点和驱动器上。波峰焊或不正确的手工焊接期间渗入开关的助焊剂会导致接触电阻过高或不稳定；制造商通过密封结构或能刺穿助焊剂膜的刀口接触机构来应对，并按型号规定焊接温度和时间限制。<sup>[11](https://components.omron.com/us-en/faq/switches/FAQE20096)</sup>灰尘、腐蚀性气体和低负载切换操作会在触点上形成绝缘膜，镀金和等效IP64的密封结构可解决这一问题。<sup>[9](https://components.omron.com/us-en/faq/switches/FAQE20084)</sup>对驱动器施加过大或倾斜的力会使其变形或损坏，因此数据手册限制操作力（例如欧姆龙滑动式为9.8 N），并建议使用圆头工具（如圆珠笔尖）而非尖锐镊子来设定开关。<sup>[12](https://components.omron.com/us-en/ds_related_pdf/A214-E1.pdf)</sup>

## DIP开关与替代方案

主要替代方案是跳线排针、旋转编码开关和存储于非易失性存储器中的软件配置。跳线是一种无源金属分流件，用于短接两个排针引脚；其成本低得多，接触电阻近乎为零，但更改时需要工具和灵巧操作，视觉反馈差，而且分流件在维护期间可能丢失。DIP开关组成本更高，占用更多板空间，但提供清晰的ON/OFF指示、无需工具或仅需单一工具的操作，以及不会遗失的自包含设置。<sup>[13](https://www.hx-switch.eu/dip-switch-vs-jumper-comparison/)</sup>与EEPROM或基于固件的配置相比，DIP开关提供确定性的断电配置，不需要固件、通信协议栈或显示器，且其设置从结构上即可经受电源循环和软件故障。<sup>[14](https://industrialmonitordirect.com/blogs/knowledgebase/dip-switches-in-industrial-automation-configuration-reference)</sup><sup> • </sup><sup>[6](https://www.digikey.com/en/articles/rotary-dip-switches-and-their-application-in-modern-devices)</sup>

## 应用

DIP开关通常见于主板、扩展卡和辅助卡上，用于保存计算机及电路板和调制解调器等外设的配置设置。<sup>[2](https://www.te.com/en/products/switches/dip-switches.html)</sup>有文献记载的应用领域包括：伺服控制器和[温度控制器](https://www.edgepedia.org/zh/temperature-controller)等工厂自动化设备的模式设置，计算机外设和通信设备的配置，以及网络上设备的地址设置，包括物联网安装中每个连接设备通过其开关设定的地址来标识。<sup>[15](https://components.omron.com/us-en/sites/components.omron.com.us/files/ds_related_pdf/A291-E1.pdf)</sup>旋转式DIP开关出现在太阳能逆变器、电动汽车充电站、电池储能系统、PLC、电机控制器、报警面板以及自动售货或包裹柜设备中，技术人员可在现场无需PC即可设置地址和运行参数。<sup>[6](https://www.digikey.com/en/articles/rotary-dip-switches-and-their-application-in-modern-devices)</sup>由于这些开关用于偶尔设定而非频繁使用，需要反复调整的设计可能会在设备部署期内耗尽它们的机械寿命。<sup>[14](https://industrialmonitordirect.com/blogs/knowledgebase/dip-switches-in-industrial-automation-configuration-reference)</sup>

## References

1. [DIP Switch Settings and Configurations, TE Connectivity](https://www.te.com/en/products/switches/intersection/dip-switches-and-their-role-in-the-iot.html)
2. [DIP Switches or Dual Inline Package Switches, TE Connectivity](https://www.te.com/en/products/switches/dip-switches.html)
3. [What is a DIP Switch?, ARATAS (formerly Omron Components), Europe](https://www.aratas.com/eu-en/products/switches/dip-switches/dip-switch_features)
4. [DIP Slide Switch CHS, NIDEC COMPONENTS EUROPE](https://www.nidec-components.com/eu/product/detail/00000603/)
5. [What is the product life of DIP switches?, FAQ ID FAQE20094E, ARATAS Americas](https://components.omron.com/us-en/faq/switches/FAQE20094)
6. [Rotary DIP Switches and Their Application in Modern Devices, DigiKey](https://www.digikey.com/en/articles/rotary-dip-switches-and-their-application-in-modern-devices)
7. [DIP Switches 101, CUI Devices (PDF)](https://www.mouser.com/pdfDocs/DIPSwitches101_CUIDevices.pdf)
8. [What You Need to Know About Switches, DigiKey](https://www.digikey.com/en/articles/what-you-need-to-know-about-switches)
9. [Which DIP switches are dust-resistant?, FAQ ID FAQE20084E, ARATAS Americas](https://components.omron.com/us-en/faq/switches/FAQE20084)
10. [US4012608A, Miniature switch with substantial wiping action, Google Patents](https://patents.google.com/patent/US4012608A/en)
11. [How can I prevent solder flux intrusion?, FAQ ID FAQE20096E, ARATAS Americas](https://components.omron.com/us-en/faq/switches/FAQE20096)
12. [DIP Switch Safety Precautions (A214-E1), Omron Components](https://components.omron.com/us-en/ds_related_pdf/A214-E1.pdf)
13. [DIP Switch vs Jumper: Which Is Better for Industrial Electronics?, Hanxia](https://www.hx-switch.eu/dip-switch-vs-jumper-comparison/)
14. [DIP Switches in Industrial Devices: Setup and Applications, Industrial Monitor Direct](https://industrialmonitordirect.com/blogs/knowledgebase/dip-switches-in-industrial-automation-configuration-reference)
15. [Basics of DIP Switches white paper (A291-E1), Omron Components](https://components.omron.com/us-en/sites/components.omron.com.us/files/ds_related_pdf/A291-E1.pdf)

---
*Initially written Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 计算机硬件 › Boards, peripherals & form factors › Boards & peripherals overview

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/dip-switch

English original: https://www.edgepedia.org/dip-switch
