

The SWITCH-MOMENTARY-2 is a simple yet versatile electronic component designed to close a circuit only while it is being pressed. This momentary switch is commonly used for temporary actions, such as triggering a function, activating a device, or sending a signal in a circuit. Its compact design and ease of use make it a popular choice in a wide range of applications, including consumer electronics, prototyping, and industrial control systems.








Below are the key technical details for the SWITCH-MOMENTARY-2:
| Parameter | Value |
|---|---|
| Switch Type | Momentary (Normally Open) |
| Operating Voltage | 3V to 24V DC |
| Maximum Current | 50mA |
| Contact Resistance | ≤ 50 mΩ |
| Insulation Resistance | ≥ 100 MΩ @ 500V DC |
| Operating Temperature | -20°C to +70°C |
| Mechanical Life | 100,000 cycles |
| Dimensions | 6mm x 6mm x 5mm |
The SWITCH-MOMENTARY-2 typically has two pins, as shown in the table below:
| Pin | Description |
|---|---|
| Pin 1 | Connects to one side of the circuit |
| Pin 2 | Connects to the other side of the circuit |
When the switch is pressed, the two pins are electrically connected, allowing current to flow through the circuit.
Below is an example of how to use the SWITCH-MOMENTARY-2 with an Arduino UNO to toggle an LED:
// Define pin numbers
const int switchPin = 2; // Pin connected to the momentary switch
const int ledPin = 13; // Pin connected to the LED
// Variable to store the LED state
bool ledState = false;
void setup() {
pinMode(switchPin, INPUT_PULLUP); // Configure switch pin as input with pull-up
pinMode(ledPin, OUTPUT); // Configure LED pin as output
}
void loop() {
// Check if the switch is pressed
if (digitalRead(switchPin) == LOW) {
delay(50); // Debounce delay
if (digitalRead(switchPin) == LOW) {
ledState = !ledState; // Toggle LED state
digitalWrite(ledPin, ledState); // Update LED
while (digitalRead(switchPin) == LOW); // Wait for switch release
}
}
}
Explanation:
Switch Not Responding:
Unstable or Erratic Behavior:
Switch Overheating:
LED Not Toggling in Arduino Example:
Q1: Can the SWITCH-MOMENTARY-2 handle AC voltage?
A1: No, this switch is designed for DC circuits only and should not be used with AC voltage.
Q2: Can I use this switch for high-power applications?
A2: No, the switch is rated for a maximum current of 50mA. For high-power applications, use a relay or transistor in conjunction with the switch.
Q3: How do I mount the switch on a PCB?
A3: The switch has through-hole pins that can be soldered directly onto a PCB for secure mounting.
Q4: What is the lifespan of the switch?
A4: The mechanical life of the switch is rated at 100,000 cycles under normal operating conditions.