སྒྱུ་རྩལ
མཛེས་སྡུག་དང་བདེ་ཐང
བཟོ་རིག
རིག་གནས་དང་ལོ་རྒྱུས
དགའ་སྟོན
ཁོར་ཡུག
ཟས་དང་བཏུང་རྫས
ཕྱིར་འཕྲུལ་རིག
ཚན་རིག
རྩེད་འགྲན
རིག་རྩལ
གྱོན་རུང
Blinking an LED with LilyPad Arduino
Ed

བཟོས་མཁན

Ed

13. སྤྱི་ཟླ་བདུན་པ 2026FI
༤༢
༠
༠
༠
༠

Blinking an LED with LilyPad Arduino

Step up from a plain sewn circuit to a sewable computer. The LilyPad Arduino is a washable microcontroller you program from your PC, then run on a coin cell — so your fabric can blink, fade and react on its own. This project sews an LED to the board and uploads the classic 'blink' sketch: the gateway to every sensor-driven wearable that follows.

བར་མ
1 hour

ལམ་སྟོན

1

Sew the LilyPad Arduino and an LED

Sew a LilyPad Arduino Simple board and a LilyPad LED onto felt with conductive thread: the LED's + tab to numbered pin 5, and the LED's - tab to the board's - tab. Loop 3–4 times through each hole, trim tails, and keep the two lines from crossing.

གོམ་པ་འདིའི་རྫས་རིགས:

LilyPad Arduino Simple BoardLilyPad Arduino Simple Board1 དུམ་བུ།
LilyPad LED - 5 pcsLilyPad LED - 5 pcs1 སྒྲིལ་ཐུམ།
Conductive Thread - 60g (Stainless Steel)Conductive Thread - 60g (Stainless Steel)1 སྐུད་ཤིང་།
ལག་པའི་ཚེམ་ཁབ།ལག་པའི་ཚེམ་ཁབ།1 སྒྲིལ་ཐུམ།
བལ་གྱི་ཕྱིང་ལེབ།བལ་གྱི་ཕྱིང་ལེབ།1 ལེབ་གཟུགས།
2

Connect the FTDI programmer

Plug a LilyPad FTDI Basic Breakout onto the board's 6-pin programming header (line up GND to GND, DTR to DTR) and connect it to your computer with a USB cable. Install the free Arduino IDE, then choose the LilyPad Arduino board and the FTDI's serial port under Tools.

གོམ་པ་འདིའི་རྫས་རིགས:

LilyPad FTDI Basic Breakout - 5VLilyPad FTDI Basic Breakout - 5V1 དུམ་བུ།
SparkFun Cerberus USB Cable - 1.8 meterSparkFun Cerberus USB Cable - 1.8 meter1 དུམ་བུ།

ལག་ཆས་དགོས་མཁོ:

Arduino IDE ཡོད་པའི་གློག་རིགArduino IDE ཡོད་པའི་གློག་རིག
3

Upload the blink sketch

Paste this sketch into the Arduino IDE and click Upload. It flashes the LED on pin 5 on and off twice a second.

lilypad_blink.inoarduino
// Blink an LED sewn to a LilyPad Arduino
// The LED's + tab is stitched to pin 5, its - tab to the board's - (GND).

const int LED_PIN = 5;   // LilyPad LED sewn to pin 5

void setup() {
  pinMode(LED_PIN, OUTPUT);   // pin 5 drives the LED
}

void loop() {
  digitalWrite(LED_PIN, HIGH); // LED on
  delay(500);                  // wait half a second
  digitalWrite(LED_PIN, LOW);  // LED off
  delay(500);                  // wait half a second
}

// TRY THIS:
// - delay(100) for fast blinking, delay(2000) for slow
// - different ON and OFF times: HIGH delay(800), LOW delay(200)
4

Go wireless on a coin cell

Unplug the FTDI. Sew a LilyPad coin-cell battery holder to the board — + tab to +, - tab to - — and drop in a CR2032. Switch it on and the LED blinks on its own, no computer attached. Your fabric now runs its own program.

གོམ་པ་འདིའི་རྫས་རིགས:

LilyPad Coin Cell Battery Holder - w/Switch - 20mmLilyPad Coin Cell Battery Holder - w/Switch - 20mm1 དུམ་བུ།
CR2032 ཊམ་ཀའི་གློག་སྟེགས།CR2032 ཊམ་ཀའི་གློག་སྟེགས།1 དུམ་བུ།
5

Experiment

Re-attach the FTDI and change the sketch: adjust the delays for a heartbeat rhythm, or sew a second LED to another pin and blink them in turn. This is the base every LilyPad sensor project builds on.

རྫས་རིགས

9

ལག་ཆས་དགོས་མཁོ

2
ཚོད་དཔག་བསྡོམས
བཟོ་མི་གིས་ཉོ་མི་དེ། གོང་ཚད་མེད་པར་སྟོན་མི་ཅ་ཆས་ཚུ་ཁྱོད་ཀྱིས་ག་ཏེ་ལས་ཉོཝ་ཨིན་ན་དེ་ལས་ཐོབ་ཨིན།
$87.95

འབྲེལ་ཡོད་བིལུ་པིརིན་ཊི

བིལུ་པིརིན་ཊི་འདི་ཚུ་ཐབས་ལམ་དང་རྫས་རིགས། སྤྱི་ཆོས་བགོ་བཤའ་བྱེད

CC0 སྤྱི་དབང

བིལུ་པིརིན་ཊི་འདི་CC0 འོག་བཀྲམས་ཡོད། ཁྱེད་རང་གིས་ཆོག་མཆན་མ་བཞེས་པར་ཕབ་ལེན་དང་བཟོ་བཅོས། བགོ་བཤའ། དགོས་མཁོ་གང་ལའང་བཀོལ་སྤྱོད་བྱས་ཆོག

བཟོ་མཁན་ལ་རྒྱབ་སྐྱོར་བྱེད་པའི་ཆེད་ཁོང་ཚོའི་བིལུ་པིརིན་ཊི་བརྒྱུད་ཐོན་སྐྱེད་ཉོ། བཟོ་མཁན་གྱིས བཟོ་མཁན་གྱི་ཁེ་ཕོགས ཚོང་པས་གཏན་འཁེལ་བྱས་པ། ཡང་ན་བིལུ་པིརིན་ཊི་འདིའི་པར་གསར་བཟོས་ཏེ་ཁྱེད་རང་གི་བིལུ་པིརིན་ཊི་ནང་མཐུད་སྦྲེལ་བྱས་ཏེ་ཡོང་སྒོ་བགོ་བཤའ་བྱེད།

གྲོས་བསྡུར

(0)

ནང་འཛུལ གྲོས་བསྡུར་ནང་མཉམ་ཞུགས་ཆེད

བསམ་ཚུལ་ཚུ་ཐོབ་བཞིན...