

The Single Pole Double Throw (SPDT) switch, manufactured by Generic (Part ID: SPDT), is a versatile electrical switch designed to connect a single input to one of two outputs. This functionality allows users to toggle between two different circuits or states. SPDT switches are widely used in various applications, including circuit selection, signal routing, and power control.








The SPDT switch is a mechanical switch with three terminals: one common terminal (COM) and two output terminals (NO and NC). Below are the key technical details:
The SPDT switch has three terminals, as described in the table below:
| Pin Name | Description |
|---|---|
| COM | Common terminal; connects to the input. |
| NO | Normally Open; connected to COM when the switch is activated. |
| NC | Normally Closed; connected to COM when the switch is not activated. |
The SPDT switch can be used with an Arduino UNO to toggle between two LEDs. Below is an example circuit and code:
// Define pin numbers for the SPDT switch and LEDs
const int switchPin = 2; // SPDT switch COM terminal connected to pin 2
const int led1Pin = 3; // LED 1 connected to NO terminal
const int led2Pin = 4; // LED 2 connected to NC terminal
void setup() {
pinMode(switchPin, INPUT_PULLUP); // Set switch pin as input with pull-up resistor
pinMode(led1Pin, OUTPUT); // Set LED 1 pin as output
pinMode(led2Pin, OUTPUT); // Set LED 2 pin as output
}
void loop() {
int switchState = digitalRead(switchPin); // Read the state of the switch
if (switchState == LOW) {
// If the switch is toggled to NO, turn on LED 1 and turn off LED 2
digitalWrite(led1Pin, HIGH);
digitalWrite(led2Pin, LOW);
} else {
// If the switch is toggled to NC, turn on LED 2 and turn off LED 1
digitalWrite(led1Pin, LOW);
digitalWrite(led2Pin, HIGH);
}
}
Switch Not Functioning Properly
LEDs Not Lighting Up in Arduino Circuit
Switch Generates Noise in Digital Circuits
Switch Overheats
Q: Can the SPDT switch handle AC and DC currents?
A: Yes, the SPDT switch can handle both AC and DC currents, but ensure the voltage and current ratings are not exceeded.
Q: How do I debounce an SPDT switch?
A: You can use a capacitor in parallel with the switch or implement a software debounce routine in your microcontroller code.
Q: Can I use an SPDT switch to reverse motor direction?
A: Yes, an SPDT switch can be used in conjunction with additional components (e.g., H-bridge) to reverse motor direction.
Q: What is the difference between NO and NC terminals?
A: The NO (Normally Open) terminal connects to COM when the switch is activated, while the NC (Normally Closed) terminal connects to COM when the switch is not activated.