Skip to content
RoboLearn
Not completed

Arduino UNO

What you’ll learn

  • What a microcontroller is and what’s on an Arduino UNO
  • What each group of pins does
  • How to install the Arduino IDE and upload the Blink example

What is an Arduino?

Arduino is a family of microcontroller boards plus free software to program them. A microcontroller is a tiny computer on one chip that runs one program, forever, from the moment it gets power. It reads sensors through its input pins and controls LEDs, motors and buzzers through its output pins.

The UNO is the classic beginner board. You’ll see a few versions:

Board Notes
UNO R3 (and most clones) The classic. Huge number of tutorials.
UNO R4 Minima / R4 WiFi Current official boards, same shape and pin layout. R4 WiFi adds Wi-Fi, Bluetooth and an LED matrix.
Nano Same idea, much smaller, plugs into a breadboard.

Everything in this course works on any of them.

A tour of the board

Part What it’s for
USB port Power from your computer and uploading programs
Barrel jack / VIN Power from a battery, 7–12 V recommended
Digital pins 0–13 On/off inputs and outputs. Pins marked ~ (3, 5, 6, 9, 10, 11) can also do PWM, a fake “in-between” output for dimming and motor speed
Analog pins A0–A5 Read voltages between 0 and 5 V, for sensors like knobs and light sensors
5V and 3.3V pins Power small sensors and modules (not motors!)
GND pins Ground, the 0 V reference. Every circuit connects back here
Built-in LED “L” Connected to pin 13; great for testing
Reset button Restarts your program from the beginning

Install the Arduino IDE

The IDE (Integrated Development Environment) is the free app where you write code and send it to the board.

  1. Download Arduino IDE 2 from arduino.cc/en/software and install it.
  2. Plug the UNO into your computer with a USB cable that carries data. Some cables are charge-only and won’t work. The green ON LED should light.
  3. At the top of the IDE, open the board/port menu and pick your board and port. The port is named like COM3 on Windows or /dev/cu.usbmodem… / /dev/cu.usbserial… on Mac.
  4. UNO R4 only: if asked, install the Arduino UNO R4 Boards package (Tools → Board → Boards Manager).
  5. Open File → Examples → 01.Basics → Blink.
  6. Click Upload (the → arrow). Wait for “Done uploading”.

What you should see

The orange L LED on the board blinks: 1 second on, 1 second off, forever. Unplug and replug the board: it starts blinking again by itself, because the program is stored on the chip.

If the upload fails

Problem Fix
No port appears Try another USB cable (data, not charge-only) or another USB socket
Clone board not detected Many clones use a CH340 USB chip; install its driver if your computer doesn’t recognise it
“Wrong board” or upload errors Check the board selected in the IDE matches your actual board
Port is busy Close other programs using the board (like a second IDE window)

Finished this lesson?