AI

The **KADS-2-R/Q** refers to a specific series of industrial **DIP Switches** (Dual In-line Package) manufactured by companies like *Kingbright* or *Excel Cell Electronic (ECE)*. These components are used to manually set binary codes or configurations on a printed circuit board (PCB).
---
## Technical Specifications
The "2" in the part number typically denotes a **2-position** configuration (two individual slide switches), and the suffixes "R" or "Q" usually refer to the packaging or lead style (Right-angle vs. Straight/Flush).
| Feature | Specification |
| :--- | :--- |
| **Type** | Slide Type DIP Switch |
| **Number of Positions** | 2 |
| **Pitch** | 2.54mm (0.1 inch) - Standard breadboard compatible |
| **Contact Rating** | 25mA, 24VDC (Switching) / 100mA, 50VDC (Non-switching) |
| **Contact Resistance** | 50mΩ Max |
| **Insulation Resistance** | 100MΩ Min at 500VDC |
| **Operating Temperature** | -25°C to +70°C |
---
## Electronic Composition
These switches are electromechanical devices consisting of the following key parts:
### 1. Housing (Base and Cover)
Typically made of high-temperature thermoplastic (UL94V-0 rated). This protects the internal contacts during soldering processes (especially wave soldering).
### 2. Actuators (Sliders)
The white plastic tabs that the user moves. In the "R" or "Q" series:
* **Raised Actuators:** Easy to move with a fingernail.
* **Recessed Actuators:** Require a small tool (like a screwdriver) to move, preventing accidental changes.
### 3. Contact System
The internal mechanism usually uses **Gold-plated contacts** over Nickel and Brass. Gold is used because:
* It prevents oxidation.
* It ensures low contact resistance over a long lifespan (typically 2,000 to 5,000 cycles).
### 4. Terminals (Pins)
* **KADS-2:** Usually denotes standard through-hole pins.
* **Lead Plating:** Tin or Gold flash to ensure easy soldering to the PCB.
---
## Common Use Cases
The KADS-2 series is frequently found in:
1. **Address Setting:** Configuring the ID of a device on a bus (like RS-485 or DMX).
2. **Mode Selection:** Switching between different modes of operation (e.g., Test Mode vs. Normal Mode).
3. **Frequency Tuning:** Setting hard-coded dividers in timing circuits.
```cpp
// Example: Reading a 2-position DIP switch on an Arduino
const int dipPin1 = 2;
const int dipPin2 = 3;
void setup() {
pinMode(dipPin1, INPUT_PULLUP); // Use internal pull-up resistors
pinMode(dipPin2, INPUT_PULLUP);
Serial.begin(9600);
}
void loop() {
int val1 = digitalRead(dipPin1);
int val2 = digitalRead(dipPin2);
// Logic based on binary state (00, 01, 10, 11)
}
```
- ⤷
What is the difference between the R and Q suffixes in this series?
- ⤷ How do I calculate the pull-up resistor value for a DIP switch?
- ⤷ Can these switches be used for high-current power switching?