🛠 Clignotement de la LED builtin (broche 13)

Arduino Pro Mini · debutant · Schéma : IMG-pro-mini-debutant-1-promini-blink-led.svg — Arduino Pro Mini avec sa LED builtin sur la broche 13, break-out FTDI Basic branché sur le connecteur 6 broches pour la programmation

Objectives

The built-in LED of the Arduino Pro Mini (pin 13, LED_BUILTIN constant in the core) is soldered onto the board: no external wiring is required. This first tutorial verifies that the board is alive, that the ATmegaBOOT serial bootloader accepts an upload via the 6-pin connector — the Pro Mini has NO USB chip — and familiarizes you with the critical board selection: choose "Arduino Pro or Pro Mini" and then the CPU corresponding to YOUR model (5 V/16 MHz or 3.3 V/8 MHz).

Hardware

Complete Code

// Clignotement de la LED builtin (broche 13)
const uint8_t LED = LED_BUILTIN;   // broche 13 sur Pro Mini

void setup {
  pinMode(LED, OUTPUT);            // broche en sortie
}

void loop {
  digitalWrite(LED, HIGH);         // LED allumée
  delay(500);                      // 500 ms
  digitalWrite(LED, LOW);          // LED éteinte
  delay(500);                      // 500 ms
}

Expected Verification

In the Arduino IDE, select the board "Arduino Pro or Pro Mini" and the CPU corresponding to your model (for example "ATmega328P (5V, 16MHz)"), then the serial port of the FTDI/CP2102 adapter. The upload takes a few seconds (57600 bauds with the factory bootloader) and the LED blinks every 500 ms — even once the adapter is unplugged and the board is powered by a battery: the program fits within the 32 KB of flash (of which 2 KB is for the original ATmegaBOOT bootloader).

Common Errors

Other tutorials for this board

Code examples for this board

← Back to the board 🛠 All tutorials