

A Power Jack is a socket designed to connect an external power supply to an electronic circuit. It serves as a reliable interface for delivering the required voltage and current to power various devices. Power Jacks are commonly used in consumer electronics, development boards, and embedded systems to provide a stable power source.








The Power Jack typically has three pins for connection:
| Pin Name | Description |
|---|---|
| Positive (VCC) | Connects to the positive terminal of the power supply (center pin of the jack). |
| Negative (GND) | Connects to the ground terminal of the power supply (outer sleeve of the jack). |
| Switch Pin | Optional pin used to detect the presence of a plug or to disconnect internal power. |
Note: Not all Power Jacks include a switch pin. Check the datasheet for your specific model.
The Arduino UNO can be powered using a 2.1mm barrel jack. Below is an example of how to connect and use it:
If you want to monitor the external power supply voltage using an analog pin, you can use the following code:
// This code reads the voltage from an analog pin and displays it via Serial Monitor.
// Ensure the voltage divider circuit is used to step down the voltage to a safe level.
const int voltagePin = A0; // Analog pin connected to the voltage divider output
float voltage = 0.0;
void setup() {
Serial.begin(9600); // Initialize serial communication at 9600 baud
}
void loop() {
int sensorValue = analogRead(voltagePin); // Read the analog input
voltage = sensorValue * (5.0 / 1023.0); // Convert to voltage (assuming 5V reference)
// Print the voltage to the Serial Monitor
Serial.print("Voltage: ");
Serial.print(voltage);
Serial.println(" V");
delay(1000); // Wait for 1 second before the next reading
}
Note: Use a voltage divider circuit if the input voltage exceeds the Arduino's 5V limit.
| Issue | Possible Cause | Solution |
|---|---|---|
| No power to the circuit | Incorrect polarity or loose connection | Verify the polarity and ensure all connections are secure. |
| Overheating of the Power Jack | Exceeding current rating | Use a Power Jack with a higher current rating or reduce the circuit's load. |
| Circuit not switching to external power | Switch pin not connected or configured incorrectly | Check the switch pin connection and ensure proper wiring. |
| Voltage drop across the Power Jack | Poor contact or low-quality Power Jack | Use a high-quality Power Jack and ensure proper soldering or connections. |
Can I use a Power Jack for AC power?
What happens if I reverse the polarity?
How do I choose the right Power Jack for my project?
Can I use a Power Jack without the switch pin?
By following this documentation, you can effectively integrate a Power Jack into your electronic projects while ensuring safety and reliability.