

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 | Value |
|---|---|
| Operating Voltage | 3V to 24V DC |
| Maximum Current Rating | 50mA |
| Contact Resistance | ≤ 50 mΩ |
| Insulation Resistance | ≥ 100 MΩ |
| Operating Temperature | -20°C to +70°C |
| Mechanical Lifespan | 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, allowing current to flow through the circuit.
Below is an example of how to use the SWITCH-MOMENTARY-2 to control an LED with an Arduino UNO:
// Define pin connections
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 switch pin as input with pull-up resistor
pinMode(ledPin, OUTPUT); // Configure LED pin as output
}
void loop() {
int switchState = digitalRead(switchPin); // Read the state of the switch
if (switchState == LOW) { // Switch is pressed (LOW due to pull-up resistor)
digitalWrite(ledPin, HIGH); // Turn on the LED
} else {
digitalWrite(ledPin, LOW); // Turn off the LED
}
}
Note: The INPUT_PULLUP mode is used to simplify the circuit by enabling the internal pull-up resistor of the Arduino, eliminating the need for an external resistor.
Switch Not Responding
Unstable or Erratic Behavior
Switch Overheating
Q: Can the SWITCH-MOMENTARY-2 handle AC voltage?
A: No, this switch is designed for low-voltage DC applications only.
Q: How do I debounce the switch in software?
A: You can use a delay or a debounce library in your microcontroller code to filter out noise caused by switch bouncing.
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.
By following this documentation, you can effectively integrate the SWITCH-MOMENTARY-2 into your projects and troubleshoot any issues that arise.