🛠 Faire clignoter la LED intégrée de l'UNO R3

Arduino UNO R3 · debutant · Schéma : IMG-uno-r3-debutant-1-clignoter-led-uno.svg — Arduino UNO R3 vue de dessus, flèche sur la LED marquée L (pin 13) et câble USB-B branché.

Objectives

Discover the reference board of the Arduino ecosystem: the UNO R3 (ATmega328P, 8-bit AVR, 16 MHz, 32 KB of flash, with 0.5 KB reserved for the bootloader). You will upload your first program and make the built-in LED blink, without any wiring.

Hardware

Complete code

// Blink — LED intégrée sur la pin 13 (LED marquée "L")
const uint8_t LED = 13;

void setup {
  pinMode(LED, OUTPUT);      // la broche devient une sortie
}

void loop {
  digitalWrite(LED, HIGH);   // LED allumée
  delay(500);                // 500 ms (blocant, c'est OK pour débuter)
  digitalWrite(LED, LOW);    // LED éteinte
  delay(500);
}

In the IDE: Tools > Board > Arduino Uno, then select the displayed serial port, and click Upload.

Expected verification

The "L" LED blinks every 0.5 s as soon as the upload is complete, and continues even when you unplug the USB and power via the barrel jack (6–20 V, 7–12 V recommended): the program is burned into the flash, it runs autonomously.

Common errors

Other tutorials for this board

Code examples for this board

← Back to the board 🛠 All tutorials