

A push button switch is a momentary switch that completes an electrical circuit when pressed and breaks the circuit when released. It is widely used in electronic devices for user input, such as turning devices on/off, resetting systems, or triggering specific actions. Its simple design and functionality make it a fundamental component in both hobbyist and professional electronics projects.








Below are the general technical specifications for a standard push button switch. Note that specific values may vary depending on the manufacturer and model.
| Parameter | Specification |
|---|---|
| Type | Momentary (Normally Open or Closed) |
| Operating Voltage | 3V to 24V DC |
| Operating Current | 10mA to 50mA (typical) |
| Contact Resistance | ≤ 50 mΩ |
| Insulation Resistance | ≥ 100 MΩ |
| Mechanical Life | 100,000 to 1,000,000 cycles |
| Operating Temperature | -20°C to +70°C |
A standard push button switch typically has two or four pins. The table below describes the pin configuration:
| Pin Number | Description |
|---|---|
| 1 | Terminal 1 of the switch |
| 2 | Terminal 2 of the switch |
| 3 (optional) | Terminal 3 (used in DPST or DPDT switches) |
| 4 (optional) | Terminal 4 (used in DPST or DPDT switches) |
For a basic momentary push button, only two pins are used. When the button is pressed, the two pins are electrically connected.
Below is an example of how to use a push button switch with an Arduino UNO to toggle an LED:
// Define pin numbers
const int buttonPin = 2; // Push button connected to digital pin 2
const int ledPin = 13; // LED connected to digital pin 13
// Variable to store button state
int buttonState = 0;
void setup() {
pinMode(buttonPin, INPUT); // Set button pin as input
pinMode(ledPin, OUTPUT); // Set LED pin as output
}
void loop() {
// Read the state of the push button
buttonState = digitalRead(buttonPin);
// If button is pressed, turn on the LED
if (buttonState == HIGH) {
digitalWrite(ledPin, HIGH); // Turn LED on
} else {
digitalWrite(ledPin, LOW); // Turn LED off
}
}
Note: Use a pull-down resistor (e.g., 10 kΩ) between the button pin and ground to ensure a stable LOW state when the button is not pressed.
Button Not Responding:
Erratic Behavior (Button Bouncing):
LED or Load Not Turning On:
Q: Can I use a push button switch for AC circuits?
A: Yes, but ensure the switch is rated for the AC voltage and current you plan to use.
Q: What is the difference between a momentary and a latching switch?
A: A momentary switch only stays in its active state while pressed, whereas a latching switch maintains its state until pressed again.
Q: How do I debounce a push button in software?
A: Use a delay or a state-checking algorithm in your code to filter out rapid changes in the button state caused by bouncing.
Q: Can I use a push button switch with a Raspberry Pi?
A: Yes, connect the button to a GPIO pin and use a pull-up or pull-down resistor to stabilize the signal.
This concludes the documentation for the push button switch.