Lilypad: zonse za bolodi laling'ono la Arduino

arduino kakombo pad

Pali v"Zokometsera" zingapo za ku Arduinotitero. Kupatula Arduino UNO ndi mchimwene wake wamkulu Mega Arduino, palinso mbale izi. Ena okhala ndi mawonekedwe achindunji kuti akwaniritse zosowa zonse za opanga. Mwanjira imeneyi azolowera mitundu yonse ya mapulani a DIY. Wosiyana ndi zomwe tatchulazi ndi Lilypad.

Lilypad ndi bolodi laling'ono lotsegulira gwero komanso ndi mawonekedwe ena ofanana ndi mbale Arduino UNO m'munsi, koma kukula kwake kwachepetsedwa kwambiri kuti athe kusinthidwa kukhala mapulojekiti ophatikizidwa, kugwiritsa ntchito pang'ono, zida zazing'ono zomwe kuchepetsa kukula ndikofunikira, ngakhale zovala zapakhomo ...

Lilypad ndi chiyani?

maluwa a lily

Chimodzi mwazinthu zazing'ono zomwe zapambana mgulu la DIY ndi zovala. Ndiye kuti, m'Chisipanishi amatha kukhala zida "zovala", ngakhale sizikumveka bwino kwambiri. Monga momwe mungaganizire, ngati simukudziwa, ndi zida zomwe zingagwiritsidwe ntchito ngati zovala kapena zowonjezera. Zachidziwikire kuti mwawona kale zovala monga maulonda anzeru, T-shirts, zipewa, ndi zina zambiri, zomwe zimakhala ndi zida zamagetsi zosonyeza mauthenga, kutulutsa mtundu wina wazizindikiro, ndi zina zambiri.

Pazida zamtunduwu sizothandiza kugwiritsa ntchito Arduino UNO, Mega, ndi zina zambiri, chifukwa ndi matabwa akuluakulu, omwe pamodzi ndi mphamvu zomwe matumbawa amafunikira, zimapangitsa kuti ntchito yomanga zovala zisatheke wanzeru. Ichi ndichifukwa chake matabwa ngati Lilypad adapangidwa, chidutswa china chofunikira mkati mwachilengedwe cha Arduino.

Choncho, Zomera za Lilypad sizina zopanda kanthu koma matabwa otukula omwe amapatsa opanga mphamvu zofanana ndi matabwa ena, koma ndi kukula kocheperako komanso kuthekera kophatikizira mphamvu zamagetsi, monga yaying'ono batani cell.

M'nkhaniyi ndikambirana za LilyPad ndi Flora, chifukwa ntchito zonsezi ndizosangalatsa kupanga zovala zokhala ndi zida zazing'ono ngati zipewa zokhala ndi magetsi, wotchi yanu yochenjera (monga Fitbit, Appel iWatch, Samsung Galaxy Gear…) T-shirts zomwe zimachitika pazochitika za Twitter, nsapato zomwe zimachitika panjira, kapena chilichonse chomwe mungaganizire.

Komanso, muyenera kudziwa kuti anthu ammudzi ndi opanga ena apanga mitundu yonse ya Ntchito zowonjezera zomwe mungagwiritse ntchito ndi zida zina zambiri (masensa, ma LED, othandizira, ...) yomwe imagwira ntchito limodzi ndi matabwawa kukulitsa kuthekera kwawo kupitilira omwe anali pansi.

LilyPad / Flora luso

Izi LilyPad / Flora mbale Amapangidwira zovala ndi nsalu, mtundu wa Arduino monga ndanenera. Zinapangidwa ndi Leah Buechley ndi SparkFun Electronics. Ndizowona kuti mawonekedwewo alibe mphamvu ngati ma board ena a Arduino, koma amatha kusintha ndikuchepetsa, mikhalidwe yomwe ma board ena alibe.

maluwa a lily

Bungwe la LilyPad limayendetsedwa ndi mphamvu yaying'ono ya Atmel microcontroller Chitsitsimutso. Chip cha MCU chomwe chimangofuna pakati pa 0,75μA pa 0,2mA, kutengera mawonekedwe, komanso magetsi kuchokera ku 2.7 mpaka 5.5v. MCU iyi ndi 8-bit, imagwira ntchito pafupipafupi 8 MHz.

Ngakhale ndi yaying'ono, bolodi ili ali ndi zikhomo 23 za GPIO kotero mutha kuzikonza. Koma ndi 9 okha mwa iwo omwe amapezeka, onse ngati zikhomo zadijito. Amawerengedwa motere: 5, 6, 9, 10, 11, A2, A3, A4, ndi A5. Mwa onsewo, omwe alibe A amatha kugwiritsidwa ntchito ngati PWM. Kuphatikiza apo, itha kugwiritsidwa ntchito ndondomeko ya I2C kudzera pazikhomo A4 (SDA) ndi A5 (SCL). Zachidziwikire, padzakhalanso pini GND ngati nthaka (yolembedwa ndi - chizindikiro) ndi ina yamphamvu ya 3v3 (yotchedwa +).

Kumbukirani kuti ngati mungayidyetse ndi 5v, ndiye kuti azikhala magetsi azikhomo zadijito. Komano, ngati mugwiritsa ntchito batiri la 3.7v, ndiye kuti adzagwira ntchito pa 3.3v. Kusamala ndi izi!.

Lilypad imalumikiza cholumikizira cha JST kuti igwirizane ndi lipo batire Kumbuyo kwake, ngakhale chosinthira chosakanikirana ndi USB sichiphatikizidwe muzida zoyambira (muyenera kugula FTDI gawo). Zomwe zimaphatikizapo chipangizo chophatikizira cha MCP73831 chololeza batri kudzera mu USB, batani lokonzanso, ma LED angapo ophatikizika, amodzi mwa iwo kuti adziwe ngati bolodi ilipo ndipo ina yothana ndi pini 13.

ndi LilyPad luso wathunthu ndi:

  • 328Mhz Atmel ATmega8P woyang'anira wamkulu.
    • 8-bit
    • SRAM 2 KB
    • EEPROM 1KB
    • Kukumbukira kwa 32KB
  • Wonjezerani magetsi kuchokera ku 2.7v mpaka 5v5.
  • Kugwiritsa ntchito pakati pa 0.75 microamp mpaka 0.2mA.
  • Zipini zadijito 23, 9 zokha zomwe zilipo. Ndi 5 PWM (5,6,9,10,11).
  • Zipini zinayi za analogi A2, A3, A4, A5. Mwa iwo A4 (SDA) ndi A5 (SCL) ndi a I2C.
  • Zikhomo zamagetsi: 1 ya 3v3, 1 ya GND.
  • Zolemba zamakono zazitali: 40mA.
  • Makulidwe a 55mm m'mimba mwake ndi 8mm wandiweyani.
  • Mtengo: pafupifupi € 6 kapena € 7 (GULANI PANO)

Flora

En nkhani ya Flora, Ndi mbale ya Adafruit yotsika mtengo kwambiri kuposa yapita, komanso yotsika mtengo. Pali zosintha zingapo pabungweli, ndi v3. Ndizogwirizana ndi Arduino, ndipo adapangidwa ndi woyambitsa wa Adafruit a Limor Fried, omwe amadziwika kuti Ladyada, komanso ngati njira ina ya LilyPad.

Ili ndi maubwino ena osangalatsa kuposa LilyPad, ngakhale amawoneka ofanana. Mbale iyi inde imalumikiza microUSB pa kulumikizana kwanu, chifukwa chake ndi kale mfundo yowonjezera. Kuphatikiza apo, Flora ili ndi kukula kwa 45mm ndi 7mm, komwe kumapangitsa kuti kukhale kocheperako, ngakhale kuli kofanana pankhaniyi.

Ubwino wina wa Flora ndi ntchito zomwe zimagwiritsa ntchito ponena za Lilypad. Komanso, ngati mukufuna kupita patsogolo, amagulitsanso zida zopangira zonse.

Para Flora, mawonekedwe ake ndi awa:

  • Atmel ATmega32U4 16 Mhz microcontroller.
    • 8-bit
    • Zamgululi
    • 32KB Flash
    • 1KB EEPROM
  • Wonjezerani magetsi 3.5v mpaka 16v.
  • Zolemba malire mowa kuchokera 8mA kuti 20mA.
  • Zikhomo zama digito zomwe zilipo zimachepetsedwa ndi 1, ndiye kuti, muli ndi 8 zomwe muli nazo. Ndi 0, 1, 2, 3, 6, 9, 10 ndi 12. Monga PWM alipo 4, omwe amawerengedwa kuti 3, 6, 9 ndi 10. Ali ndi I2C, koma nthawi ino ali mu 2 (SDA ) ndi 3 (SCL).
  • Kuphatikiza kwa Neopixel kopezeka pini 8.
  • Muli zikhomo 4 za analogi: A7, A9, A10 ndi A11.
  • Onjezani zikhomo ziwiri zamagetsi 2v3 ndi 3 zamtundu wa GND. Komanso, onjezani zotulutsa za VBATT. Pini yomalizayi imapereka mphamvu ya batri yomwe imagwiritsidwa ntchito mphamvu, chifukwa chake, itha kugwiritsidwa ntchito ngati pini imodzi yamagetsi, monga NeoPixel (nthawi zonse mpaka 3mA ya katundu wambiri, koma samalani chifukwa imakulitsa kugwiritsidwa ntchito).
  • Makulidwe a 45mmx7mm.
  • Mtengo kuyambira 16-30 € (GULANI PANO)

Mbale amasiyana mosiyana ndi komwe adachokera. Ngakhale Flora akuchokera ku Adafruit, Lilypad ndi wochokera ku Arduino ndi Sparkfun. Koma zonsezi zidapangidwa kuti zizivala, komanso ndizofanana komanso momwe mungawonere.

Kuyambira pulogalamu ndi Arduino IDE

Chithunzi chojambula cha Arduino IDE

Para pulogalamu Flora ndi LilyPad ndizofanana ndikuchita ndi Arduino UNO, etc. Chilankhulo chomwecho chogwiritsa ntchito komanso malo omwewo akutukuka amagwiritsidwa ntchito, ndiye kuti, Arduino IDE. Kusiyana kokha komwe muyenera kukumbukira ndikuti muyenera kusankha mtundu wa mbale kuti mukonzekere pazosankha za IDE, chifukwa mwachisawawa idzakhala UNO.

Para sankhani mbale moyenera mu Arduino IDE:

  • LilyPad: pitani ku Arduino IDE, kenako ku Zida, kenako ku gawo la Boards ndipo pamenepo sankhani bolodi la LilyPad. Ndi gawo la FTDI lolumikizidwa ndi chingwe kuchokera ku PC kupita ku microUSB, mutha kupititsa chiwonetserocho kuti muchisiye chakonzedwa.
  • Flora: pitani ku Arduino IDE, kenako Fayizani, kenako Sankhani. Mu tabu ya Zikhazikiko, yang'anani "Woyang'anira ma URL owonjezera mbale" ndi pamenepo phala ulalowu. Mwa njira, ngati mudali ndi ulalo wina mundawo, gwiritsani ntchito comma kuti mulekanitse ulalowu womwe mumawonjezera ndikusachotsa wakale, kapena dinani chizindikiro pafupi ndi bokosilo ndikuwonjezera ulalo watsopano pansipa imodzi pawindo latsopano lomwe likuwonekera. Mukamaliza, mumapereka bwino ndipo ndizomwezo. Tsopano pitani ku Zida, Board, manejala wa Khadi, ndikusankha Zopereka kuchokera pazosankha Mtundu, fufuzani mu injini yosakira «Adafruit AVR» osagwiritsa ntchito mawu ndipo kamodzi kameneka Khazikitsani. Mukamaliza, mutha kubwereranso ku Zida, LilyPad Arduino Board ndipo mkati mwanu mutha kusankha Adafruit Flora yomwe idzawonekere mutakhazikitsa pulogalamuyo. Apa mumalumikiza USB ndi chingwe cha microUSB kuchokera pa bolodi, osafunikira gawo lina.

Njira zotsalazo zitha kukhala zofanana ndi board ina iliyonse ya Arduino, poganizira zida za hardware zomwe zilipo, yomwe idzakhala yocheperako ... Mwachitsanzo, kuphethira LED yomwe mumalumikiza ku 6 ya LilyPad / Flora, mutha kugwiritsa ntchito nambala yachitsanzo:

const byte pinLed6 = 6;

void setup() {
  // Modo del pin como salida
  pinMode(pinLed6, OUTPUT);

}

void loop() {
  // Hacemos parpadear el LED cada 3 segundos
  digitalWrite(pinLed6, HIGH);
  delay(3000);
  digitalWrite(pinLed6, LOW);
  delay(3000);
  digitalWrite(pinLed6, HIGH);
  delay(3000);
  digitalWrite(pinLed6, LOW);
  delay(3000);
 
}

Zomwe zili m'nkhaniyi zikutsatira mfundo zathu za malamulo okonzekera. Kuti mufotokoze cholakwika dinani Apa.

Khalani oyamba kuyankha

Siyani ndemanga yanu

Anu email sati lofalitsidwa. Amafuna minda amalembedwa ndi *

*

*

  1. Wotsogolera pazosankhazi: Miguel Ángel Gatón
  2. Cholinga cha deta: Control SPAM, kasamalidwe ka ndemanga.
  3. Kukhazikitsa: Kuvomereza kwanu
  4. Kulumikizana kwa zomwe zafotokozedwazo: Zomwezo siziziwululidwa kwa anthu ena kupatula pakukakamizidwa mwalamulo.
  5. Zosunga: Zosungidwa ndi Occentus Networks (EU)
  6. Ufulu: Nthawi iliyonse mutha kuchepetsa, kuchira ndikuchotsa zidziwitso zanu.