

The 2.1mm DC Barrel Jack is a widely used electrical connector designed for supplying power to 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 found in consumer electronics, DIY projects, and prototyping applications due to its ease of use and reliable connection.








The following table outlines the key technical details of the 2.1mm DC Barrel Jack:
| Parameter | Specification |
|---|---|
| Inner Diameter | 2.1mm |
| Outer Diameter | 5.5mm |
| Voltage Rating | Typically up to 24V DC |
| Current Rating | Typically up to 5A |
| Mounting Style | Panel mount or PCB mount |
| Polarity | Center pin positive (commonly used) |
| Material | Metal contacts with plastic housing |
The 2.1mm DC Barrel Jack typically has three pins, as described in the table below:
| Pin | Description |
|---|---|
| Center Pin | Positive terminal (V+) |
| Outer Sleeve | Negative terminal (GND) |
| Switch Pin | Optional pin used to detect plug insertion or switch between power sources |
The 2.1mm DC Barrel Jack is commonly used to power an Arduino UNO. Below is an example of how to connect it:
If you're powering sensors or modules through the Arduino, you can use the following code to test the setup:
// Example code to blink an LED connected to pin 13 on the Arduino UNO
// Ensure the Arduino is powered via the 2.1mm DC Barrel Jack
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
}
Q: Can I use a 2.5mm plug with a 2.1mm DC Barrel Jack?
A: No, a 2.5mm plug will not fit securely into a 2.1mm jack, leading to unreliable connections.
Q: What is the maximum voltage I can use with this barrel jack?
A: Most 2.1mm DC Barrel Jacks support up to 24V DC, but always check the manufacturer's specifications.
Q: How do I use the switch pin on the barrel jack?
A: The switch pin can be used to detect when a plug is inserted or to switch between two power sources. Connect it to your circuit as needed for your application.
Q: Is the center pin always positive?
A: While the center pin is commonly positive, always verify the polarity of your power supply and circuit to avoid damage.