

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.








The SWITCH-MOMENTARY-2 is a single-pole, single-throw (SPST) switch that operates momentarily when pressed. Below are its key technical details:
| Parameter | Specification |
|---|---|
| Switch Type | Momentary (SPST) |
| Operating Voltage | 3V to 24V DC |
| Maximum Current Rating | 50mA |
| Contact Resistance | ≤ 50 mΩ |
| Insulation Resistance | ≥ 100 MΩ at 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. The table below describes the pin configuration:
| Pin | Description |
|---|---|
| Pin 1 | Connected to one side of the circuit |
| Pin 2 | Connected to the other side of the circuit |
When the switch is pressed, the two pins are electrically connected, completing the circuit.
Below is an example of how to use the SWITCH-MOMENTARY-2 to control an LED with an Arduino UNO:
// Define the pin numbers
const int switchPin = 2; // Pin connected to the momentary switch
const int ledPin = 13; // Pin connected to the LED
void setup() {
pinMode(switchPin, INPUT_PULLUP); // Configure the switch pin as input with pull-up
pinMode(ledPin, OUTPUT); // Configure the LED pin as output
}
void loop() {
int switchState = digitalRead(switchPin); // Read the state of the switch
if (switchState == LOW) { // Check if the switch is pressed (LOW due to pull-up)
digitalWrite(ledPin, HIGH); // Turn on the LED
} else {
digitalWrite(ledPin, LOW); // Turn off the LED
}
}
Note: The INPUT_PULLUP mode is used to enable the internal pull-up resistor, ensuring the switch pin is HIGH when not pressed.
Switch Not Responding
Switch Bouncing
Switch Overheating
Intermittent Operation
Q: Can I use the SWITCH-MOMENTARY-2 for AC circuits?
A: The switch is primarily designed for low-voltage DC circuits. Using it in AC circuits is not recommended unless the voltage and current ratings are strictly adhered to.
Q: How do I debounce the switch in software?
A: You can use a delay or a state-checking algorithm in your code to filter out bouncing signals. For example, wait for 10-50ms after detecting a press before registering the input.
Q: Can I use this switch to directly control a motor?
A: No, the switch cannot handle high currents required by motors. Use it to control a relay or transistor that drives the motor instead.
Q: What happens if I reverse the pin connections?
A: The switch is non-polarized, so reversing the pin connections will not affect its operation.