AI

The **RG1-403N-R15** is a specific type of **Rotary Coded Switch** (often categorized as a DIP rotary switch) manufactured by companies like **Copal Electronics** (Nidec). These components are used to manually set digital values on a circuit board.
---
### 1. Key Technical Specifications
The part number describes the physical and electrical characteristics of the switch:
| Feature | Specification |
| :--- | :--- |
| **Component Type** | Rotary Coded Switch |
| **Code Type** | Real Code (Binary Coded Decimal - BCD) |
| **Number of Positions** | 10 Positions (0-9) |
| **Actuator Style** | Flat / Screwdriver slot (Flush) |
| **Terminal Type** | Through-hole (PC Pin) |
| **Voltage Rating** | 50V DC (Non-switching) / 5V DC (Switching) |
| **Current Rating** | 100mA (Non-switching) / 100mA (Switching) |
---
### 2. Functional Description
This part functions as a hardware interface to convert a physical rotation into a 4-bit digital output.
* **BCD Logic:** As you turn the dial from 0 to 9, the internal contacts close in specific combinations to represent the number in binary.
* **Terminals:** It typically features 5 pins:
* **1 Common (C):** The input voltage.
* **4 Output Pins (1, 2, 4, 8):** Representing the powers of 2.
* **Real Code vs. Complement Code:** This model uses **Real Code**, meaning a "High" signal (1) is sent to the output pins corresponding to the selected number.
---
### 3. Truth Table (Output Logic)
For a 10-position BCD Real Code switch, the logic follows this pattern:
| Position | Pin 8 | Pin 4 | Pin 2 | Pin 1 |
| :---: | :---: | :---: | :---: | :---: |
| **0** | OFF | OFF | OFF | OFF |
| **1** | OFF | OFF | OFF | **ON** |
| **2** | OFF | OFF | **ON** | OFF |
| **3** | OFF | OFF | **ON** | **ON** |
| **...** | ... | ... | ... | ... |
| **9** | **ON** | OFF | OFF | **ON** |
---
### 4. Applications
The RG1-403N-R15 is commonly used in industrial and telecommunications equipment for:
* **Address Setting:** Setting the unique ID for a device on a bus (e.g., RS-485 or CAN bus).
* **Mode Selection:** Choosing between different operational presets (e.g., Baud rate selection).
* **Configuration:** Hard-wiring settings that shouldn't be easily changed by an end-user without opening the casing.
---
### 5. Mechanical & Environmental Characteristics
* **Washable:** Most "RG" series switches are sealed (O-ring) to allow for wave soldering and board washing without damaging the internal contacts.
* **Size:** Compact footprint, usually around 10mm x 10mm.
* **Durability:** Rated for approximately 10,000 to 20,000 steps (rotations).
- ⤷
What is the difference between 'Real Code' and 'Complement Code' in rotary switches?
- ⤷ How do I wire this switch to an Arduino or Microcontroller?
- ⤷ Are there Surface Mount (SMD) versions of the RG1-403N-R15?