Sub topic 4
Powering the board: USB, barrel jack, and VIN
This chapter assumes you know basic voltage, current, and resistance, can upload a sketch from the Arduino IDE, and can read a simple breadboard diagram. It covers the three ways to power an Arduino Uno R3, how the board chooses between them, and the limits that decide which one fits your project.
The three inputs
The Uno R3 accepts power through three inputs:
- USB-B connector. Supplies about 5V from your computer or a USB charger.
- Barrel jack. A 2.1 mm center-positive DC jack, intended for 7 to 12V.
- VIN pin. A header pin that feeds the same regulated path as the barrel jack. You can supply external voltage here, or read the barrel jack voltage from it.
The two unregulated inputs, the barrel jack and VIN, pass through a voltage regulator. USB does not. The 5V from USB goes onto the board's 5V rail directly, through a protective fuse.
Automatic source selection
You can connect USB and an external supply at the same time. The Uno compares the VIN voltage against a threshold of roughly 6.6V. When VIN is above that level, the board uses the external supply. Otherwise it uses USB. You never move a jumper.
This has a practical effect. An external supply below about 6.6V does not take over. If you feed 6V into the jack with USB unplugged, the 5V regulator cannot hold a clean 5V and the board may behave erratically. Treat 7V as the practical minimum.
USB power
USB is the simplest source. A standard computer port provides 5V and, by default, up to 500 mA for USB 2.0 devices (100 mA before the host negotiates). The board has a resettable fuse rated at 500 mA that opens if the draw exceeds that, which protects your computer's port.
Practical consequences:
- The 500 mA budget covers the whole board. The microcontroller and the USB interface chip use around 50 mA, so you have roughly 400 to 450 mA left for LEDs, sensors, and modules.
- Motors, servos, and long LED strips usually exceed this. Their start-up current can briefly pull the supply down and reset the board.
- A wall charger that supplies more than 500 mA is safe to use. The board only draws what the circuit demands, and the fuse still limits the draw.
USB also carries data, covered in the next chapters. For now, note that the power and data functions are independent. A charge-only cable powers the board but cannot upload sketches.
The barrel jack and the 5V regulator
The barrel jack sends the supply voltage to the onboard linear regulator, which steps it down to 5V. Linear regulators work by burning off the extra voltage as heat. The heat in watts is:
P = (Vin − 5V) × I
A concrete case: a 12V supply, with the board and its peripherals drawing 300 mA, gives (12 − 5) × 0.3 = 2.1W in the regulator. That is hot enough to burn a finger and can trigger the regulator's thermal shutdown. The same load on a 7V supply dissipates only 0.6W.
| Supply voltage | Heat at 100 mA | Heat at 300 mA | Heat at 500 mA |
|---|---|---|---|
| 7V | 0.2W | 0.6W | 1.0W |
| 9V | 0.4W | 1.2W | 2.0W |
| 12V | 0.7W | 2.1W | 3.5W |
The official recommendation is 7 to 12V, and the absolute limits are wider: the regulator tolerates up to about 20V, but only briefly and at very low current. In practice, 7 to 9V is the sweet spot. A 9V supply is a common choice, and it leaves room for the voltage drop that appears under load.
The jack is center-positive. Connecting a center-negative adapter reverses polarity. The Uno has a series diode that blocks reverse voltage on the jack path, so a reversed adapter usually causes no damage. The board simply does not power up. Check the adapter label anyway, because the diode is not a license to guess.
Using the VIN pin
The VIN pin connects to the same node as the barrel jack, after the reverse-protection diode on the jack input. It works in two directions:
- As an input. Apply 7 to 12V to VIN and GND. This suits battery packs wired onto a breadboard, where a plug is inconvenient.
- As an output. With the barrel jack powered, VIN carries the jack voltage minus the diode drop. You can use it to supply a motor driver or other device that needs the higher voltage. With only USB connected, VIN is not powered from USB, so it does not give you a reliable 5V.
Two cautions apply when using VIN as an input. First, a voltage applied at VIN does not pass through the reverse-protection diode, so reversed polarity can damage the board. Second, do not power the board from VIN and the barrel jack from two different supplies at the same time. They share one node, and two sources fight each other.
What the board gives back
Once the board is powered, the rails supply other parts of your circuit. The available current depends on the input:
| Source | 5V pin | 3.3V pin | Notes |
|---|---|---|---|
| USB only | Up to about 400-450 mA after board use | Up to 150 mA | Limited by the 500 mA fuse |
| 7V to 9V jack or VIN | About 800 mA before regulator heat becomes a problem | Up to 150 mA | Depends on heat dissipation |
| 12V jack or VIN | Falls to around 300-400 mA in practice | Up to 150 mA | The regulator overheats sooner |
These numbers are practical estimates, not guarantees. The regulator has a thermal limit, and enclosures, airflow, and ambient temperature all change it. The 3.3V rail comes from a separate small regulator, and it is limited to 50 mA on some board revisions and clones. Check your board's documentation if you plan to rely on it.
Choosing a source
Use these criteria to decide:
- Developing and uploading code: USB. It powers the board and gives you the Serial Monitor.
- Standalone project with light loads (a few LEDs, a sensor): a 7 to 9V adapter or battery pack on the jack or VIN.
- Motors, servos, relays, or LED strips: a separate supply for the heavy load, with its ground connected to the Arduino GND. Power the board and the load from different sources so motor surges do not reset the microcontroller.
- Battery operation: a 9V battery works but has low capacity at higher currents. A pack of six AA cells (about 9V when fresh) lasts much longer. Linear regulation wastes power, so for long battery life a different board design or a switching regulator is a better answer.
Common mistakes
- Plugging in a 12V or higher supply and leaving it under load. The regulator overheats and shuts down, and the board resets at random intervals.
- Powering motors from the 5V pin. The surge current causes brownouts. Use a separate supply and share ground.
- Forgetting the shared ground. When a separate supply powers part of the circuit, its ground and the Arduino ground must connect. Without a common reference, logic signals are meaningless.
- Expecting a USB hub to supply enough current. An unpowered hub shares one port's budget among all its devices.
- Measuring 4.6 to 4.8V on the 5V pin. On USB, the fuse and cable resistance drop a little voltage under load. That is normal, and a very low reading points to a poor cable or overloaded port.
Exercise
You power an Uno from a 12V adapter through the barrel jack. The board and its sensors draw 250 mA. How much power does the 5V regulator dissipate as heat, and what simple change reduces it?
Show answer
The regulator drops 12V − 5V = 7V at 0.25 A, so it dissipates 7 × 0.25 = 1.75W. Switching to a 7V to 9V adapter reduces the drop to 2 to 4V. A 9V adapter gives 4 × 0.25 = 1.0W, and a 7V adapter gives 0.5W.
Exercise
A project uses a servo that draws 600 mA when it moves. You plan to power everything from USB through the 5V pin. Why is this a problem, and how would you restructure the power?
Show answer
The 500 mA USB limit, and the fuse, cannot supply 600 mA plus the board's own current, so the board browns out or resets when the servo moves. Power the servo from a separate 5V supply sized for its current, and connect that supply's ground to the Arduino GND so the control signal has a shared reference.