Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use Push button: Examples, Pinouts, and Specs

Image of Push button
Cirkit Designer LogoDesign with Push button in Cirkit Designer

Introduction

The UTBM PushButton1 is a momentary switch designed to complete an electrical circuit when pressed and break the circuit when released. This simple yet versatile component is widely used for user input in electronic devices, such as triggering actions, resetting systems, or navigating menus. Its compact design and reliability make it a staple in both hobbyist and professional electronic projects.

Explore Projects Built with Push button

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Raspberry Pi 5 Pushbutton Input Circuit
Image of lab 1: A project utilizing Push button in a practical application
This circuit features a Raspberry Pi 5 connected to a pushbutton. The pushbutton is powered by the 3.3V pin of the Raspberry Pi and its output is connected to GPIO 15, allowing the Raspberry Pi to detect button presses.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino MKR WiFi 1010 LoRa-Enabled Pushbutton Message Sender
Image of Emisor LORAWAN: A project utilizing Push button in a practical application
This circuit features an Arduino MKR WiFi 1010 connected to a pushbutton. When the button is pressed, the Arduino detects the input and sends a 'button pressed' message using LoRa communication. The purpose of this circuit is to wirelessly transmit a signal upon a button press, potentially for remote control or notification purposes.
Cirkit Designer LogoOpen Project in Cirkit Designer
Battery-Powered Multi-Button Controller with Seeed Studio nRF52840
Image of RetroBle Atari Controller: A project utilizing Push button in a practical application
This circuit consists of five pushbuttons connected to a Seeed Studio nRF52840 microcontroller, which is powered by a Polymer Lithium Ion Battery. Each pushbutton is connected to a different GPIO pin on the microcontroller, allowing for individual button press detection and processing.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO Pushbutton Input with 10k Ohm Resistor
Image of floating_03: A project utilizing Push button in a practical application
This circuit features an Arduino UNO microcontroller connected to a pushbutton and a 10k Ohm resistor. The pushbutton is powered by the 5V pin of the Arduino, and its state is read through digital pin D2, with the resistor providing a pull-down to ground.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with Push button

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of lab 1: A project utilizing Push button in a practical application
Raspberry Pi 5 Pushbutton Input Circuit
This circuit features a Raspberry Pi 5 connected to a pushbutton. The pushbutton is powered by the 3.3V pin of the Raspberry Pi and its output is connected to GPIO 15, allowing the Raspberry Pi to detect button presses.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Emisor LORAWAN: A project utilizing Push button in a practical application
Arduino MKR WiFi 1010 LoRa-Enabled Pushbutton Message Sender
This circuit features an Arduino MKR WiFi 1010 connected to a pushbutton. When the button is pressed, the Arduino detects the input and sends a 'button pressed' message using LoRa communication. The purpose of this circuit is to wirelessly transmit a signal upon a button press, potentially for remote control or notification purposes.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of RetroBle Atari Controller: A project utilizing Push button in a practical application
Battery-Powered Multi-Button Controller with Seeed Studio nRF52840
This circuit consists of five pushbuttons connected to a Seeed Studio nRF52840 microcontroller, which is powered by a Polymer Lithium Ion Battery. Each pushbutton is connected to a different GPIO pin on the microcontroller, allowing for individual button press detection and processing.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of floating_03: A project utilizing Push button in a practical application
Arduino UNO Pushbutton Input with 10k Ohm Resistor
This circuit features an Arduino UNO microcontroller connected to a pushbutton and a 10k Ohm resistor. The pushbutton is powered by the 5V pin of the Arduino, and its state is read through digital pin D2, with the resistor providing a pull-down to ground.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications

  • User input for microcontroller-based systems (e.g., Arduino, Raspberry Pi)
  • Reset or power buttons in electronic devices
  • Triggering events in automation systems
  • Prototyping and testing circuits

Technical Specifications

The following table outlines the key technical details of the UTBM PushButton1:

Parameter Specification
Manufacturer UTBM
Part ID PushButton1
Type Momentary switch
Operating Voltage 3.3V to 12V
Maximum Current Rating 50mA
Contact Resistance ≤ 50 mΩ
Insulation Resistance ≥ 100 MΩ
Operating Temperature -20°C to +70°C
Dimensions 6mm x 6mm x 5mm
Actuation Force 160 ± 50 gf
Lifespan 100,000 cycles

Pin Configuration and Description

The UTBM PushButton1 has four pins, arranged in a square configuration. The pins are internally connected in pairs, as shown below:

Pin Number Description
1 Connected to Pin 2 (internally shorted)
2 Connected to Pin 1 (internally shorted)
3 Connected to Pin 4 (internally shorted)
4 Connected to Pin 3 (internally shorted)

Note: Pins 1 and 2 form one terminal, while Pins 3 and 4 form the other terminal. When the button is pressed, the two terminals are electrically connected.

Usage Instructions

How to Use the Push Button in a Circuit

  1. Identify the Terminals: Use a multimeter to confirm the internal connections between the pins. Pins 1 and 2 are one terminal, and Pins 3 and 4 are the other.
  2. Connect to Circuit:
    • Connect one terminal to the input signal or power source.
    • Connect the other terminal to the desired load or microcontroller input pin.
  3. Debounce the Signal: Push buttons can produce noise or "bouncing" when pressed or released. Use a hardware debounce circuit (e.g., a resistor-capacitor network) or software debounce logic to ensure stable operation.
  4. Pull-Up or Pull-Down Resistor: When interfacing with a microcontroller, use a pull-up or pull-down resistor to ensure a defined logic level when the button is not pressed.

Example Circuit with Arduino UNO

Below is an example of how to connect the UTBM PushButton1 to an Arduino UNO to toggle an LED:

Circuit Diagram

  • Connect one terminal of the push button to digital pin 2 on the Arduino.
  • Connect the other terminal to the ground (GND).
  • Use a 10kΩ pull-up resistor between digital pin 2 and 5V.
  • Connect an LED to digital pin 13 with a 220Ω resistor in series.

Arduino Code

// Define pin numbers
const int buttonPin = 2;  // Push button connected to digital pin 2
const int ledPin = 13;    // LED connected to digital pin 13

// Variable to store button state
int buttonState = 0;

void setup() {
  pinMode(buttonPin, INPUT);  // Set button pin as input
  pinMode(ledPin, OUTPUT);   // Set LED pin as output
}

void loop() {
  // Read the state of the push button
  buttonState = digitalRead(buttonPin);

  // If the button is pressed, turn on the LED
  if (buttonState == LOW) {  // LOW indicates button press due to pull-up resistor
    digitalWrite(ledPin, HIGH);  // Turn on LED
  } else {
    digitalWrite(ledPin, LOW);   // Turn off LED
  }
}

Best Practices

  • Always use a pull-up or pull-down resistor to avoid floating input states.
  • For long-term reliability, avoid exceeding the maximum current and voltage ratings.
  • Use a debounce mechanism (hardware or software) to prevent erratic behavior.

Troubleshooting and FAQs

Common Issues and Solutions

  1. Button Not Responding

    • Cause: Incorrect wiring or loose connections.
    • Solution: Verify the wiring and ensure all connections are secure.
  2. Button Produces Erratic Behavior

    • Cause: Signal bouncing due to mechanical contacts.
    • Solution: Add a debounce circuit or implement software debounce logic.
  3. Microcontroller Reads Incorrect State

    • Cause: Missing pull-up or pull-down resistor.
    • Solution: Add a 10kΩ resistor to pull the input pin to a defined logic level.
  4. Button Feels Stiff or Unresponsive

    • Cause: Physical wear or debris inside the button.
    • Solution: Replace the button if it has exceeded its lifespan or clean it carefully.

FAQs

Q1: Can I use the UTBM PushButton1 with a 5V system?
A1: Yes, the push button is compatible with systems operating between 3.3V and 12V, including 5V systems.

Q2: Do I need a resistor for the push button?
A2: Yes, a pull-up or pull-down resistor is recommended to ensure stable operation and avoid floating input states.

Q3: How do I debounce the push button in software?
A3: You can use a delay or a state-checking algorithm in your microcontroller code to filter out bouncing signals.

Q4: Can I use this push button for high-current applications?
A4: No, the maximum current rating is 50mA. For high-current applications, use a relay or transistor in conjunction with the push button.

By following this documentation, you can effectively integrate the UTBM PushButton1 into your electronic projects with confidence and ease.