The project works perfectly on USB, and as soon as you unplug it and run it on a battery or adapter it resets, or the motor won't move, or the regulator gets hot. Most of these problems come down to how it's powered.
First: how much does your project draw?
Before choosing, add up the current:
| Item | Approximately |
|---|---|
| An Uno board on its own | 45–50 mA |
| An indicator LED | 5–15 mA |
| A small OLED display | 10–20 mA |
| A relay module (coil on) | 70–80 mA |
| An SG90 servo while moving | 100–250 mA, and more momentarily |
| An ESP32 with WiFi | 100 mA average and pulses of 300–500 |
And if the total is above 400 mA, or there's a motor, the power needs planning.
1. USB (5 V)
- The easiest for experimenting.
- The Uno has a fuse (about 500 mA) that protects the computer.
- Suitable: the board, sensors, LEDs and a small display.
- Not suitable: motors, more than one small servo, or LED strips.
The cable itself matters: cheap, long USB cables have thin wires, and the voltage reaching the board is 4.5 V or less under load. And if the 5V on the board falls below about 4.3, the chip may reset. See wire gauge.
2. The jack or the Vin pin (7–12 V)
The voltage passes through the regulator on the board and comes out as 5 V.
- Below 7 V: the 5 V can sag and the board misbehaves.
- The higher the voltage, the hotter the regulator gets: the whole difference is burnt as heat. See Arduino pin limits and the 7805 and LDOs.
- A 9 V adapter is a comfortable choice.
How much can the regulator handle?
The small regulator on the Uno, with no heatsink, handles about 1 W before getting very hot and shutting down:
| Input | Heat at 100 mA | Approximate comfortable maximum current |
|---|---|---|
| 7 V | 0.2 W | About 500 mA |
| 9 V | 0.4 W | About 250 mA |
| 12 V | 0.7 W | About 140 mA |
So at 12 V, it can carry little more than the board itself. If you have more current than that, use a buck module that outputs 5 V and feed it into the 5V pin (below). See buck or linear.
3. The 5V pin directly
You feed regulated 5 V into the 5V pin, bypassing the regulator:
- Useful if you have a power supply or a buck module producing clean 5 V, and want to power the Arduino and sensors from it.
- Be careful: there's no protection. More than 5.5 V or reverse polarity → the board burns out. And the voltage must be regulated and clean.
An LM2596 module: set it to 5.0 V with the multimeter before connecting it to the Arduino, because it arrives set to any voltage. See the LM2596 module.
More than one source at once
- USB + Vin: the Uno has a circuit that automatically selects Vin if it's above about 6.6 V. Safe.
- USB + external 5V: the Uno doesn't have full protection here. If the external source is slightly higher, it can feed current back into the computer. It's better to disconnect the external 5V while uploading code, or use a USB cable with its 5V wire cut.
- Vin + external 5V: don't do it. Choose one.
Batteries
| Battery | My view |
|---|---|
| The square 9 V | Very small capacity, runs out quickly. For experiments only |
| 4 or 6 AA | 6 V on the 5V pin is unsafe (above 5.5 when new). 6 cells (9 V) on Vin is fine |
| Lithium 1S + boost to 5 V | Excellent for portable projects, with a suitable charger |
| Lithium 2S (7.4 V) on Vin | Good, and needs a BMS. See packs and the BMS |
| Power bank | Easy, but many switch themselves off if consumption is low |
Work out how long it will last with the battery life calculator, and see battery life.
In numbers: a square 9 V battery has a capacity of about 400–500 mAh, and much of it is wasted in the regulator. With an Uno drawing 60 mA, it will last only about 6–8 hours. The same project on an 18650 (3000 mAh) with a boost will last about a day and a half.
The power bank that switches off: if consumption is below about 50–100 mA, many power banks decide "nothing is connected" and turn off after a few seconds. The fix: a power bank with a low-current mode, or a small load that switches on periodically.
The ESP32 and 3.3 V
ESP32 boards have a 3.3 V regulator (usually an AMS1117). The same rules apply:
- From USB or the board's 5V/VIN pin (here VIN is usually 5 V, not 7–12 as on the Uno). Check your board.
- WiFi causes high current pulses: add a 470–1000 µF capacitor on the supply if it resets.
- Don't power it at 3.3 V from the Uno's 3.3V pin (only 50 mA).
- If it's on a battery, use deep sleep.
Motors and large loads
Don't run them from the board. Give them a separate source, switch them with a MOSFET or driver, and connect only the ground between the two sources. See ground.
If the board resets when the motor starts, it's usually a voltage drop: separate the motor's power, put a large capacitor on its supply, and see reducing noise.
Well-known power faults
| Symptom | Usual cause |
|---|---|
| Works on USB but not on the adapter | The adapter is below 7 V, or its polarity is wrong |
| The regulator is very hot | A high Vin voltage with a large current |
| Resets with the motor or servo | Voltage drop, and the motor is powered from the board |
| The computer disconnects the USB | The fuse or the computer's protection; high consumption |
| The power bank turns off after a while | Consumption is below the power bank's threshold |
Summary
- USB for experimenting.
- A 9 V adapter on the jack for a light, fixed project.
- Regulated 5 V on the 5V pin when consumption is high.
- A separate source for anything that moves.
FAQ
Can I use a 5 V phone adapter on the jack? No. The jack goes through the regulator, and 5 V is less than it needs, so about 4 V comes out and the board misbehaves. Connect a phone adapter via USB.
Can I use a 12 V adapter? Yes, if the project is light (the board and simple sensors). And if you'll draw more than about 150 mA from the 5V, the regulator will get very hot, so use a buck.