NSK Electronics All topics

Arduino · Beginner

ArduinoUNO

Your first microcontroller board — install the free IDE, plug in USB, upload a sketch, and make the built-in LED blink. Plain English, step by step.

What is Arduino?

Arduino is a friendly way to learn electronics and programming. Three things go together:

The board

A small computer you can plug into USB — like the classic Arduino UNO R3.

The IDE

Free software on your PC/Mac where you write short programs called sketches.

The community

Millions of examples, libraries, and forums — you rarely start from a blank page.

You write a sketch → click Upload → the board runs it. Sensors, LEDs, motors, and relays all become reachable from a few pins.

Meet the Arduino UNO R3 pinout

This labelled diagram shows every useful connection on the board. You do not need to memorise them all today — just know where power, ground, and digital pins live.

Arduino UNO R3 pinout diagram: power pins, analog A0–A5, digital D0–D13 with PWM, SPI, I2C, UART, and ICSP headers colour-coded.

Arduino UNO R3 pinout — colour tags show power, ground, digital GPIO, analog inputs, SPI, I2C, and UART.

USB & power

USB Type-B (top) talks to your PC. 5V and GND power small parts. VIN / barrel jack for external supply.

Digital pins

D0–D13 on the right rail. Pins with a ~ can do PWM. Pin 13 has the built-in “L” LED — perfect for Blink.

Analog & more

A0–A5 read sensors. A4/A5 also do I2C (SDA/SCL). TX/RX (D1/D0) are the serial UART.

What you’re looking at: USB for programming, 5V & GND for power, digital pins for outputs/inputs, and the tiny LED next to pin 13 that blinks in the classic first sketch.

How to install Arduino IDE

Use the official Arduino IDE 2.x — free for Windows, macOS, and Linux.

  1. Download from the official site: arduino.cc/en/software — pick Windows, macOS, or Linux.
  2. Install — run the installer (Windows), drag to Applications (Mac), or follow the Linux package steps on that page.
  3. Open Arduino IDE. You should see a blank sketch with setup() and loop().

Windows

Download the Windows Win 10 and newer installer, or the ZIP if you prefer portable.

macOS

Download the macOS (Apple Silicon or Intel) build and move the app into Applications.

Linux

AppImage or distro packages — see the same software page for your flavour.

Tip: always prefer the official download link above — avoid random “Arduino crack” sites.

USB drivers — why you need them

Your PC talks to the board over USB. A driver is the tiny translator that makes the board appear as a serial port (COM on Windows, /dev/cu… on Mac).

Official UNO

Genuine UNO boards often use an ATmega16U2 USB chip. Windows 10/11 usually install the driver automatically when you plug in.

CH340 clones

Many affordable “UNO-compatible” boards use a CH340 USB chip. If no COM port appears, install the CH340 driver from the board maker’s docs, then replug.

  1. Plug the UNO into USB with a data cable (not charge-only).
  2. Wait a few seconds — Windows often shows “setting up device.”
  3. Open Device Manager (Windows) → Ports (COM & LPT) and look for Arduino or USB-SERIAL CH340.
  4. If nothing appears: try another cable/port, then search for the correct driver for your board’s USB chip.

Troubleshooting mindset: no port → cable or driver. Port exists but upload fails → wrong board selected or wrong port. Fix one thing at a time.

Select board and serial port

Before Upload works, the IDE must know which hardware you have and which USB port it is on.

  1. Tools → Board → Arduino AVR Boards → Arduino Uno
  2. Tools → Port → pick your board — COMx on Windows, or something like /dev/cu.usbmodem… on Mac

Follow the highlighted menu steps — then try the interactive LED Blink demo below.

Step 1: Click Tools in the menu bar.

What is a library?

A library is a ready-made pack of code someone else wrote so you do not reinvent the wheel. Want to drive an OLED screen or read a DHT temperature sensor? Install the matching library and call a few functions.

Blink — no library

Turning pin 13 on and off uses built-in commands only. No extra install.

When you need one

Displays, complex sensors, Wi‑Fi shields, SD cards — anything with a protocol or lots of setup.

How to open it

Sketch → Include Library → Manage Libraries… Search, Install, then #include in your sketch.

In plain English: libraries are like apps for your sketch — install only what the project needs.

Blinking LED — your first sketch

The simplest win: make an LED flash. On the UNO you can use the built-in LED on pin 13 — no breadboard required. Or wire an external LED + series resistor between pin 13 and GND.

  1. File → Examples → 01.Basics → Blink
  2. Confirm Board = Arduino Uno and the correct Port
  3. Click the Upload button (right arrow) — wait for “Done uploading”
  4. Watch the “L” LED near pin 13 blink once per second

HIGH means the pin is on (near 5 V); LOW means off (near 0 V).

// Blink — built-in LED on pin 13
void setup() {
  pinMode(LED_BUILTIN, OUTPUT);  // pin 13 = 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
}

Try it: LED Blink simulation

This mini board mimics pin 13 blinking with delay(1000). Press Start — watch the LED and the timeline. Change the delay to see slower or faster blinks.

Quick checklist

  • Install IDE from arduino.cc/en/software
  • Plug board → wait for drivers → note the COM / cu port
  • Tools → Board → Arduino Uno · Tools → Port → your port
  • File → Examples → 01.Basics → Blink → Upload
  • Libraries later — Blink needs none

In one sentence: Arduino = board + IDE + USB — pick Uno and the right port, upload Blink, and pin 13’s LED proves you’re ready for sensors and projects.