Sub topic 4
Powering the Arduino Uno: USB, Barrel Jack, and VIN
This chapter assumes you know the difference between voltage, current, and resistance, and that you have used setup() and loop() in the Arduino IDE. The Arduino Uno R3 can receive power from USB, a DC barrel jack, or the VIN pin. These paths do not have the same voltage or protection.
USB power
A USB cable normally supplies about 5 V from your computer to the Uno. The board uses that voltage for its 5 V rail, the ATmega328P microcontroller, and connected circuits. A resettable fuse helps protect the computer's USB port if the board draws too much current.
USB is convenient during development because one cable provides:
- Power for the board.
- A data connection for uploading sketches.
- A serial connection for the Serial Monitor.
The USB supply is limited by the computer, the cable, and the Uno's protection components. It is suitable for the board and small circuits, but it should not power motors, servos, or many bright LEDs directly.
Barrel jack and VIN
The barrel jack accepts an external DC supply. On the standard Uno, use a center-positive 2.1 mm plug. The recommended input range is 7–12 V. The board's voltage regulator reduces this input to approximately 5 V.
The VIN pin exposes the raw external input voltage. When you power the board through the barrel jack, VIN can provide that unregulated voltage to another circuit, but it is not a stable 5 V output. VIN can also be used as an external input, with the same regulator and voltage constraints as the barrel jack.
| Connection | Typical voltage | Main use |
|---|---|---|
| USB | 5 V | Development and moderate loads |
| Barrel jack | 7–12 V recommended | Standalone power |
| VIN | External input voltage | Raw input to the regulator |
| 5V pin | Regulated 5 V | Carefully controlled direct power |
| 3.3V pin | Regulated 3.3 V | Low-current 3.3 V devices |
The regulator turns excess voltage into heat. For example, converting 12 V to 5 V at a high load produces more heat than converting 7 V to 5 V. The Uno may become unreliable if the regulator overheats.
Automatic source selection
The Uno can usually remain connected to USB while an external supply is connected. Its power-selection circuit chooses an appropriate source. Do not connect separate power supplies directly together through the 5V pin, because one supply can drive current backward into the other.
All parts of an external circuit need a shared reference. Connect the circuit's GND to an Uno GND pin. Without this common ground, a signal voltage has no reliable reference.
Choosing a source
Use USB while uploading and testing a sketch. Use a regulated external adapter through the barrel jack when the project must run without a computer. Use VIN only when you understand that it carries the raw input voltage. For a clean 5 V source, a suitable regulated supply can feed the 5V pin, but this removes the Uno's normal input protection.
Exercise
You have a 9 V center-positive adapter and want to run an Uno without a computer. Which connection should you use, and what voltage should you expect on the 5V pin?
Show answer
Use the barrel jack. The onboard regulator reduces the 9 V input to approximately 5 V, although the regulator may produce heat as it dissipates the extra voltage.