Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

How to Use 3104 push button: Examples, Pinouts, and Specs

Image of 3104 push buttonDesign with 3104 push button in Cirkit Designer

Introduction

The 3104 push button is a momentary switch that is widely used in electronic circuits. When the button is pressed, it closes the circuit, allowing electric current to flow through. Upon release, the button returns to its default position, opening the circuit and stopping the current. This simple yet versatile component is commonly found in applications such as input devices, control panels, and hobbyist projects, including interfacing with microcontrollers like the Arduino UNO.

Explore Projects Built with 3104 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 24V Pushbutton Control Interface with 40-Pin Connector: A project utilizing 3104 push button in a practical application
24V Pushbutton Control Interface with 40-Pin Connector

This circuit consists of a 24V power supply unit (PSU) connected to four pushbuttons. Each pushbutton is wired such that pressing it will send a 24V signal to a corresponding general-purpose input (GP In) on a 40-pin connector. The common return path for the pushbuttons is connected to the 0V of the PSU, which is also connected to the common (Com) for input pins on the 40-pin connector, completing the circuit for each button press.

Open Project in Cirkit Designer
Image of Pushbutton Interface with General Purpose I/O Plug: A project utilizing 3104 push button in a practical application
Pushbutton Interface with General Purpose I/O Plug

This circuit consists of a General Purpose Input/Output (GPIO) plug connected to four pushbuttons. Each pushbutton is wired to a unique input pin on the GPIO plug, allowing the state of each button (pressed or not pressed) to be detected individually. The common terminals of the pushbuttons are interconnected and likely serve as a ground or reference voltage connection.

Open Project in Cirkit Designer

Technical Specifications

General Characteristics

Electrical Specifications

Pin Configuration and Descriptions

Pin Number Description
1 Terminal 1 (Contact)
2 Terminal 2 (Contact)

Note: The pins are usually interchangeable since the push button acts as a simple switch.

Usage Instructions

Integration into a Circuit

To use the 3104 push button in a circuit:

  1. Identify the two terminals on the push button.
  2. Connect one terminal to the input line where you want to control the current flow.
  3. Connect the second terminal to the output line that leads to the next component in the circuit.

Best Practices

Example Code for Arduino UNO

Below is an example of how to use the 3104 push button with an Arduino UNO:

// Define the pin connected to the push button
const int buttonPin = 2;     
// Define the pin for the LED
const int ledPin =  13;      
// Variable for reading the push button status
int buttonState = 0;         

void setup() {
  // Initialize the LED pin as an output
  pinMode(ledPin, OUTPUT);      
  // Initialize the push button pin as an input
  pinMode(buttonPin, INPUT_PULLUP);  
}

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

  // Check if the push button is pressed
  // if it is, the buttonState is LOW
  if (buttonState == LOW) {     
    // Turn on the LED
    digitalWrite(ledPin, HIGH);  
  } else {
    // Turn off the LED
    digitalWrite(ledPin, LOW);   
  }
}

Note: The INPUT_PULLUP mode enables the internal pull-up resistor, which is a best practice for push button circuits.

Troubleshooting and FAQs

Common Issues

FAQs

Q: Can I use the 3104 push button with AC voltage? A: No, the 3104 push button is rated for DC voltage only.

Q: How can I prevent "bouncing" when the button is pressed? A: Implement a debounce algorithm in your code or use a capacitor and resistor to create a hardware debounce circuit.

Q: Is it necessary to use a resistor with the push button? A: Yes, using a pull-up or pull-down resistor is recommended to ensure a defined logic level when the button is not pressed.

For further assistance, please refer to the manufacturer's datasheet or contact technical support.