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

How to Use Barrel Jack: Examples, Pinouts, and Specs

Image of Barrel Jack
Cirkit Designer LogoDesign with Barrel Jack in Cirkit Designer

Introduction

A barrel jack is a type of electrical connector commonly used for power supply connections in electronic devices. It features a cylindrical shape that allows for easy insertion and secure connection of a power adapter. Barrel jacks are widely used in consumer electronics, development boards, and DIY projects due to their simplicity and reliability. They are designed to handle low to moderate power levels and are available in various sizes to accommodate different voltage and current requirements.

Explore Projects Built with 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 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 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
LED Indicator Circuit with Dual Rocker Switches and Resistors
Image of Light panel control - simple: A project utilizing 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
ESP32-Controlled DC Motor with Dual Relay System
Image of LED Show v2: A project utilizing Barrel Jack in a practical application
This circuit controls a DC motor using two 12V relays, which are powered by a 12V supply through a barrel jack. The relays are configured to switch the motor's connections, allowing for control over its operation.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with 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 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 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 Light panel control - simple: A project utilizing 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
Image of LED Show v2: A project utilizing Barrel Jack in a practical application
ESP32-Controlled DC Motor with Dual Relay System
This circuit controls a DC motor using two 12V relays, which are powered by a 12V supply through a barrel jack. The relays are configured to switch the motor's connections, allowing for control over its operation.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Powering development boards like Arduino, Raspberry Pi (via adapters), and other microcontrollers.
  • Providing DC power to consumer electronics such as routers, modems, and portable devices.
  • DIY electronics projects requiring a reliable and detachable power connection.
  • Prototyping circuits that need a standard DC power input.

Technical Specifications

Key Technical Details

  • Voltage Rating: Typically 5V to 24V DC (varies by model).
  • Current Rating: Commonly 1A to 5A (check specific model for exact rating).
  • Connector Type: Cylindrical, with an inner pin (positive) and outer sleeve (negative).
  • Outer Diameter (OD): Common sizes include 5.5mm, 3.5mm, and 2.1mm.
  • Inner Diameter (ID): Typically 2.1mm or 2.5mm.
  • Polarity: Center pin is usually positive (+), and the outer sleeve is negative (-).
  • Mounting Style: Panel mount or PCB mount.

Pin Configuration and Descriptions

The barrel jack typically has three pins for connection:

Pin Name Description
Outer Sleeve Connects to the negative (-) terminal of the power supply.
Inner Pin Connects to the positive (+) terminal of the power supply.
Switch Pin Optional pin used to detect the presence of a plug or to switch power sources.

Note: Not all barrel jacks include a switch pin. Check the datasheet of your specific model.

Usage Instructions

How to Use the Barrel Jack in a Circuit

  1. Determine the Voltage and Current Requirements:

    • Ensure the barrel jack matches the voltage and current ratings of your circuit.
    • Verify the polarity of the power adapter to avoid damage to your components.
  2. Connect the Pins:

    • Solder the outer sleeve pin to the ground (GND) of your circuit.
    • Solder the inner pin to the positive voltage input (VCC) of your circuit.
    • If using the switch pin, connect it to the desired circuit path for power switching.
  3. Mount the Barrel Jack:

    • For panel-mount jacks, secure the connector to the enclosure using the provided nut.
    • For PCB-mount jacks, solder the pins to the PCB pads.
  4. Test the Connection:

    • Use a multimeter to verify the voltage and polarity at the output before powering your circuit.

Important Considerations and Best Practices

  • Polarity Check: Always confirm the polarity of the power adapter before connecting it to the barrel jack.
  • Current Rating: Ensure the barrel jack can handle the maximum current required by your circuit.
  • Secure Mounting: For panel-mount jacks, ensure the connector is firmly secured to prevent accidental disconnection.
  • Avoid Overheating: Do not exceed the voltage or current ratings of the barrel jack to prevent overheating or damage.
  • Use with Arduino UNO: The Arduino UNO typically uses a 5.5mm OD / 2.1mm ID barrel jack for power input. Ensure your power adapter provides 7-12V DC for optimal operation.

Example: Connecting a Barrel Jack to an Arduino UNO

// Example code to blink an LED on an Arduino UNO powered via a barrel jack
// Ensure the power adapter provides 7-12V DC to the Arduino's barrel jack.

int ledPin = 13; // Pin connected to the onboard LED

void setup() {
  pinMode(ledPin, OUTPUT); // Set the LED pin as an output
}

void loop() {
  digitalWrite(ledPin, HIGH); // Turn the LED on
  delay(1000);               // Wait for 1 second
  digitalWrite(ledPin, LOW);  // Turn the LED off
  delay(1000);               // Wait for 1 second
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. No Power to the Circuit:

    • Cause: Incorrect polarity or loose connection.
    • Solution: Verify the polarity of the power adapter and ensure all connections are secure.
  2. Overheating Barrel Jack:

    • Cause: Exceeding the voltage or current rating.
    • Solution: Use a power adapter within the specified voltage and current range.
  3. Intermittent Power Loss:

    • Cause: Loose or damaged connector.
    • Solution: Inspect the barrel jack and power adapter for wear or damage. Replace if necessary.
  4. Switch Pin Not Working:

    • Cause: Incorrect wiring or unsupported feature.
    • Solution: Verify the wiring and check if the barrel jack model includes a switch pin.

FAQs

  • Q: Can I use a barrel jack for AC power?
    A: No, barrel jacks are designed for DC power only. Using AC power can damage your circuit.

  • Q: How do I identify the polarity of my power adapter?
    A: Look for the polarity symbol on the adapter. A diagram with a "+" in the center indicates the center pin is positive.

  • Q: What size barrel jack does the Arduino UNO use?
    A: The Arduino UNO uses a 5.5mm OD / 2.1mm ID barrel jack.

  • Q: Can I use a higher voltage adapter with my barrel jack?
    A: No, always use an adapter within the voltage range specified for your circuit to avoid damage.

By following this documentation, you can effectively use a barrel jack in your electronic projects while ensuring safety and reliability.