The Pushbutton_2P is a versatile pushbutton switch manufactured by Custom, with the part ID PushButton_2p. This component features two poles, enabling the control of two independent circuits with a single button press. It is commonly used in applications requiring momentary switching, such as user interfaces, control panels, and prototyping projects.
The following table outlines the key technical details of the Pushbutton_2P:
Parameter | Value |
---|---|
Manufacturer | Custom |
Part ID | PushButton_2p |
Number of Poles | 2 |
Switch Type | Momentary (Normally Open) |
Maximum Voltage Rating | 50V DC |
Maximum Current Rating | 1A |
Contact Resistance | ≤ 50 mΩ |
Insulation Resistance | ≥ 100 MΩ at 500V DC |
Operating Temperature | -20°C to +70°C |
Mechanical Lifespan | 100,000 cycles |
The Pushbutton_2P has four pins, as shown in the table below:
Pin Number | Label | Description |
---|---|---|
1 | COM1 | Common terminal for the first pole |
2 | NO1 | Normally open terminal for the first pole |
3 | COM2 | Common terminal for the second pole |
4 | NO2 | Normally open terminal for the second pole |
When the button is pressed, the COM1 pin connects to NO1, and COM2 connects to NO2, allowing current to flow through both circuits.
The Pushbutton_2P can be used with an Arduino UNO to control two LEDs. Below is an example circuit and code:
// Define pin numbers for the pushbutton and LEDs
const int buttonPin1 = 2; // First pole of the pushbutton
const int buttonPin2 = 3; // Second pole of the pushbutton
const int ledPin1 = 8; // LED controlled by the first pole
const int ledPin2 = 9; // LED controlled by the second pole
void setup() {
// Initialize button pins as inputs
pinMode(buttonPin1, INPUT);
pinMode(buttonPin2, INPUT);
// Initialize LED pins as outputs
pinMode(ledPin1, OUTPUT);
pinMode(ledPin2, OUTPUT);
}
void loop() {
// Read the state of the pushbutton poles
int buttonState1 = digitalRead(buttonPin1);
int buttonState2 = digitalRead(buttonPin2);
// Control the LEDs based on the button states
digitalWrite(ledPin1, buttonState1); // Turn LED1 on/off
digitalWrite(ledPin2, buttonState2); // Turn LED2 on/off
}
Button Not Responding:
LEDs Flickering:
Overheating or Damage:
Q: Can I use the Pushbutton_2P for AC circuits?
A: Yes, as long as the voltage and current ratings are not exceeded. However, ensure proper insulation and safety precautions.
Q: How do I debounce the pushbutton in software?
A: Use a delay or a state-change detection algorithm in your microcontroller code to filter out noise.
Q: Can I use only one pole of the pushbutton?
A: Yes, you can use just one pole (COM1 and NO1) if your application does not require the second pole.
This concludes the documentation for the Pushbutton_2P.