The Double Pole 2POS Rotary Switch (MRT22) by NKK Switches is a versatile component designed to control two separate circuits simultaneously. With its two-position functionality, it can be used for on/off operations or other switching functions. This rotary switch is commonly used in various applications, including audio equipment, industrial machinery, and control panels.
Specification | Value |
---|---|
Manufacturer | NKK Switches |
Part ID | MRT22 |
Number of Poles | 2 |
Number of Positions | 2 |
Voltage Rating | 125V AC |
Current Rating | 0.3A |
Contact Resistance | 50 mΩ max |
Insulation Resistance | 100 MΩ min at 500V DC |
Dielectric Strength | 500V AC for 1 minute |
Operating Temperature | -30°C to +85°C |
Pin Number | Description |
---|---|
1 | Pole 1 Common |
2 | Pole 1 Position 1 |
3 | Pole 1 Position 2 |
4 | Pole 2 Common |
5 | Pole 2 Position 1 |
6 | Pole 2 Position 2 |
To demonstrate the use of the MRT22 rotary switch with an Arduino UNO, we will create a simple circuit to read the switch positions and display the status on the serial monitor.
Arduino UNO MRT22 Rotary Switch
----------- -------------------
5V ----------- Pin 1 (Pole 1 Common)
GND ----------- Pin 4 (Pole 2 Common)
D2 ----------- Pin 2 (Pole 1 Position 1)
D3 ----------- Pin 3 (Pole 1 Position 2)
D4 ----------- Pin 5 (Pole 2 Position 1)
D5 ----------- Pin 6 (Pole 2 Position 2)
// Define pin connections
const int pole1Pos1 = 2;
const int pole1Pos2 = 3;
const int pole2Pos1 = 4;
const int pole2Pos2 = 5;
void setup() {
// Initialize serial communication
Serial.begin(9600);
// Set pin modes
pinMode(pole1Pos1, INPUT);
pinMode(pole1Pos2, INPUT);
pinMode(pole2Pos1, INPUT);
pinMode(pole2Pos2, INPUT);
}
void loop() {
// Read switch positions
int pole1Pos1State = digitalRead(pole1Pos1);
int pole1Pos2State = digitalRead(pole1Pos2);
int pole2Pos1State = digitalRead(pole2Pos1);
int pole2Pos2State = digitalRead(pole2Pos2);
// Display switch positions on serial monitor
Serial.print("Pole 1 Position 1: ");
Serial.println(pole1Pos1State);
Serial.print("Pole 1 Position 2: ");
Serial.println(pole1Pos2State);
Serial.print("Pole 2 Position 1: ");
Serial.println(pole2Pos1State);
Serial.print("Pole 2 Position 2: ");
Serial.println(pole2Pos2State);
// Add a small delay to avoid flooding the serial monitor
delay(500);
}
Q: Can the MRT22 switch be used for DC applications? A: Yes, the MRT22 switch can be used for both AC and DC applications, provided the voltage and current ratings are not exceeded.
Q: How do I implement debouncing in my circuit? A: Debouncing can be implemented using hardware (e.g., capacitors and resistors) or software (e.g., delay functions in code) techniques.
Q: What is the maximum operating temperature for the MRT22 switch? A: The maximum operating temperature for the MRT22 switch is +85°C.
This documentation provides a comprehensive guide to the Double Pole 2POS Rotary Switch (MRT22) by NKK Switches. Whether you are a beginner or an experienced user, this guide will help you understand, use, and troubleshoot this versatile component effectively.