









The 22mm pushbutton typically has screw terminals or quick-connect terminals for wiring. Below is a general description of the pin configuration:
| Pin Label | Description |
|---|---|
| NO | Normally Open contact terminal |
| NC | Normally Closed contact terminal |
| COM | Common terminal for the switch |
Note: The exact pin configuration may vary depending on the manufacturer. Always refer to the datasheet for your specific model.
Mounting the Pushbutton:
Wiring the Pushbutton:
Connecting to an Arduino UNO (Example):
// Example code for using a 22mm pushbutton with Arduino UNO
const int buttonPin = 2; // Pin connected to the pushbutton
const int ledPin = 13; // Pin connected to the onboard LED
int buttonState = 0; // Variable to store the button state
void setup() {
pinMode(buttonPin, INPUT); // Set the button pin as input
pinMode(ledPin, OUTPUT); // Set the LED pin as output
digitalWrite(ledPin, LOW); // Ensure the LED is off initially
}
void loop() {
buttonState = digitalRead(buttonPin); // Read the state of the button
if (buttonState == HIGH) {
// If the button is pressed, turn on the LED
digitalWrite(ledPin, HIGH);
} else {
// If the button is not pressed, turn off the LED
digitalWrite(ledPin, LOW);
}
}
The pushbutton does not activate the circuit:
The circuit remains active even when the button is not pressed:
The pushbutton feels stuck or unresponsive:
Q: Can I use a 22mm pushbutton for AC circuits?
A: Yes, as long as the pushbutton's voltage and current ratings are suitable for the AC circuit.
Q: How do I choose between NO and NC configurations?
A: Use NO for circuits that should activate when the button is pressed. Use NC for circuits that should deactivate when the button is pressed.
Q: Can I use the pushbutton outdoors?
A: Only if the pushbutton has an appropriate IP rating (e.g., IP65 or higher) for outdoor use.