

A DC power jack is a connector used to supply direct current (DC) power to electronic devices. It typically features a cylindrical shape and is designed to accept a matching DC power plug, allowing for easy connection and disconnection of power. DC power jacks are commonly found in consumer electronics, such as laptops, routers, and small appliances, where they serve as the primary interface for external power supplies.








Below are the general technical specifications for a standard DC power jack. Note that specific models may vary slightly, so always refer to the datasheet of the exact component you are using.
The DC power jack typically has three pins, as described in the table below:
| Pin Name | Description |
|---|---|
| Center Pin | Connects to the positive terminal of the power supply (V+). |
| Outer Sleeve | Connects to the negative terminal of the power supply (GND). |
| Switch Pin | Optional pin used to detect the presence of a plug or to switch power sources. |
The Arduino UNO can be powered using a DC power jack with a 2.1mm inner diameter and 5.5mm outer diameter. Below is an example of how to connect a 12V DC power supply to the Arduino UNO.
// Example: Powering an Arduino UNO with a DC Power Jack
// Ensure the DC power jack is connected to a 12V power supply.
// The Arduino UNO's onboard voltage regulator will step down the voltage to 5V.
void setup() {
// No specific code is required to power the Arduino UNO via the DC jack.
// Simply connect the DC power jack to the Arduino's power input port.
}
void loop() {
// Example: Blink the onboard LED to confirm the Arduino is powered.
pinMode(LED_BUILTIN, OUTPUT); // Set the onboard LED pin as output
digitalWrite(LED_BUILTIN, HIGH); // Turn the LED on
delay(1000); // Wait for 1 second
digitalWrite(LED_BUILTIN, LOW); // Turn the LED off
delay(1000); // Wait for 1 second
}
No Power to the Circuit:
Overheating of the Jack:
Intermittent Power Loss:
Switch Pin Not Functioning:
Q: Can I use a DC power jack with an AC power supply?
A: No, DC power jacks are designed for direct current (DC) only. Using an AC power supply can damage your circuit.
Q: How do I determine the polarity of my DC power jack?
A: Most jacks are center-positive. Check the datasheet or use a multimeter to confirm.
Q: Can I use a DC power jack for high-current applications?
A: Standard DC power jacks are not suitable for high-current applications. Use a jack rated for the required current or consider alternative connectors.
Q: What is the purpose of the switch pin?
A: The switch pin allows the circuit to detect the presence of a plug or to switch between power sources (e.g., battery and external power).