0
0
AutocadHow-ToBeginner · 3 min read

How to Power Arduino Without USB: Simple Methods Explained

You can power an Arduino without USB by connecting an external power source to the Vin pin or the DC power jack. Use a 7-12V power supply like a battery pack or wall adapter to safely power the board.
📐

Syntax

To power an Arduino without USB, connect your power source to either the Vin pin or the DC power jack. The Vin pin accepts 7-12 volts, which the Arduino's onboard voltage regulator converts to 5 volts for the board.

Parts:

  • Vin pin: Input voltage pin (7-12V recommended)
  • GND: Ground pin to complete the circuit
  • DC power jack: Barrel jack for 7-12V adapter
plaintext
Power Source (7-12V) --> Vin pin
Power Source Ground --> GND pin

OR

Power Source (7-12V) --> DC power jack
Power Source Ground --> GND pin
💻

Example

This example shows how to power an Arduino Uno using a 9V battery connected to the Vin and GND pins. The Arduino will run a simple LED blink program powered by the battery.

arduino
#define LED_PIN 13

void setup() {
  pinMode(LED_PIN, OUTPUT);
}

void loop() {
  digitalWrite(LED_PIN, HIGH); // LED on
  delay(1000);                 // wait 1 second
  digitalWrite(LED_PIN, LOW);  // LED off
  delay(1000);                 // wait 1 second
}
Output
The onboard LED on pin 13 blinks on and off every second.
⚠️

Common Pitfalls

Common mistakes when powering Arduino without USB:

  • Using voltage less than 7V on Vin can cause unstable operation.
  • Supplying more than 12V risks damaging the board.
  • Not connecting the ground (GND) of the power source to Arduino ground causes circuit failure.
  • Trying to power the Arduino 5V pin directly with more than 5V can damage the board.

Always check your power source voltage and polarity before connecting.

plaintext
/* Wrong way: Connecting 9V directly to 5V pin - DO NOT DO THIS */
// 9V battery positive --> 5V pin (WRONG)
// 9V battery negative --> GND pin

/* Right way: Connecting 9V battery to Vin and GND */
// 9V battery positive --> Vin pin
// 9V battery negative --> GND pin
📊

Quick Reference

Power MethodVoltage RangeConnection PointsNotes
DC Power Jack7-12VBarrel jackUse regulated adapter, polarity matters
Vin Pin7-12VVin and GND pinsOnboard regulator converts to 5V
5V Pin (Advanced)5V only5V and GND pinsBypass regulator, must supply stable 5V
Battery Pack7-12VVin and GND pinsUse fresh batteries, check voltage

Key Takeaways

Use 7-12V power source connected to Vin or DC power jack to power Arduino without USB.
Always connect the power source ground to Arduino GND to complete the circuit.
Never supply more than 12V or less than 7V to Vin to avoid damage or instability.
Do not connect voltages higher than 5V directly to the 5V pin.
Check polarity and voltage before connecting external power to Arduino.