

A DC jack is a type of electrical connector used to supply direct current (DC) power to electronic devices. It typically consists of a cylindrical socket that accepts a matching plug, allowing for easy connection and disconnection of power. DC jacks are widely used in consumer electronics, such as laptops, routers, and small appliances, to provide a reliable and standardized power interface.








Below are the general technical specifications for a standard DC jack. Note that specific models may vary slightly, so always refer to the datasheet of the exact component you are using.
The DC jack typically has three pins for connection. Below is a table describing the pin configuration:
| Pin Name | Description |
|---|---|
| Pin 1 (VCC) | Positive terminal (center pin) for the DC input voltage. |
| Pin 2 (GND) | Negative terminal (outer sleeve) for the DC input voltage. |
| Pin 3 (Switch) | Optional pin used to detect if a plug is inserted or to disconnect internal power. |
The Arduino UNO can be powered using a DC jack with a 2.1mm inner pin and 5.5mm outer sleeve. The recommended input voltage is 7V to 12V.
// Example code to blink an LED when powered via a DC jack
// Connect the DC jack to the Arduino UNO's power input
int ledPin = 13; // Pin 13 is connected to the onboard LED
void setup() {
pinMode(ledPin, OUTPUT); // Set pin 13 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
}
No Power to the Device:
Overheating of the DC Jack:
Intermittent Power Loss:
Short Circuit:
Q: Can I use a DC jack with a higher voltage rating than my power source?
A: Yes, the voltage rating of the DC jack indicates the maximum voltage it can handle. Ensure the current rating is also sufficient for your application.
Q: How do I determine the polarity of my DC plug?
A: Most DC plugs have a diagram indicating polarity. The center pin is usually positive (+), and the outer sleeve is negative (-).
Q: Can I use a DC jack for AC power?
A: No, DC jacks are designed specifically for direct current (DC) and should not be used with alternating current (AC).
Q: What is the purpose of the switch pin on a DC jack?
A: The switch pin can be used to detect when a plug is inserted or to disconnect an internal power source (e.g., a battery) when external power is supplied.