Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

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

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

Introduction

The 2.1mm DC Barrel Jack is a common power connector used in a variety of electronic devices and projects. It is designed to receive a 2.1mm male DC power plug, providing a convenient way to supply power to a circuit. This type of jack is often found in small to medium-sized electronics, such as portable devices, DIY electronics projects, and is frequently used with Arduino boards to provide an external power source.

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!

Common Applications and Use Cases

Technical Specifications

Key Technical Details

Pin Configuration and Descriptions

Pin Number Description Notes
1 Ground Connection Connects to the sleeve of the plug
2 Positive Voltage In Connects to the tip of the plug

Usage Instructions

How to Use the Component in a Circuit

  1. Mounting: Secure the DC Barrel Jack to your project's enclosure or PCB, ensuring proper alignment of the pins.
  2. Wiring: Solder the ground wire to pin 1 and the positive voltage wire to pin 2. Make sure to avoid short circuits.
  3. Power Supply Connection: Insert a compatible 2.1mm DC power plug into the jack. Ensure the power supply's voltage and current ratings are within the specifications of the jack and your circuit.

Important Considerations and Best Practices

Troubleshooting and FAQs

Common Issues Users Might Face

Solutions and Tips for Troubleshooting

FAQs

Q: Can I use a power supply with a higher voltage rating than the jack's rating? A: No, using a power supply with a higher voltage than the jack's rating can damage the component and the connected circuit.

Q: What happens if I reverse the polarity? A: Reversing the polarity can cause permanent damage to the electronic components in your circuit. Always double-check the polarity before use.

Q: Is it possible to use the DC Barrel Jack with an AC power supply? A: No, the DC Barrel Jack is designed for DC voltages only. Using an AC power supply can damage the jack and the connected devices.

Example Code for Arduino UNO

// There is no direct code associated with powering an Arduino via a DC Barrel Jack.
// However, when using an external power source, you can write code that checks if the Arduino is powered.

void setup() {
  // Initialize the built-in LED pin as an output.
  pinMode(LED_BUILTIN, OUTPUT);
}

void loop() {
  // Turn the LED on and off to indicate that the Arduino is powered.
  digitalWrite(LED_BUILTIN, HIGH); // Turn the LED on
  delay(1000);                     // Wait for a second
  digitalWrite(LED_BUILTIN, LOW);  // Turn the LED off
  delay(1000);                     // Wait for a second
}

// Note: This code assumes that the Arduino is properly powered through the DC Barrel Jack.
// It simply blinks the built-in LED to show that the board is operational.

Remember to ensure that the power supply connected to the DC Barrel Jack matches the requirements of your Arduino UNO, which typically operates at 7-12V DC when powered externally.