









The Push Button Round typically has two or four pins, depending on the model. Below is a description of the pin configuration:
| Pin Number | Description |
|---|---|
| 1 | Terminal 1 (connect to circuit) |
| 2 | Terminal 2 (connect to circuit) |
| Pin Number | Description |
|---|---|
| 1 | Terminal 1 (connect to circuit) |
| 2 | Terminal 2 (connect to circuit) |
| 3 | Terminal 3 (internally connected to Terminal 1) |
| 4 | Terminal 4 (internally connected to Terminal 2) |
Note: For 4-pin push buttons, terminals 1 and 3 are internally connected, as are terminals 2 and 4. This ensures flexibility in PCB design.
Connecting the Push Button:
Using with an Arduino UNO:
Sample Arduino Code:
// Push Button Example with Arduino UNO
// This code reads the state of a push button and turns on an LED when pressed.
const int buttonPin = 2; // Pin connected to the push button
const int ledPin = 13; // Pin connected to the onboard LED
void setup() {
pinMode(buttonPin, INPUT_PULLUP); // Set button pin as input with internal pull-up
pinMode(ledPin, OUTPUT); // Set LED pin as output
}
void loop() {
int buttonState = digitalRead(buttonPin); // Read the button state
if (buttonState == LOW) { // Button pressed (LOW due to pull-up resistor)
digitalWrite(ledPin, HIGH); // Turn on the LED
} else {
digitalWrite(ledPin, LOW); // Turn off the LED
}
}
Button Not Responding:
Button Stuck in Pressed State:
Unstable or Flickering Output:
Button Works Intermittently:
Can I use the push button with higher voltages?
What is the difference between a momentary and a latching push button?
Do I need an external pull-up resistor if using an Arduino?
INPUT_PULLUP.Can I use the push button for AC circuits?
By following this documentation, you can effectively integrate the Push Button Round into your electronic projects!