DIP switch
A miniature switch designed to be attached to a circuit board to customize the behavior of the circuit.
DIP switch: tiny circuit board switch for on-site configuration
A DIP switch is a small electrical switch, typically between 8 and 12 millimeters in length, mounted directly onto a printed circuit board (PCB). The acronym stands for Dual In-line Package, referring to the two parallel rows of pins that plug into the board. Each individual switch within the package controls a single circuit path, allowing you to configure the behavior of the connected equipment without soldering or replacing components. A single DIP switch package often contains between two and twelve independent switches, though eight-switch units are most common in industrial equipment.
DIP switches let operators customize device behavior in the field. You might flip them to select a communication protocol, set a baud rate on a serial interface, enable or disable features, adjust sensitivity thresholds, or configure network parameters. Because they are mechanical switches, not programmable memory, they retain their settings even when power is removed. This makes them reliable for hardware-level configuration in environments where software changes are not practical or not permitted.
Construction and common problems
Most DIP switches use a sliding or rocker mechanism to connect or break contact between pairs of pins. The switches are typically rated for around 100,000 mechanical cycles, which is adequate for occasional field configuration but can fail if toggled repeatedly or subjected to vibration. Common failure modes include contact corrosion, where the internal metal contacts oxidize and create high resistance or no connection at all; and mechanical wear, where the slider becomes stiff or the detent fails. Moisture and dust ingress also degrades contacts over time, particularly in harsh industrial environments.
The main limitation of DIP switches is their small size, which makes them difficult to operate by hand and easy to flip accidentally. Some equipment locations bury them inside enclosures to prevent unauthorized changes, while others add protective covers or guard rails. Because each switch is independent, a misconfiguration on even one switch can cause the entire system to malfunction, and troubleshooting often requires checking the manual to understand which switch does what.
DIP switches remain common in programmable logic controllers (PLCs), industrial timers, sensors, networking equipment, and older motor controllers because they provide instant, permanent configuration changes without requiring firmware uploads or network access. Newer devices increasingly use software configuration menus or cloud-based settings, but DIP switches persist wherever manufacturers prioritize simplicity, cost reduction, and guaranteed field-serviceability over user-friendliness.