Cov txheej txheem:

Lilypad Arduino Tutorial: 4 Kauj Ruam
Lilypad Arduino Tutorial: 4 Kauj Ruam

Video: Lilypad Arduino Tutorial: 4 Kauj Ruam

Video: Lilypad Arduino Tutorial: 4 Kauj Ruam
Video: Kookye Lilypad Sewable Arduino Kit - Unboxing and Review 2024, Lub rau hli ntuj
Anonim
Lilypad Arduino Tutorial
Lilypad Arduino Tutorial

Nqe lus piav qhia:

LilyPad Arduino 328 Lub Rooj Tsav Xwm Loj yog Arduino-programmed microcontroller tsim los kom yooj yim sib xyaw rau hauv e-textiles thiab cov haujlwm hnav tau. Nws muaj cov haujlwm zoo ib yam koj pom hauv lwm Arduino cov laug cam, hauv lub teeb yuag, cov pob puag ncig tsim los txhawm rau txo qis qis thiab qhov profile, nrog cov tab dav uas tuaj yeem xaws tau thiab txuas nrog cov xov hluav taws xob.

LilyPad Arduino suav nrog ATmega328 nrog Arduino bootloader thiab tus lej tsawg kawg ntawm cov khoom sab nrauv kom nws me me/yooj yim li sai tau. Lub rooj tsavxwm no khiav los ntawm 2V txog 5V thiab muab cov pin loj tawm qhov uas ua rau nws yooj yim rau xaws thiab txuas. Txhua tus pins no, tshwj tsis yog (+) thiab (-), tuaj yeem tswj cov khoom siv txuas lossis cov khoom tso tawm (zoo li lub teeb, lub cev muaj zog, lossis hloov).

Nta:

  • 50 hli txheej sab nraud
  • Nyias 0.8 hli PCB

Kauj Ruam 1: Kev Npaj Khoom

Kev Npaj Khoom
Kev Npaj Khoom
Kev Npaj Khoom
Kev Npaj Khoom

Hauv qhov kev qhia no, peb yuav qhia yuav ua li cas upload cov cai los ntawm Arduino software lossis IDE rau Lilypad Arduino. Peb yuav tsum npaj cov ntaub ntawv hauv qab no ua ntej mus rau kauj ruam tom ntej:

  1. Poj niam rau poj niam jumper hlau
  2. USB mini B kab
  3. USB rau UART FTDI Converter

Kauj Ruam 2: Kev Kho Vajtse

Kev Kho Vajtse
Kev Kho Vajtse
Kev Kho Vajtse
Kev Kho Vajtse
Kev Kho Vajtse
Kev Kho Vajtse

Thawj daim duab qhia tau tias Lilypad Arduino tus pin daim duab uas sau cov pins feem. Daim duab thib ob thiab thib peb pom qhov sib txuas ntawm Lilypad Arduino thiab FTDI Converter. Xa mus rau thawj daim duab rau tus pin ntawm Lilypad Arduino, kev sib txuas tau teev tseg hauv qab no:

  1. GND> GND
  2. Vcc> Vcc
  3. RXD> TX
  4. TXD> RX
  5. DTR> DTR

Tom qab ua tiav qhov kev sib txuas, txuas FTDI Converter nrog lub zog txuas nrog USB cable.

Kauj Ruam 3: Ntxig rau Source Code

Ntxig Source Code
Ntxig Source Code
Ntxig Source Code
Ntxig Source Code
Ntxig Source Code
Ntxig Source Code

Hauv qhov kev qhia no, peb siv piv txwv hauv Arduino software los soj ntsuam kev ua haujlwm ntawm Lilypad Arduino.

  1. Nyob rau sab saud sab laug, nyem [Cov Ntaub Ntawv]> [Piv txwv]> [01. Basics]> [Blink] siv tus piv txwv hauv software Arduino.
  2. Tom ntej no, peb yuav tsum teeb tsa hom pawg thawj coj kom Arduino tuaj yeem nyeem Lilypad Arduino. Nyem [Cov cuab yeej]> [Pawg: "XXXXX"]> [Arduino/Genuino Uno].
  3. Vim li cas peb thiaj xaiv [Arduino/Genuino Uno] hloov [Lilypad Arduino]? Vim tias hauv qhov kev qhia no peb siv Lilypad Arduino uas tau ua hauv Suav teb, uas nws tau raug hlawv los ntawm bootloader li Arduino Uno, yog li nws tau ua haujlwm li Arduino Uno.
  4. Tom qab ntawd, peb yuav tsum teeb tsa chaw nres nkoj. Hauv daim duab saum toj no, peb siv COM4 ua chaw nres nkoj. Txhawm rau kom tau txais tus tsav tsheb ntawm FTDI Converter rau chaw nres nkoj, thov mus saib lub vev xaib:
  5. Tshaj tawm qhov chaws rau hauv Lilypad Arduino thiab soj ntsuam cov txiaj ntsig.

Kauj Ruam 4: Cov txiaj ntsig

Cov txiaj ntsig
Cov txiaj ntsig

Raws li [Blink] qhov chaws,

  1. Arduino yuav paub txog qib siab uas ua rau LED.
  2. Tom qab ib pliag, qib hluav taws xob yuav qis dua thiab yog li tua LED.
  3. Tom qab lwm 1 vib nas this, LED yuav qhib vim yog qib siab.
  4. Cov kauj ruam yuav rov ua dua kom txog thaum tsis muaj lub hwj chim rau arduino.

Hauv qhov kev qhia no, peb tau tshaj tawm [Blink] qhov chaws thiab saib qhov tshwm sim. LED ntawm Lilypad Arduino tab tom ntsais nrog lub sijhawm luv ntawm 1 thib ob. Tam sim no peb tuaj yeem txiav txim siab tias qhov chaws tau muab tso ua tiav thiab Lilypad Arduino ua haujlwm tau zoo!

Pom zoo: