

A 2 pin header is a type of electrical connector consisting of two metal pins that can be used to connect wires or other components in a circuit. It is commonly used for making connections to printed circuit boards (PCBs) and allows for easy disconnection and reconnection. These headers are widely used in electronics for prototyping, modular designs, and interfacing with external devices.








| Pin Number | Description |
|---|---|
| 1 | First connection terminal |
| 2 | Second connection terminal |
Below is an example of using a 2 pin header to connect an LED to an Arduino UNO:
// Example: Blinking an LED connected via a 2 pin header to Arduino UNO
// Connect the positive leg of the LED to pin 13 on the Arduino
// Connect the negative leg of the LED to GND via a 2 pin header
void setup() {
pinMode(13, OUTPUT); // Set pin 13 as an output
}
void loop() {
digitalWrite(13, HIGH); // Turn the LED on
delay(1000); // Wait for 1 second
digitalWrite(13, LOW); // Turn the LED off
delay(1000); // Wait for 1 second
}
Loose Connections:
Overheating:
Soldering Problems:
Polarity Issues:
Q: Can I use a 2 pin header for high-frequency signals?
A: Yes, but ensure the header and PCB layout are designed to minimize signal loss or interference.
Q: Are 2 pin headers reusable?
A: Yes, they can be reused if removed carefully without damaging the pins or PCB.
Q: What tools are needed to work with 2 pin headers?
A: Common tools include a soldering iron, solder, wire cutters, and jumper wires or female connectors.
Q: Can I use a 2 pin header for power connections?
A: Yes, as long as the current and voltage ratings are not exceeded.