A selector switch, manufactured by SA (Part ID: SA), is an electromechanical device designed to allow users to select between multiple circuit paths or functions. It typically features multiple positions, enabling control over various operations in a circuit. Selector switches are widely used in industrial control panels, machinery, and consumer electronics for their reliability and ease of use.
The pin configuration of a selector switch depends on its contact configuration. Below is an example for a 3-position SPDT selector switch:
Pin Number | Description |
---|---|
1 | Common terminal (COM) |
2 | Normally Open (NO) terminal for Position 1 |
3 | Normally Open (NO) terminal for Position 2 |
For a DPDT selector switch, the pin configuration is as follows:
Pin Number | Description |
---|---|
1 | Common terminal for Pole 1 (COM1) |
2 | Normally Open (NO) terminal for Pole 1, Position 1 |
3 | Normally Open (NO) terminal for Pole 1, Position 2 |
4 | Common terminal for Pole 2 (COM2) |
5 | Normally Open (NO) terminal for Pole 2, Position 1 |
6 | Normally Open (NO) terminal for Pole 2, Position 2 |
Below is an example of using a 3-position SPDT selector switch with an Arduino UNO to toggle between three LEDs.
// Define pin connections for the selector switch and LEDs
const int switchPin1 = 2; // NO terminal for Position 1
const int switchPin2 = 3; // NO terminal for Position 2
const int led1 = 8; // LED for Position 1
const int led2 = 9; // LED for Position 2
const int led3 = 10; // LED for Position 3 (default)
// Setup function to initialize pins
void setup() {
pinMode(switchPin1, INPUT_PULLUP); // Enable internal pull-up resistor
pinMode(switchPin2, INPUT_PULLUP); // Enable internal pull-up resistor
pinMode(led1, OUTPUT);
pinMode(led2, OUTPUT);
pinMode(led3, OUTPUT);
}
// Main loop to read switch state and control LEDs
void loop() {
// Read the state of the selector switch
bool position1 = digitalRead(switchPin1) == LOW; // Active LOW
bool position2 = digitalRead(switchPin2) == LOW; // Active LOW
// Control LEDs based on switch position
if (position1) {
digitalWrite(led1, HIGH); // Turn on LED1
digitalWrite(led2, LOW);
digitalWrite(led3, LOW);
} else if (position2) {
digitalWrite(led1, LOW);
digitalWrite(led2, HIGH); // Turn on LED2
digitalWrite(led3, LOW);
} else {
digitalWrite(led1, LOW);
digitalWrite(led2, LOW);
digitalWrite(led3, HIGH); // Default to LED3
}
}
Switch Not Functioning:
Intermittent Operation:
Incorrect Position Detection:
Overheating:
Q: Can I use a selector switch for AC circuits?
A: Yes, as long as the switch's voltage and current ratings are suitable for the AC circuit.
Q: How do I know which position the switch is in?
A: Most selector switches have a physical indicator or detent mechanism to show the current position.
Q: Can I use a selector switch with more than two poles?
A: Yes, multi-pole selector switches are available for applications requiring multiple independent circuits.
Q: Is the selector switch waterproof?
A: Some models are designed to be waterproof or weather-resistant. Check the product specifications for details.