

A 3 pin switch is an electrical component used to control the flow of current in a circuit. It typically features three terminals: one for input, one for output, and one for grounding or a second output. This configuration allows for versatile applications, such as single-pole, double-throw (SPDT) switching. The 3 pin switch is widely used in electronic circuits for toggling between two states or outputs, making it a fundamental component in both simple and complex systems.








The 3 pin switch has the following pin configuration:
| Pin Number | Name | Description |
|---|---|---|
| 1 | Common (COM) | The input terminal where the current enters the switch. |
| 2 | Normally Open (NO) | The output terminal that connects to the common pin when the switch is activated. |
| 3 | Normally Closed (NC) | The output terminal that connects to the common pin when the switch is not activated. |
Below is an example of how to use a 3 pin switch with an Arduino UNO to toggle an LED:
// Define pin numbers
const int switchPin = 2; // Pin connected to the Common (COM) pin of the switch
const int ledPin = 13; // Pin connected to the LED
void setup() {
pinMode(switchPin, INPUT_PULLUP); // Set switch pin as input with pull-up resistor
pinMode(ledPin, OUTPUT); // Set LED pin as output
}
void loop() {
int switchState = digitalRead(switchPin); // Read the state of the switch
if (switchState == LOW) { // If the switch is pressed (COM connected to NO)
digitalWrite(ledPin, HIGH); // Turn on the LED
} else { // If the switch is not pressed (COM connected to NC)
digitalWrite(ledPin, LOW); // Turn off the LED
}
}
INPUT_PULLUP mode is used to simplify the circuit by enabling the internal pull-up resistor of the Arduino.Switch Not Working:
LED Always On or Off:
Switch Generates Noise in Digital Circuits:
Switch Overheats:
Q1: Can I use a 3 pin switch for AC circuits?
A1: Yes, as long as the switch's voltage and current ratings are suitable for the AC circuit.
Q2: What is the difference between Normally Open (NO) and Normally Closed (NC)?
A2: Normally Open (NO) means the circuit is open (disconnected) when the switch is not activated, while Normally Closed (NC) means the circuit is closed (connected) when the switch is not activated.
Q3: How do I test a 3 pin switch with a multimeter?
A3: Set the multimeter to continuity mode. Connect one probe to the Common (COM) pin and the other to the Normally Open (NO) or Normally Closed (NC) pin. Toggle the switch to check continuity.
Q4: Can I use all three pins simultaneously?
A4: Yes, you can use the Common (COM) pin to toggle between the Normally Open (NO) and Normally Closed (NC) pins, depending on the switch's position.