Stufin
Home Quick Cart Profile

Tactile Push Button Switch Assorted Kit - 25 Pieces pack

Buy Now

Component Name

Tactile Push Button Switch Assorted Kit - 25 Pieces Pack

Overview

The Tactile Push Button Switch Assorted Kit is a comprehensive pack of 25 pieces of tactile push-button switches, designed to provide a reliable and convenient way to add user input functionality to electronic projects, prototypes, and devices. These switches are perfect for a wide range of applications, including robotics, automation, industrial control, and consumer electronics.

Functionality

The tactile push-button switches in this kit are designed to provide a tactile feedback to the user when pressed. They operate by connecting two circuit traces when the button is pressed, and disconnecting them when the button is released. This functionality allows the switches to act as a digital input device, enabling the user to control various aspects of their project or device.

Key Features

  • Variety of Switch Types: The kit includes a mix of different switch types, each with its own unique characteristics, such as:

Different sizes (6mm, 8mm, 10mm, and 12mm)

Various colors (red, blue, yellow, green, and white)

Different operating forces (100gf, 150gf, and 200gf)

PCB-mount and panel-mount options

  • Tactile Feedback: Each switch provides a clear and distinct tactile feedback when pressed, ensuring the user knows exactly when the switch has been activated.
  • Reliability and Durability: The switches are built with high-quality materials and have a long lifespan, ensuring they can withstand repeated use and provide reliable performance.
  • Easy Installation: The switches are easy to install and can be mounted on a PCB or a panel, making them suitable for a wide range of applications.
  • Compact Design: The compact design of the switches makes them ideal for space-constrained projects, allowing for efficient use of valuable board real estate.
  • RoHS Compliant: The kit meets the Restriction of Hazardous Substances (RoHS) directive, ensuring they are environmentally friendly and safe for use in electronic devices.
  • Complete Kit: The kit includes 25 pieces of tactile push-button switches, providing a comprehensive solution for a wide range of projects and applications.

Technical Specifications

Operating temperature

-20C to 70C

Storage temperature

-30C to 80C

Operating voltage

12V DC (max)

Contact resistance

10m (max)

Insulation resistance

100M (min)

Life expectancy

50,000 cycles (min)

Applications

The Tactile Push Button Switch Assorted Kit is suitable for a wide range of applications, including

Robotics and automation

Industrial control systems

Consumer electronics

Prototyping and development

Educational projects

IoT devices

Conclusion

The Tactile Push Button Switch Assorted Kit - 25 Pieces Pack is a versatile and comprehensive solution for adding user input functionality to electronic projects and devices. With its variety of switch types, tactile feedback, and compact design, this kit is an essential component for any electronic design or prototype.

Pin Configuration

  • Tactile Push Button Switch Assorted Kit - 25 Pieces pack Documentation
  • Overview
  • The Tactile Push Button Switch Assorted Kit is a pack of 25 pieces of push-button switches, designed for use in various electronic projects and applications. These switches are tactile, meaning they provide a distinct tactile feedback when pressed, and are suitable for breadboarding, PCB mounting, or other electronic projects.
  • Pinout Overview
  • The push-button switches in this kit have a standard 4-pin configuration, with two pins for the switch's output and two pins for the switch's input. The pins are labeled as follows:
  • Pinout Description
  • 1. Pin 1: Input (IN)
  • Function: Connects to the power source (VCC) or the input signal.
  • Description: This pin is used to connect the switch to the power source or the input signal that will be affected by the switch's state.
  • 2. Pin 2: Input (IN)
  • Function: Connects to the power source (VCC) or the input signal.
  • Description: This pin is identical to Pin 1 and is used to connect the switch to the power source or the input signal that will be affected by the switch's state.
  • 3. Pin 3: Output (OUT)
  • Function: Connects to the load or the output circuit.
  • Description: This pin provides the output signal from the switch, which is either the same as the input signal (when the switch is closed) or disconnected (when the switch is open).
  • 4. Pin 4: Output (OUT)
  • Function: Connects to the load or the output circuit.
  • Description: This pin is identical to Pin 3 and provides the output signal from the switch, which is either the same as the input signal (when the switch is closed) or disconnected (when the switch is open).
  • Connection Structure
  • To connect the push-button switch, follow these steps:
  • Connect Pin 1 or Pin 2 to the power source (VCC) or the input signal.
  • Connect Pin 3 or Pin 4 to the load or the output circuit.
  • When the switch is pressed, the input signal is connected to the output pins (Pin 3 and Pin 4), allowing the signal to pass through.
  • When the switch is released, the input signal is disconnected from the output pins, interrupting the signal flow.
  • Important Notes
  • The switch is a normally open (NO) type, meaning it is open (disconnected) when not pressed and closed (connected) when pressed.
  • The switch has a built-in pull-up resistor, which means it will pull the output signal high when the switch is open (not pressed).
  • When using the switch with a microcontroller or other digital logic circuits, ensure to use a suitable pull-down resistor to prevent floating inputs.
  • By following these pin descriptions and connection structures, you can effectively use the Tactile Push Button Switch Assorted Kit in your electronic projects.

Code Examples

Tactile Push Button Switch Assorted Kit - 25 Pieces pack
Component Overview
The Tactile Push Button Switch Assorted Kit is a collection of 25 pieces of tactile push-button switches in various sizes and colors. These switches are ideal for use in IoT projects, robotics, and other electronic applications where a tactile feedback is required. The switches are rated for 12V DC and have a current capacity of 50mA.
Pinout
The tactile push-button switches have two terminals, typically marked as COM (Common) and NO (Normally Open). The COM terminal is connected to the power source, and the NO terminal is connected to the device or circuit being controlled.
Example 1: Basic Connection and Debouncing
In this example, we will connect the tactile push-button switch to a digital input pin on an Arduino board and use it to control an LED.
Hardware:
Tactile Push Button Switch (from the assorted kit)
 Arduino Board (e.g., Arduino Uno)
 Breadboard and Jumper Wires
 LED
 1k Resistor
Code:
```c++
const int buttonPin = 2;     // Digital input pin for the button
const int ledPin = 13;      // Digital output pin for the LED
int buttonState = 0;        // Variable to store the button state
void setup() {
  pinMode(buttonPin, INPUT);
  pinMode(ledPin, OUTPUT);
}
void loop() {
  buttonState = digitalRead(buttonPin);
  if (buttonState == HIGH) {
    digitalWrite(ledPin, HIGH); // Turn on the LED when the button is pressed
  } else {
    digitalWrite(ledPin, LOW);  // Turn off the LED when the button is not pressed
  }
  delay(50); // Debounce delay to prevent multiple triggers
}
```
Example 2: Using the Switch with a MicroPython-based Microcontroller
In this example, we will connect the tactile push-button switch to a MicroPython-based microcontroller, such as the ESP32 or ESP8266, and use it to trigger a WiFi-connected event.
Hardware:
Tactile Push Button Switch (from the assorted kit)
 ESP32 or ESP8266 Microcontroller Board
 Breadboard and Jumper Wires
 WiFi Module (optional)
Code:
```python
import machine
import uart
# Define the pin for the button
button_pin = machine.Pin(0, machine.Pin.IN, machine.Pin.PULL_UP)
# Define the WiFi module (if used)
wifi = uart.UART(0, 9600)
def button_press_handler(pin):
    # Trigger an event when the button is pressed
    print("Button pressed!")
    if wifi:
        wifi.write("Button pressed! ")
# Set up the button as an interrupt
button_pin.irq(trigger=machine.Pin.IRQ_FALLING, handler=button_press_handler)
while True:
    # Wait for the button press event
    machine.sleep(0.01)
```
Example 3: Using the Switch with a Raspberry Pi
In this example, we will connect the tactile push-button switch to a Raspberry Pi and use it to control a Python script.
Hardware:
Tactile Push Button Switch (from the assorted kit)
 Raspberry Pi
 Breadboard and Jumper Wires
Code:
```python
import RPi.GPIO as GPIO
import time
# Set up the GPIO library
GPIO.setmode(GPIO.BCM)
# Define the pin for the button
button_pin = 17
# Set up the button as an input
GPIO.setup(button_pin, GPIO.IN, pull_up_down=GPIO.PUD_UP)
while True:
    if GPIO.input(button_pin) == False:
        print("Button pressed!")
        # Trigger an event or run a script when the button is pressed
        time.sleep(0.01)
```
These examples demonstrate how to use the Tactile Push Button Switch Assorted Kit in various contexts, including Arduino, MicroPython-based microcontrollers, and Raspberry Pi. The code examples provide a basic understanding of how to connect and use the switches in IoT projects.