Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use 2.1mm DC Barrel Jack: Examples, Pinouts, and Specs

Image of 2.1mm DC Barrel Jack
Cirkit Designer LogoDesign with 2.1mm DC Barrel Jack in Cirkit Designer

Introduction

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.

Explore Projects Built with 2.1mm DC Barrel Jack

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Battery-Powered Multi-Voltage Supply with Barrel Jack Connectors
Image of Battery Setup: A project utilizing 2.1mm DC Barrel Jack in a practical application
This circuit consists of multiple 9V batteries connected in series and parallel configurations to provide power to three separate 2.1mm barrel jacks. Each barrel jack receives a different combination of series and parallel battery connections to achieve the desired voltage and current levels.
Cirkit Designer LogoOpen Project in Cirkit Designer
Multi-Channel Load Cell Measurement System with JYS60 Amplifiers and DAQ Integration
Image of Load Cell Circuit: A project utilizing 2.1mm DC Barrel Jack in a practical application
This is a multi-channel load cell measurement system with several JYS60 amplifiers connected to load cells for weight or force sensing. The amplified signals are directed to a DAQ system for data capture, and power is supplied through a barrel jack. Grounding is achieved via an AdaGator Side Black component.
Cirkit Designer LogoOpen Project in Cirkit Designer
PWM-Controlled DC Motor Speed Regulator with DC Barrel Jack Power Input
Image of Siren: A project utilizing 2.1mm DC Barrel Jack in a practical application
This circuit controls the speed of a DC motor using a 12V PWM speed controller. Power is supplied to the speed controller through a 2.1mm DC barrel jack, which then modulates the voltage and current to the motor's terminals to adjust its speed. There is no microcontroller code involved, indicating that the speed control is likely adjusted manually via the speed controller's onboard settings.
Cirkit Designer LogoOpen Project in Cirkit Designer
LED Indicator Circuit with Dual Rocker Switches and Resistors
Image of Light panel control - simple: A project utilizing 2.1mm DC Barrel Jack in a practical application
This circuit is a simple LED control system powered by a DC barrel jack. It uses two SPST rocker switches to control the current flow through two resistors and a green LED, allowing the LED to be turned on or off.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with 2.1mm DC Barrel Jack

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of Battery Setup: A project utilizing 2.1mm DC Barrel Jack in a practical application
Battery-Powered Multi-Voltage Supply with Barrel Jack Connectors
This circuit consists of multiple 9V batteries connected in series and parallel configurations to provide power to three separate 2.1mm barrel jacks. Each barrel jack receives a different combination of series and parallel battery connections to achieve the desired voltage and current levels.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Load Cell Circuit: A project utilizing 2.1mm DC Barrel Jack in a practical application
Multi-Channel Load Cell Measurement System with JYS60 Amplifiers and DAQ Integration
This is a multi-channel load cell measurement system with several JYS60 amplifiers connected to load cells for weight or force sensing. The amplified signals are directed to a DAQ system for data capture, and power is supplied through a barrel jack. Grounding is achieved via an AdaGator Side Black component.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Siren: A project utilizing 2.1mm DC Barrel Jack in a practical application
PWM-Controlled DC Motor Speed Regulator with DC Barrel Jack Power Input
This circuit controls the speed of a DC motor using a 12V PWM speed controller. Power is supplied to the speed controller through a 2.1mm DC barrel jack, which then modulates the voltage and current to the motor's terminals to adjust its speed. There is no microcontroller code involved, indicating that the speed control is likely adjusted manually via the speed controller's onboard settings.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Light panel control - simple: A project utilizing 2.1mm DC Barrel Jack in a practical application
LED Indicator Circuit with Dual Rocker Switches and Resistors
This circuit is a simple LED control system powered by a DC barrel jack. It uses two SPST rocker switches to control the current flow through two resistors and a green LED, allowing the LED to be turned on or off.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Powering Arduino boards, Raspberry Pi, and other microcontrollers
  • Supplying power to LED strips, small motors, and sensors
  • Used in consumer electronics such as routers, modems, and portable devices
  • Ideal for DIY electronics projects and prototyping

Technical Specifications

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

Pin Configuration and Descriptions

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

Usage Instructions

How to Use the Component in a Circuit

  1. Identify the Polarity: Ensure that the center pin of the barrel jack is connected to the positive voltage (V+), and the outer sleeve is connected to the ground (GND). Verify the polarity of your power supply to avoid damage to your circuit.
  2. Mounting: If using a panel-mount jack, secure it to the enclosure using the provided nut. For PCB-mounted jacks, solder the pins to the appropriate pads on the PCB.
  3. Wiring: Connect the center pin to the positive rail of your circuit and the outer sleeve to the ground rail. If using the switch pin, connect it to the desired circuit for power source switching functionality.
  4. Testing: Before powering your circuit, use a multimeter to confirm the connections and polarity.

Important Considerations and Best Practices

  • Polarity Check: Always verify the polarity of the power supply and the barrel jack to prevent damage to your components.
  • Current Rating: Ensure that the current drawn by your circuit does not exceed the current rating of the barrel jack.
  • Secure Connections: For reliable operation, ensure that the power plug fits snugly into the barrel jack.
  • Heat Dissipation: If operating at high currents, ensure proper ventilation to prevent overheating.

Example: Connecting to an Arduino UNO

The 2.1mm DC Barrel Jack is commonly used to power an Arduino UNO. Below is an example of how to connect it:

  1. Connect a 9V DC power adapter with a 2.1mm plug to the barrel jack.
  2. Plug the barrel jack into the Arduino UNO's power input port.
  3. Ensure the adapter provides a regulated voltage within the Arduino's operating range (7-12V).

Arduino Code Example

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
}

Troubleshooting and FAQs

Common Issues Users Might Face

  1. Loose Connection: The power plug may not fit securely into the barrel jack.
    • Solution: Ensure you are using a compatible 2.1mm plug. Replace the jack if it is damaged.
  2. Incorrect Polarity: Reversed polarity can damage your circuit.
    • Solution: Double-check the polarity of your power supply and connections before powering the circuit.
  3. Overheating: The barrel jack may overheat if the current exceeds its rating.
    • Solution: Use a barrel jack with a higher current rating or reduce the load on your circuit.
  4. No Power to Circuit: The circuit does not receive power even when connected.
    • Solution: Check for loose solder joints, broken wires, or a faulty power adapter.

FAQs

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.