Quick answer: install the Arduino IDE, plug in your UNO R3, choose Arduino Uno and its port, then open File → Examples → 01.Basics → Blink and click Upload. The small LED marked L on the board, the built-in LED on pin 13, starts blinking once a second.
Every electronics journey starts with a blinking LED. It sounds simple, but it proves that your computer, the USB cable, the board and the Arduino IDE all work together. In this guide you install Arduino IDE 2, upload your first program, called a sketch, to the UNO R3's built-in LED, and then wire your own LED on a breadboard. You will also learn what each line of the code does, so you can change it yourself.
What you need
- UNO R3 board and USB cable, a breadboard, 1 LED (any colour), 1 resistor of 220 Ω and 2 jumper wires. All of them come in the EEMENTOR UNO R3 Starter Kit.
- A computer with Windows, macOS or Linux. On a Chromebook, use the online Arduino Cloud Editor instead.
Step 1: Install the Arduino IDE 2
- Download the Arduino IDE from arduino.cc/en/software. Choose the version for your operating system and install it like any other program.
- Start the IDE. The first time, it may install some extra parts and ask for permission to install USB drivers: say yes.
Version 2.x is the current one. It has a faster editor with auto-complete, a built-in Serial Monitor and Plotter, and the Boards Manager and Library Manager in the left sidebar.
Step 2: Connect the UNO R3 and pick the board and port
- Connect the UNO R3 to your computer with the USB cable. The green ON LED on the board lights up.
- In the IDE, open Tools → Board and choose Arduino AVR Boards → Arduino Uno.
- Open Tools → Port and choose the port that appeared when you plugged in the board, for example
COM3on Windows or/dev/cu.usbserial…or/dev/cu.usbmodem…on a Mac.
You can also use the board selector at the top of the window: it often shows "Arduino Uno" on the right port automatically. If the port appears as an unknown board, pick it and search for "Arduino Uno". Can't find a port at all? See Common errors and fixes.
Step 3: Blink the built-in LED
The UNO R3 has a tiny LED marked L next to pin 13. It is connected to pin 13 inside the board, so you can blink it without any wiring. In your sketch you can call it LED_BUILTIN, a name that always points to the right pin for the board you selected.
// Blink the built-in LED (pin 13 on the UNO R3)
void setup() {
pinMode(LED_BUILTIN, OUTPUT); // make the LED pin an output
}
void loop() {
digitalWrite(LED_BUILTIN, HIGH); // LED on
delay(1000); // wait 1 second
digitalWrite(LED_BUILTIN, LOW); // LED off
delay(1000); // wait 1 second
}
Copy the code into the IDE, or open the same example from File → Examples → 01.Basics → Blink. Click Verify (the tick) to check it, then Upload (the right arrow). The TX and RX LEDs flicker, the IDE says Done uploading, and the L LED blinks: one second on, one second off.
Step 4: Wire your own LED
Now build a real circuit. An LED has a long leg (the positive anode) and a short leg (the negative cathode). The 220 Ω resistor limits the current so the LED and the board pin aren't damaged. Never connect an LED straight to a pin without one.

Build it step by step
Plug in all the parts first, then add the wires in this order. In each picture the new wires are bright and the ones from earlier steps are faded. Click a picture to see it larger.
| From | To |
|---|---|
| UNO pin 8 | Resistor, then the LED's long leg |
| LED short leg | UNO GND |
Step 5: Blink the LED on pin 8
This sketch is the same idea, but it uses pin 8 and a faster rhythm. Giving the pin a name with const int means you only have to change one line to move the LED to another pin.
const int LED_PIN = 8;
void setup() {
pinMode(LED_PIN, OUTPUT); // pin 8 drives the LED
}
void loop() {
digitalWrite(LED_PIN, HIGH); // LED on
delay(500); // wait half a second
digitalWrite(LED_PIN, LOW); // LED off
delay(500);
}
Click Upload. After a few seconds the IDE says "Done uploading" and your LED starts blinking twice a second.
What you should see

Build this circuit in EEMENTOR Lab
Wire it yourself in your browser before you touch a real wire. No sign-up, nothing to install.
Build it yourself
- The UNO and this lesson’s parts are already placed. Wire them as the lesson shows. Pins with no wire show red.
- Missing a part? Add it from the parts list on the left.
- Press Run, then try the inputs: click, hold or slide them under Selected.
- Then try this lesson’s sketch: paste it into the Code tab and press Compile & Run.
EEMENTOR Lab is free and in beta. Results are a guide; a real build can differ slightly. About the Lab
How the blink code works

Every Arduino sketch has two parts. setup() runs once when the board starts or resets; it is where you tell the board how each pin will be used. loop() then runs again and again, forever, as long as the board has power.
-
pinMode(pin, OUTPUT)makes the pin able to drive an LED. -
digitalWrite(pin, HIGH)switches the pin to 5 V, and the LED lights up.LOWswitches it to 0 V. -
delay(500)pauses for 500 milliseconds, half a second. 1000 milliseconds is one second.
The sketch stays on the board after you unplug it. Power the UNO from a USB charger or a battery and it starts blinking again straight away.
Common errors and fixes
- No port in Tools → Port: try another USB cable, because some cables only charge. Many UNO R3 compatible boards use a CH340 USB chip (the small chip near the USB socket says so). Install the WCH CH340 driver, restart the IDE and plug the board in again.
- "avrdude: stk500_recv(): programmer is not responding" or "not in sync": the IDE can't talk to the board. Check that Arduino Uno and the right port are selected, close the Serial Monitor in other windows, and unplug anything connected to pins 0 and 1.
- "Port busy" or "Access is denied": another program is using the port, often a second IDE window. Close it and upload again.
- The upload works but the LED stays off: turn the LED around; it only conducts in one direction. Then check that the resistor and the LED share a breadboard row and that the wire really goes to pin 8.
- The LED is very dim: check the resistor colour bands. 220 Ω is red, red, brown. A 10 kΩ resistor (brown, black, orange) makes it almost invisible.
-
Compile error such as "expected ';' before…": a semicolon or bracket is missing. Copy the code again, or compare it line by line. Upper and lower case matter:
digitalwritewon't work.
FAQ
Which pin is the built-in LED on the Arduino UNO R3?
Pin 13. It is the small LED marked L on the board. In code you can use LED_BUILTIN, which points to the right pin on any Arduino board.
Why do I need a resistor with an LED?
Without a resistor, too much current flows through the LED and the board pin, which can damage both. A 220 Ω resistor keeps the current at a safe level for a 5 V board like the UNO.
Does the order of the resistor and the LED matter?
No. The resistor can sit before or after the LED, as long as it is in the same loop. What matters is that the LED's long leg points towards the pin and the short leg towards GND.
How do I make the LED blink faster?
Make the numbers in both delay() calls smaller. delay(100) gives ten changes per second; delay(2000) keeps the LED on for two seconds.
Can I use the Arduino IDE without installing anything?
Yes, with the Arduino Cloud Editor in your web browser. It needs a free Arduino account and a small helper program, the Arduino Cloud Agent, to upload to your board over USB.

