Arduino Uno

The classic ATmega328P development board with 5V logic and a 16 MHz clock, the standard entry point for learning Arduino.

  • MicrocontrollerATmega328P at 16 MHz, 5 V operating voltage
  • Memory32 KB flash (0.5 KB bootloader), 2 KB SRAM, 1 KB EEPROM
  • I/O14 digital pins (6 PWM: D3, D5, D6, D9, D10, D11), 6 analog inputs
  • ADC10-bit (analogRead returns 0 to 1023)
Arduino Uno, The classic ATmega328P development board with 5V logic and a 16 MHz clock, the standard entry point for learning Arduino.
In short

The Arduino Uno R3 is a 5 V microcontroller board built on the ATmega328P at 16 MHz, with 14 digital pins (6 with PWM) and 6 analog inputs (Arduino Uno Rev3 tech specs). Power it over USB, or with 7 V to 12 V on the barrel jack or VIN, and keep each I/O pin at 20 mA or less (Arduino tech specs). I2C is on A4 (SDA) and A5 (SCL), SPI on D10 to D13, and D0/D1 carry the USB serial link (Arduino UNO R3 datasheet, p. 10).

The Arduino Uno is an open-source microcontroller board built around Microchip's 8-bit ATmega328P running at 16 MHz. It exposes 14 digital I/O pins (6 capable of PWM) and 6 analog inputs on a header layout that has become the de facto standard, so the vast majority of shields and tutorials are designed to fit it. All logic operates at 5V.

A second chip, the ATmega16U2, handles USB-to-serial conversion, letting the board appear as a virtual COM port over its USB Type-B connector for both sketch uploads and serial communication. The main ATmega328P ships with the Arduino bootloader and, on the classic R3, sits in a socket rather than being soldered, so it can be swapped out if it is ever damaged. The board carries 32 KB of flash (0.5 KB used by the bootloader), 2 KB of SRAM, and 1 KB of EEPROM for non-volatile storage.

Makers use the Uno as a general-purpose controller: read sensors on the analog and digital pins, drive LEDs, displays, and motors (through suitable drivers), talk to peripherals over I2C, SPI, or UART, and react in real time from code written in the Arduino IDE. Its forgiving 5V I/O, large community, and abundant example code make it the usual first board for prototyping and education.

Arduino Uno pinout

tinkered.ai/components/arduino-unoArduino UnoD0UART RX · DigitalD1UART TX · DigitalD2DigitalD3PWM · DigitalD4DigitalD5PWM · DigitalD6PWM · DigitalD7DigitalD8DigitalD9PWM · DigitalD10PWM · SPI SS · DigitalD11PWM · SPI MOSI · DigitalD12SPI MISO · DigitalD13SPI SCK · DigitalSDAI2C SDA · DigitalSCLI2C SCL · DigitalA0ADC · DigitalA1ADC · DigitalA2ADC · DigitalA3ADC · DigitalA4ADC · I2C SDA · DigitalA5ADC · I2C SCL · Digital5VPower3V3PowerVINPowerGNDGroundGND2GroundGND3GroundRESETDigitalIOREFPowerAREFAREF
PinFunctionType
D0UART RX, Digital5 Vbidirectional
D1UART TX, Digital5 Vbidirectional
D2Digital5 Vbidirectional
D3PWM, Digital5 Vbidirectional
D4Digital5 Vbidirectional
D5PWM, Digital5 Vbidirectional
D6PWM, Digital5 Vbidirectional
D7Digital5 Vbidirectional
D8Digital5 Vbidirectional
D9PWM, Digital5 Vbidirectional
D10PWM, SPI SS, Digital5 Vbidirectional
D11PWM, SPI MOSI, Digital5 Vbidirectional
D12SPI MISO, Digital5 Vbidirectional
D13SPI SCK, Digital5 Vbidirectional
SDAI2C SDA, Digital5 Vbidirectional
SCLI2C SCL, Digital5 Vbidirectional
A0ADC, Digital5 Vbidirectional
A1ADC, Digital5 Vbidirectional
A2ADC, Digital5 Vbidirectional
A3ADC, Digital5 Vbidirectional
A4ADC, I2C SDA, Digital5 Vbidirectional
A5ADC, I2C SCL, Digital5 Vbidirectional
5V5V5 Vpower out
3V33.3V3.3 Vpower out
VINVINpower in
GNDGNDpower in
GND2GNDpower in
GND3GNDpower in
RESETDigital5 Vinput
IOREFIOREFpower out
AREFAREFinput

Before you wire it

Do
  • Never exceed 20 mA per GPIO pin.
  • Never exceed 200 mA total across all GPIO pins combined.
  • Avoid D0/D1 for general I/O (conflicts with Serial/USB upload).
  • D13 has a built-in LED and resistor: avoid for sensitive inputs.
  • Use PWM-capable pins for analogWrite (D3, D5, D6, D9, D10, D11).
  • Use analog pins (A0-A5) for analogRead.
  • Add pull-up/pull-down resistors for floating inputs.
  • Never wire anything to NC (reserved slot on the power header, position 1).
  • Do not invent Mega-style D18/D19 pins on an Uno.
Don’t
  • No exceeding 20 mA per pin or 200 mA total GPIO.
  • No connecting external voltage directly to the 5V pin (use VIN).
  • No using D0/D1 unless Serial communication is specifically needed.
  • No sourcing more than 50 mA from the 3.3V pin.
  • No connecting inductive loads directly to GPIO pins without transistor/MOSFET.
  • Logic level is 5V. All digital and analog pins read and drive 0-5V, so 3.3V sensors and modules generally need level shifting or a voltage divider on any line that feeds them from the Uno, and 5V outputs can damage 3.3V-only devices.
  • Power the board from USB, the 2.1 mm barrel jack, or the VIN pin. On the jack or VIN, supply the recommended 7-12 V so the onboard regulator has enough headroom; Arduino gives 6-20 V as the absolute limit, and higher voltages make the regulator run hot.
  • The 5V pin is a regulated output when the board is USB- or jack-powered. Do not connect an external supply to it: feed outside power through VIN or the jack.
  • Keep each I/O pin at 20 mA or less and the total across all pins under 200 mA (the ATmega328P's VCC/GND pin limit, datasheet p. 308), and draw no more than 50 mA from the 3.3V pin. Motors, relay coils, and LED strips must be driven through a transistor, driver IC, or relay module powered from a separate supply.
  • When powering peripherals or motors from an external supply, tie that supply's ground to an Arduino GND pin so signals share a common reference.
  • Pins D0 (RX) and D1 (TX) are shared with the USB serial link. Wiring devices to them can block sketch uploads and corrupt serial data.
  • D13 carries the onboard LED (LED_BUILTIN) and its resistor, so it is a poor choice for a sensitive input.

Specifications

Microcontroller
ATmega328P at 16 MHz, 5 V operating voltageArduino UNO R3 tech specs (store.arduino.cc, A000066)
Memory
32 KB flash (0.5 KB bootloader), 2 KB SRAM, 1 KB EEPROMArduino UNO R3 tech specs; Arduino UNO R3 datasheet, p. 2
I/O
14 digital pins (6 PWM: D3, D5, D6, D9, D10, D11), 6 analog inputsArduino UNO R3 tech specs
ADC
10-bit (analogRead returns 0 to 1023)Microchip ATmega328P datasheet DS40002061B, p. 2
Input voltage (VIN / jack)
7 to 12 V recommended, 6 to 20 V limitArduino UNO R3 tech specs; Arduino UNO R3 datasheet, p. 5
Current per I/O pin
20 mA recommended, 40 mA absolute maximumArduino UNO R3 tech specs; ATmega328P datasheet DS40002061B, p. 308
3.3 V pin
50 mA maximumArduino UNO R3 tech specs
USB-serial bridge
ATmega16U2, USB Type-B connectorArduino UNO R3 datasheet, pp. 2, 6
Size and weight
68.6 × 53.4 mm, 25 gArduino UNO R3 tech specs
Logic level
5 V
Clock speed
16 MHz
Flash
32 KB
RAM
2 KB
GPIO pins
20
ADC channels
6
ADC resolution
10 bits
PWM channels
6
Dimensions
68.6 × 15 × 53.34 mm
Weight
25 g

From the Arduino's datasheet, published by Arduino.

Common mistakes

  1. Driving motors or relays directly from a pin

    Arduino rates each I/O pin for 20 mA. Connecting a DC motor, relay coil, or high-power load directly can exceed the ATmega328P's 40 mA absolute maximum and damage the pin or the microcontroller. Use a transistor, MOSFET, motor driver, or relay module with its own supply.

  2. Assuming pins tolerate 3.3V devices both ways

    The Uno runs at 5V logic. Its 5V outputs can over-voltage a 3.3V-only sensor or module, and some 3.3V devices are not 5V tolerant on their inputs. Add level shifting where the datasheet calls for it.

  3. Underpowering through VIN or the barrel jack

    The onboard regulator needs headroom. Supplying less than 7 V into VIN or the jack leaves the 5V rail sagging and the board unstable. Use 7-12 V there, or power the board over USB.

  4. Wiring to D0/D1 while using Serial or USB

    Pins 0 and 1 are the hardware UART shared with the USB-to-serial chip. Devices connected there interfere with uploading sketches and with Serial.print debugging. Move them to other pins or disconnect during upload.

  5. Forgetting a common ground

    When a sensor, module, or motor runs off a separate power supply, its ground must connect to an Arduino GND pin. Without a shared reference, signal readings are erratic or the circuit does not work at all.

Arduino Uno questions

What voltage can I feed into the Arduino Uno's VIN pin?

Arduino recommends 7 V to 12 V on VIN or the barrel jack and gives 6 V to 20 V as the limit (Arduino UNO R3 tech specs). Below about 7 V the 5 V rail can sag; toward 20 V the regulator overheats. A 9 V battery or a 9 V to 12 V adapter is the usual choice.

How much current can an Arduino Uno pin supply?

Arduino rates each I/O pin for 20 mA (tech specs), and the ATmega328P's absolute maximum is 40 mA per pin with 200 mA through its VCC and GND pins (Microchip datasheet DS40002061B, p. 308). That is enough for an LED with a resistor, not for a motor or relay coil.

Can I connect a 3.3 V sensor to an Arduino Uno?

Yes, if you protect the sensor's inputs: the Uno drives its pins to 5 V, so a 3.3 V-only module needs a level shifter or a resistor divider on every line the Uno drives. Power the sensor from the 3.3V pin only if it draws 50 mA or less (Arduino tech specs).

Which pins are I2C and SPI on the Arduino Uno?

I2C is on A4 (SDA) and A5 (SCL), duplicated on the two pins beside AREF; SPI is on D10 (SS), D11 (MOSI), D12 (MISO) and D13 (SCK) (Arduino UNO R3 datasheet, p. 10). These differ from the Mega, which uses D20/D21 for I2C and D50 to D53 for SPI.

Which Arduino Uno pins support PWM?

Six pins: D3, D5, D6, D9, D10 and D11, marked with a tilde on the board (Arduino UNO R3 tech specs). analogWrite() on any other pin only gives fully on or off. Calling tone() takes over Timer2, which also drives PWM on D3 and D11.

Why won't my sketch upload to the Arduino Uno?

Check that the right board and port are selected, then disconnect anything wired to D0 and D1, since those pins share the USB serial link used for uploading. A shield or module holding RX or TX is the most common cause of a sync error.

Can I power the Arduino Uno from the 5V pin?

Treat the 5V pin as an output. Feeding a supply into it skips the regulator and the board's input protection, so power the Uno from USB, the barrel jack or VIN (7 V to 12 V) instead.

Build something with the Arduino Uno

  • Blink and first sketches

    The classic starting point: toggle the onboard LED on pin 13, then wire external LEDs and buttons to learn digital output, input, and timing.

    Build this
  • Temperature and humidity monitor

    Read a DHT22 or similar sensor and show live temperature and humidity on a 16x2 LCD or an OLED display over I2C.

    Build this
  • Ultrasonic distance and parking sensor

    Use an HC-SR04 to measure distance and trigger LEDs or a buzzer as an object gets closer, a common intro to timing pulses in code.

    Build this
  • Servo and robotic arm control

    Drive one or more SG90 servos from PWM pins, optionally steered by potentiometers, to build a pan-tilt mount or a small robotic arm.

    Build this
  • Obstacle-avoiding or line-following robot

    Combine a motor driver, distance or IR sensors, and the Uno's logic to build a small autonomous rover, a popular first robotics build.

    Build this
  • Environmental data logger

    Sample analog sensors on a timer and record readings to EEPROM or an SD card module over SPI for later review.

    Build this
For AI assistants

This page as plain Markdown, for ChatGPT, Claude or your own agent. /components/arduino-uno.md

What will you build with it?