The Arduino Uno R3 is an ATmega328P-based microcontroller board with 14 digital pins, 6 analog inputs and a USB-B port, programmed from the free Arduino IDE.
It runs at 5 V logic and 16 MHz, and its female headers accept UNO R3 shields and jumper wires. It is a common first board for learning electronics and for prototyping small automation and sensor projects.
Microcontroller
ATmega328P
Logic level
5 V
USB
Type-B
I/O
14 digital + 6 analog
Why choose it
Easy to start — program it from the free Arduino IDE, which includes built-in examples such as Blink.
Plenty of pins for first projects — 14 digital pins (6 with PWM) and 6 analog inputs, all on female headers.
Select Arduino Uno as the board; the AVR board files install from the IDE
UNO R3 shields
✓ Yes
Standard UNO R3 header layout
5 V sensors and modules
✓ Yes
Pins are 5 V logic
3.3 V-only modules
◐ With adapter
Use a level shifter on signal lines, or power and signal the module at its own voltage
In the box
Included
1 × Arduino Uno R3 board
Applications
Learning to code and wire LEDs, buttons and sensors
Prototyping small automation projects with relays, servos and displays
Classroom and workshop electronics exercises
Tutorial
What you'll build: set up the Arduino IDE, blink the onboard LED, then fade an external LED with PWM. About 30 minutes. You need a USB-B cable (a data cable, not a charge-only one); for Part 3 also a breadboard, an LED, a 220 Ω resistor and 2 jumper wires.
Part 1 — Set up the Arduino IDE (once only)
1
Download the Arduino IDE Go to the Arduino software page and download the free Arduino IDE for your computer (Windows, macOS or Linux).
2
Install and open it Run the installer, accept the defaults, then open the Arduino IDE.
3
Plug in the board Connect the board to your computer with the USB-B cable. The green ON LED on the board lights up.
4
Choose the board In the Arduino IDE open Tools → Board → Arduino AVR Boards → Arduino Uno. (In IDE 2.x you can also use the drop-down at the top and pick Arduino Uno.) The IDE offers to install the AVR board files the first time; accept.
5
Choose the port Open Tools → Port and pick the port that appears when the board is plugged in. If no port is listed, try another USB cable or another USB socket.
✓ Check: The bottom-right corner of the IDE shows Arduino Uno and your port name.
Part 2 — Upload your first sketch
6
Open the Blink example Click File → Examples → 01.Basics → Blink.
7
Upload it Click the Upload button (the arrow pointing right). Wait for “Done uploading”.
✓ Check: The small LED marked L on the board blinks once a second.
8
Try the same sketch with a message Paste the sketch below into a new window, upload it, then open Tools → Serial Monitor and set the speed (bottom right) to 9600 baud. 9600 is just the speed the board and computer agree to talk at.
▸ Example 1 — Blink with Serial messages
// Wiring: none - uses the LED marked L on the board (pin 13)
const int LED_PIN = LED_BUILTIN; // the onboard L LED (pin 13 on the UNO R3)
const int BLINK_MS = 500; // you can change this: time on / off in milliseconds
void setup() {
pinMode(LED_PIN, OUTPUT); // make the LED pin an output
Serial.begin(9600); // start the Serial Monitor connection (9600 baud)
Serial.println("OK - epartners.co.nz test");
}
void loop() {
digitalWrite(LED_PIN, HIGH); // LED on
Serial.println("LED on");
delay(BLINK_MS);
digitalWrite(LED_PIN, LOW); // LED off
Serial.println("LED off");
delay(BLINK_MS);
}
✓ Check: The Serial Monitor prints OK - epartners.co.nz test once, then LED on and LED off every half second while the L LED blinks.
Part 3 — First real project: fade an LED
9
Wire it up Unplug the USB cable first. A 220 Ω resistor protects the LED from too much current. The LED only works one way round: the long leg is +. Build the circuit shown below. Check the pin labels printed on your board.
■ Power ■ GND ■ Signal ■ I2C / SPI / UART ■ Other ⌒ = wires cross, not connected
#
Arduino pin
→
Part pin
Wire colour
Notes
1
D9 (PWM)
→
220 Ω resistor, first end
Yellow
D9 is a PWM pin (marked ~ on the board)
2
—
→
220 Ω resistor, other end → LED + (long leg)
Yellow
Resistor can go either way round
3
GND
→
LED − (short leg)
Black
GND is the return path for the current
Watch out: never connect an LED straight to a pin without a resistor, and never connect the 5 V pin to GND.
10
Upload the fade sketch Plug the USB cable back in, paste the sketch below into a new window and click Upload. PWM (pulse-width modulation) switches the pin on and off very fast; the longer it stays on, the brighter the LED looks.
▸ Example 2 — Fade an LED on D9
// Wiring: D9 -> 220 ohm resistor -> LED long leg (+); LED short leg (-) -> GND
const int LED_PIN = 9; // must be a PWM pin (3, 5, 6, 9, 10 or 11)
int brightness = 0; // current brightness, 0 (off) to 255 (full)
int stepSize = 5; // you can change this: bigger = faster fade
void setup() {
pinMode(LED_PIN, OUTPUT);
Serial.begin(9600);
Serial.println("OK - epartners.co.nz test");
}
void loop() {
analogWrite(LED_PIN, brightness); // set the LED brightness
brightness = brightness + stepSize; // move to the next level
if (brightness <= 0 || brightness >= 255) {
stepSize = -stepSize; // turn around at the ends
}
delay(30); // you can change this: pause between steps (ms)
}
✓ Check: The external LED slowly gets brighter, then dimmer, again and again. The Serial Monitor (9600 baud) shows OK - epartners.co.nz test once.
Troubleshooting
Problem
Likely cause
Fix
No port listed under Tools → Port
Charge-only USB cable, or a loose connection
Use a USB-B data cable, try another USB socket, then reopen the Tools menu
Upload fails with “not in sync” or a timeout
Wrong board or port selected, or something is connected to pins D0 / D1
Re-check Tools → Board and Port; unplug anything from D0 and D1 while uploading
Blink uploads but the L LED stays off
Sketch did not upload, or the wrong board was chosen
Click Upload again and wait for “Done uploading”
The external LED never lights
LED is the wrong way round, or the resistor is missing
Swap the LED legs (long leg to the resistor side) and check the wires against the table
Serial Monitor shows odd characters
Speed does not match the sketch
Set the Serial Monitor speed to 9600 baud
Try next: change stepSize to fade faster, or move the LED to another PWM pin (3, 5, 6, 10 or 11) and update LED_PIN.
Spotted a problem in this tutorial? Email support@epartners.co.nz and we'll check it and update the tutorial.
Good to know
Power it from USB or a 7–12 V supply on the DC jack. The VIN pin can take up to 20 V, but that is the absolute maximum, so stay well below it.
The I/O pins are 5 V. Do not feed them higher voltages, and use a level shifter for 3.3 V-only modules.
Unplug the board before you change the wiring.
Datasheet
Key figures from the manufacturer's datasheet for the ATmega328P, the microcontroller on this Arduino UNO R3 board.
ATmega328P microcontroller
Core
8-bit AVR
Flash memory
32 KB
SRAM
2 KB
EEPROM
1 KB
Operating voltage
1.8–5.5 V
Speed grades
0–4 MHz at 1.8–5.5 V, 0–10 MHz at 2.7–5.5 V, 0–20 MHz at 4.5–5.5 V
Operating temperature
−40 °C to +85 °C
Programmable I/O lines
23
ADC
10-bit, 6 channels in the 28-pin PDIP package (8 in TQFP and QFN)
PWM channels
6
Write endurance
10,000 cycles (flash), 100,000 cycles (EEPROM)
Package options
28-pin PDIP, 32-lead TQFP, 28-pad and 32-pad QFN/MLF
Six: D3, D5, D6, D9, D10 and D11, marked with ~ on the board.
Technical question about this part? Email support@epartners.co.nz with your board and wiring, and we'll help you get it working.
Shipping: $5.99 urban, $9.99 rural. Free shipping on orders of $100 or more.
Order by 10:30am (NZT), Monday to Friday, and we dispatch the same day. Orders placed after 10:30am, on weekends or on public holidays are dispatched the next business day.
Delivery usually takes 1–2 business days after dispatch (2–3 for rural addresses). See our Shipping Policy for full details.