🛠 Premier clignotement d'une LED cousue

LilyPad Arduino · debutant · Schéma : IMG-lilypad-debutant-1-lilypad-clignotement-led.svg — Vue de dessus de la LilyPad SimpleSnap avec pile LiPo 3,7 V clipsée et LED cousue entre la pastille 13 et la pastille moins.

Objectives

Get familiar with the LilyPad Arduino SimpleSnap: clip on the 3.7 V LiPo battery, wire a LilyPad LED with conductive thread, upload the first sketch, and make a sewn LED blink. Understand the role of setup/loop, digitalWrite, and the pinout of the pads.

Materials

Complete code

// Clignotement LED embarquée — LilyPad SimpleSnap (ATmega328P @ 8 MHz)
const uint8_t LED = 13;    // LED verte embarquée (pastille 13)

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

void loop {
  digitalWrite(LED, HIGH); // LED allumée
  delay(500);              // 500 ms — le timing est identique à 8 MHz
  digitalWrite(LED, LOW);  // LED éteinte
  delay(500);
}

Expected verification

The onboard LED blinks at 1 Hz (500 ms on, 500 ms off), running autonomously once the 3.7 V battery is clipped on. A sewn LED between pad 13 and the "−" pad blinks identically. The upload succeeds with the "LilyPad Arduino" board selected and the FTDI adapter connected to the corresponding pads.

Common errors

Other tutorials for this board

Code examples for this board

← Back to the board 🛠 All tutorials