Sub topic 3
The Power Pins and What Each One Does
Assume you know basic voltage, current, and resistance. You should also know the Arduino IDE and the setup() and loop() structure of a sketch. This chapter uses the Arduino Uno R3 as the reference board.
The power header
The Uno has several pins that distribute power or describe the board's electrical levels.
| Pin | Main purpose | Important detail |
|---|---|---|
| `5V` | Regulated 5-volt supply | Can power small 5V circuits |
| `3.3V` | Regulated 3.3-volt supply | Limited to about 50 mA |
| `VIN` | External input to the voltage regulator | Use a suitable external voltage |
| `GND` | Electrical ground | All connected circuits need a shared reference |
| `IOREF` | Logic-level reference for shields | Usually 5V on an Uno |
| `AREF` | Analog reference input | Used by the ADC, not a general power output |
A voltage is meaningful only relative to a reference. In most Arduino circuits, that reference is GND. If a sensor has its own supply but its ground is not connected to Arduino GND, the Arduino may read unpredictable values.
The 5V and 3.3V pins
The 5V pin is the Uno's regulated 5-volt rail. It can power small sensors and logic circuits. It is not the same as a digital output pin. A power pin is intended to distribute supply current, while an I/O pin is controlled by your sketch and has a much lower safe current limit.
The 3.3V pin comes from the board's 3.3-volt regulator. It is useful for devices that require 3.3V logic or supply voltage. The Uno's 3.3V output is limited, so check the device's current requirement before connecting it.
Never connect the 5V and 3.3V pins together. That creates a direct conflict between two power rails.
VIN, barrel jack, and USB power
VIN is the input side of the Uno's 5V regulator. You can supply the board through VIN with an appropriate external voltage. The barrel jack provides a similar path. A 7–12V supply is commonly recommended for the barrel jack, although the exact safe range depends on the board and regulator conditions.
The regulator converts the higher input voltage into 5V. The excess voltage becomes heat. For example, powering the Uno from 12V creates more regulator heat than powering it from 7V.
USB supplies 5V and can also upload sketches and carry serial data. The Uno normally selects between USB power and external power automatically. Do not connect an unrelated, unregulated 5V source to the 5V pin while another 5V source is active. The sources can drive current into each other.
IOREF and AREF
IOREF tells an attached shield which logic voltage the board uses. On the Uno, it is normally 5V. A shield can use this information to adapt to boards that operate at another voltage.
AREF is the reference voltage for analog-to-digital conversion. It is not a general-purpose supply pin. If you provide an external analog reference, configure the sketch appropriately and follow the Uno documentation. Applying a voltage above the board's limits can damage the analog input circuitry.
Exercise
You have a 9V adapter and a 3.3V sensor. Which Uno connections are appropriate?
Show answer
Connect the adapter to the barrel jack or VIN, connect the sensor to 3.3V, and connect the sensor ground to GND. Confirm that the sensor's signal voltage is safe for the Uno's inputs.