

The barrel jack is a cylindrical connector commonly used for supplying power to electronic devices. It features a center pin for positive voltage and an outer sleeve for ground, making it a reliable and straightforward solution for powering circuits. Barrel jacks are widely used in consumer electronics, development boards (e.g., Arduino), and DIY projects due to their ease of use and compatibility with standard power adapters.








Below are the general specifications for a standard barrel jack. Note that variations may exist depending on the specific model or manufacturer.
The barrel jack typically has three pins for connection. Below is a table describing each pin:
| Pin Name | Description |
|---|---|
| Center Pin | Connects to the positive voltage terminal of the power supply. |
| Outer Sleeve | Connects to the ground (negative terminal) of the power supply. |
| Switch Pin | Optional pin used to detect if a plug is inserted or to disconnect a circuit. |
The Arduino UNO features a barrel jack for external power input. Below is an example of powering the Arduino UNO with a 9V adapter:
// No code is required for basic power input via the barrel jack.
// Simply plug in a 9V DC adapter with center-positive polarity.
// Ensure the adapter's voltage is within the Arduino UNO's input range (7-12V).
No Power to the Circuit
Overheating Barrel Jack
Intermittent Power
Circuit Not Powering On
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 and the barrel jack.
Q: How do I determine the size of my barrel jack?
A: Measure the outer diameter and inner diameter of the connector. Common sizes are 5.5mm/2.1mm and 5.5mm/2.5mm.
Q: What happens if I reverse the polarity?
A: Reversing the polarity can damage your circuit. Always verify the polarity with a multimeter before connecting.
Q: Can I use a higher voltage adapter than specified?
A: No, using a higher voltage adapter can damage your circuit. Always use an adapter within the specified voltage range.
By following this documentation, you can effectively use a barrel jack in your electronic projects while avoiding common pitfalls.