

The 2.1mm DC barrel jack is a widely used electrical connector designed for power supply connections in electronic devices. It features a cylindrical design with a 2.1mm inner diameter and a 5.5mm outer diameter, making it compatible with standard DC power plugs. This component is commonly used in projects requiring a reliable and secure power connection, such as Arduino-based systems, small appliances, and DIY electronics.








The 2.1mm DC barrel jack is designed to handle low-voltage DC power connections. Below are its key technical details:
The 2.1mm DC barrel jack typically has three pins for connection. The table below describes each pin:
| Pin Name | Description |
|---|---|
| Center Pin | Connects to the positive terminal of the DC power supply (center-positive). |
| Outer Sleeve | Connects to the negative terminal of the DC power supply (ground). |
| Switch Pin | Optional pin that disconnects a circuit when a plug is inserted (used for switching). |
Note: The switch pin is not always present in all models. Check the datasheet of your specific barrel jack.
Mounting the Jack:
Connecting Power:
Using the Switch Pin (if available):
The Arduino UNO has a 2.1mm DC barrel jack for external power. To power the Arduino using this jack:
Here’s an example Arduino sketch to test the power connection:
// Simple LED blink test to verify power connection
// Connect an LED to pin 13 with a 220-ohm resistor
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
}
No Power to the Circuit:
Overheating Barrel Jack:
Intermittent Power Loss:
Switch Pin Not Working:
Q: Can I use a 2.5mm plug with a 2.1mm barrel jack?
A: No, a 2.5mm plug will not make proper contact with a 2.1mm barrel jack, leading to unreliable connections.
Q: Is the center pin always positive?
A: Most 2.1mm barrel jacks are center-positive, but you should always verify the polarity of your power supply and jack.
Q: Can I use the barrel jack for AC power?
A: No, the 2.1mm DC barrel jack is designed for DC power only. Using it with AC power can damage your circuit and pose safety risks.
Q: How do I know if my barrel jack is rated for my circuit?
A: Check the voltage and current ratings of the barrel jack in its datasheet and ensure they meet or exceed the requirements of your circuit.