Stufin
Home Quick Cart Profile

Tactile 4 Pin Push Button Switch - Pack of 5 (12x12x7.3 mm)

Buy Now on Stufin

Operating Voltage

50V DC

Operating Current

1A DC

Contact Resistance

50m (max)

Insulation Resistance

100M (min)

Mechanical Characteristics

Operating Temperature

-20C to 70C

Storage Temperature

-40C to 85C

Vibration Resistance

10Hz to 55Hz, 1mm amplitude

Shock Resistance

100G, 6ms duration

Packaging Information

Pack of 5 switches

Each switch is individually wrapped and protected in an anti-static bag

Dimensions

12x12x7.3 mm (LxWxH)

Weight

2g (approx.)

Certifications and Compliance

RoHS compliant

CE marked

Meets international safety standards for electronic components

Applications

The Tactile 4 Pin Push Button Switch is suitable for a wide range of IoT applications, including

Robotics

Automation systems

Wearable devices

Home automation systems

Industrial control systems

Medical devices

Consumer electronics

By incorporating the Tactile 4 Pin Push Button Switch into your IoT design, you can create a reliable and efficient user interface that provides a tactile feedback experience.

Pin Configuration

  • Tactile 4 Pin Push Button Switch - Pack of 5 (12x12x7.3 mm)
  • Pinout Explanation
  • The Tactile 4 Pin Push Button Switch has a total of 4 pins, labeled as follows:
  • Pin 1: COM (Common)
  • Function: This pin is the common terminal of the switch.
  • Description: The COM pin is connected to the normally open (NO) and normally closed (NC) pins internally.
  • Connection: This pin should be connected to the power source or the input signal.
  • Pin 2: NO (Normally Open)
  • Function: This pin is the normally open terminal of the switch.
  • Description: The NO pin is disconnected from the COM pin when the switch is in its normal state (not pressed).
  • Connection: This pin should be connected to the output or the load that needs to be controlled.
  • Pin 3: NC (Normally Closed)
  • Function: This pin is the normally closed terminal of the switch.
  • Description: The NC pin is connected to the COM pin when the switch is in its normal state (not pressed).
  • Connection: This pin should be connected to the output or the load that needs to be controlled.
  • Pin 4: GND (Ground)
  • Function: This pin is the ground terminal of the switch.
  • Description: The GND pin provides a ground reference for the switch.
  • Connection: This pin should be connected to the ground of the circuit.
  • Connection Structure
  • To connect the Tactile 4 Pin Push Button Switch, follow these steps:
  • 1. Connect Pin 1 (COM) to the power source or input signal: Connect the COM pin to the positive terminal of the power source or the input signal that needs to be controlled.
  • 2. Connect Pin 2 (NO) to the load or output: Connect the NO pin to the load or output that needs to be controlled. When the switch is pressed, the NO pin will connect to the COM pin, allowing current to flow to the load.
  • 3. Connect Pin 3 (NC) to the load or output (optional): If desired, connect the NC pin to the load or output. When the switch is not pressed, the NC pin will connect to the COM pin, allowing current to flow to the load. This provides a normally closed connection.
  • 4. Connect Pin 4 (GND) to the ground of the circuit: Connect the GND pin to the ground of the circuit to provide a ground reference for the switch.
  • Example Connection Diagram
  • Here is an example connection diagram for the Tactile 4 Pin Push Button Switch:
  • ```
  • +------------+
  • | Power |
  • | Source |
  • +------------+
  • |
  • |
  • v
  • +------------+
  • | COM (Pin 1) |
  • +------------+
  • |
  • |
  • v
  • +------------+
  • | NO (Pin 2) |
  • +------------+
  • |
  • |
  • v
  • +------------+
  • | Load/Output |
  • +------------+
  • +------------+
  • | NC (Pin 3) |
  • +------------+
  • |
  • |
  • v
  • +------------+
  • | Load/Output |
  • +------------+
  • +------------+
  • | GND (Pin 4) |
  • +------------+
  • |
  • |
  • v
  • +------------+
  • | Ground |
  • +------------+
  • ```
  • Note: This is a basic connection diagram and may vary depending on the specific application and circuit design.

Code Examples

Tactile 4 Pin Push Button Switch - Pack of 5 (12x12x7.3 mm)
=====================================================
Overview
-----------
The Tactile 4 Pin Push Button Switch is a compact, low-profile switch designed for use in a variety of IoT applications. This switch features a 4-pin interface, a 12x12x7.3 mm compact size, and a tactile feedback mechanism that provides a clear "click" sensation when pressed. The pack includes 5 switches.
Pinout
--------
The switch has the following pinout:
| Pin | Function |
| --- | --- |
| 1   | VCC     |
| 2   | NC (Normally Closed) |
| 3   | NO (Normally Open) |
| 4   | GND     |
Operation
---------
The switch operates by connecting the NO (Normally Open) pin to the VCC pin when pressed, and disconnecting it when released. The NC (Normally Closed) pin is connected to GND when pressed, and disconnected when released.
Code Examples
--------------
### Example 1: Simple Button Press Detection with Arduino
In this example, we'll use the Tactile 4 Pin Push Button Switch to detect button presses with an Arduino board.
```c++
const int buttonPin = 2;    // Pin 2 of Arduino connected to NO pin of switch
const int ledPin = 13;     // Pin 13 of Arduino connected to an LED
void setup() {
  pinMode(buttonPin, INPUT);
  pinMode(ledPin, OUTPUT);
}
void loop() {
  int buttonState = digitalRead(buttonPin);
  if (buttonState == HIGH) {
    digitalWrite(ledPin, HIGH);  // Turn on LED when button is pressed
  } else {
    digitalWrite(ledPin, LOW);  // Turn off LED when button is released
  }
  delay(50);
}
```
### Example 2: Button Press Counter with Raspberry Pi (Python)
In this example, we'll use the Tactile 4 Pin Push Button Switch to count the number of button presses with a Raspberry Pi using Python.
```python
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
button_pin = 17  # Pin 17 of Raspberry Pi connected to NO pin of switch
GPIO.setup(button_pin, GPIO.IN, pull_up_down=GPIO.PUD_UP)
button_presses = 0
while True:
    if GPIO.input(button_pin) == GPIO.LOW:
        button_presses += 1
        print(f"Button pressed {button_presses} times!")
        time.sleep(0.5)  # Debounce time
```
Additional Resources
---------------------
Datasheet: [Insert link to datasheet]
 Schematic: [Insert link to schematic]
Notes
------
Make sure to use a suitable resistor for the LED in the Arduino example.
 In the Raspberry Pi example, ensure that the RPi.GPIO library is installed and imported correctly.
 Debouncing mechanisms may be necessary to prevent multiple counts from a single button press, depending on the application.