I-ATtiny85: i-microcontroller enikeza ukudlala okuningi ...

Izwe85

Microchip Iyinkampani eyaziwayo ngaphakathi kukamenzi nomhlaba we-DIY, ngoba inenani elikhulu lemikhiqizo yokwenza amaphrojekthi. Idume ngama-microcontroller ayo ahlelwe ngazo zonke izinhlobo zezinhlelo zokusebenza. Ngaphakathi kohlu lwayo lwemikhiqizo yokulawulwa kwe-microntroller namuhla sizogxila ku-ATtiny85, iMCU esebenzayo kakhulu ozofuna ukuyisebenzisa emsebenzini wakho wesikhathi esizayo.

Futhi, kufanele ukwazi lokho IDigispark nayo inamabhodi noma amamojula ahlanganisa le ATtiny85 ngezinto ezithile ezingeziwe ezidingekayo ukuqala ukuhlela le divayisi, njengokuxhumeka kwesixhumi esibonakalayo okuzokwazi ukudlulisela ikhodi kwimemori yedivayisi. Izindleko zayo eziphansi, usayizi omncane, nokuhambisana namabhodi e-Arduino, kugcina kwenza leli bhodi libe inketho enhle.

Izwe85

I-ATtiny85 pinout

Microchip idale amandla amancane, ukusebenza okuphezulu kwe-8-bit microcontroller. Kususelwa ku-ISA AVR, okuluhlobo lwe-RISC. Kufaka imemori ye-8KB flash, ama-512 Byte we-EEPROM, ama-512 ama-Byte we-SRAM, izikhonkwane eziyisithupha ze-I / O (GPIO), ama-registry ezinhloso ezi-6, isibali-sikhathi esingu-32-bit nezindlela zokuqhathanisa, isibali sikhathi / 8-bit ephezulu- isivinini esiphikisayo, i-USI, ukuphazamiseka kwangaphakathi nangaphandle, isiguquli esine-9-4-bit A / D, i-watchdog ehlelwe nge-oscillator yangaphakathi, izindlela ezintathu zokusebenzisa amandla zesoftware, i-debugWIRE ye-on-chip debugging, njll.

Le ATtiny85 inokusebenza kwe- Ama-MIPS angama-20 asebenza ku-20 Mhz. Ukufika kuleyo mvamisa, sebenzisa phakathi kwama-volts angu-2.7-5.5. Ukusebenza kwayo kuyivumela ukuthi isebenze cishe ku-1 MIPS nge-Mhz ngayinye. Ukupakisha kwayo kulula, kohlobo lwe-DIP futhi kunezikhonkwane eziyi-8, yize kukhona futhi nezinye izinhlobo zokupakisha uma ukudinga. Futhi ngithanda ukunezela, ukuthi ingasebenza ngaphansi kwezimo zokushisa ezedlulele impela, kusuka ku -40 kuye ku-85ºC, okwenza ikufanele ukusetshenziswa kwezimboni eziningi noma ezimeni ezimbi kakhulu.

Thola imibhalo namathuluzi

Uma ufuna ukuthola Imibhalo namathuluzi we-Microchip ATtiny85, ungakwenza kusuka kumthombo osemthethweni:

  • Iya ku ikhasi mayelana ne-ATtiny5.
  • Ngemuva kwalokho, ungakhetha ithebhu yamaDokhumenti, ukulanda ama-datasheets nezinye izinhlobo zemibhalo ye-PDF mahhala.
  • Ungakhetha futhi ithebhu ye-Development Environment lapho uzothola khona izinhlelo ze-IDE noma izindawo zentuthuko ukuhlela lolu hlobo lwe-microcontroller, njll.

Khumbula ukuthi le microcontroller yehlukile kune-Arduino, ngakho-ke inayo ama-quirks vs. Arduino IDE nendlela yokuyihlela okufanele uyikhumbule ngenxa yemibhalo enikeziwe.

Izinketho zokuqalisa nge-ATtiny85

Amabhodi we-ATtiny85

Este I-chip ye-ATtiny85 kungabiza okungaphezulu kancane kuka- € 1, noma okungaphezulu kancane uma uthenga ibhodi noma imodyuli ehlanganiswe nayo. Ungayithola kwezinye izitolo ezikhethekile ukuqala ukuyizama. Yize kushibhile ngokwahlukana, ngincoma ukusebenzisa amamojula ukuqala, ngoba azokugwema ukwenza ezinye izinyathelo ngesandla lapho ufuna ukuluhlela.

Nakhu onakho ezinye izinketho ku-amazon:

Amanye amabhodi anconyiwe, ngaphandle kwaleli elishiwo ngenhla (i-Digispark), nawe unamaZengBucks engiwabeka esibonelweni se-Amazon. Lawa mabhodi, phakathi kwezinye izinto ezingeziwe, afaka i-serial interface yohlelo ongalwenza xhuma ngqo ethekwini le-USB le-PC yakho ukuwahlelela nge-IDE.

Ungahlela kanjani?

Qaphela, ngoba futhi ungakwenza kusuka ku-Arduino IDE ukhetha idivayisi ye-ATtiny85 kumabhodi emenyu! Uma ungathenganga imodyuli noma ibhodi ene-interface ukuze uyihlele, futhi une-chip ye-ATtiny85 kuphela, ungasebenzisa ibhodi ye-Arduino njenge-ISP (khetha leyo nketho kwimenyu ye-Arduino IDE) exhunywe ngqo kuzikhonkwane zayo uyihlele nge-Arduino IDE. Izinhlelo, bese ususa i-chip ehlelwe, futhi ungayixhuma kuphrojekthi oyidingayo ukuze isebenze nebhethri elizimele ...

Izinyathelo zokusebenzisa i-Arduino njenge-ISP

Amabhodi e-Arduino ahlanganisa i-microcontroller yawo ukuze ahlele kusuka ku-Arduino IDE, akunjalo? Kuze kube manje konke sekujwayelekile. Yebo, uma wenza kusebenze i- Inketho ye-Arduino njenge-ISP Kusukela endaweni yentuthuko, uzobe uthola ibhodi le-Arduino uqobo ukuthi lisebenze njenge-ISP ukuze ikwazi ukuhlela abanye abalawuli abancane abangaphandle njenge-ATtiny85, ithumele uhlelo ofuna ukusebenzisana nalo ku-chip. Ngaleyo ndlela awudingi imodyuli noma umqambi wohlelo.

Ukusebenzisa I-Arduino njenge-ISP, okudingayo:

  • Ibheji lakho Arduino UNO.
  • I-PC ene-Arduino IDE ifakiwe.
  • Intambo ye-USB exhuma iPC-Arduino.
  • Izintambo nezinto ze-elekthronikhi ezidingekayo ukuxhuma izikhonkwane ze-microcontroller ofuna ukuzihlelela ebhodini le-Arduino.
  • I-microcontroller ofuna ukuyihlela.

Kulungile uma usunayo yonke uyayivula I-Arduino IDE nebhodi lakho lixhunyiwe nawo wonke umdwebo wiring owenziwe njengezithombe zangaphambilini, futhi ulandela lezi zinyathelo ezilula:

  1. Iya kumenyu yefayela ye-Arduino IDE.
  2. Khetha inketho yezibonelo.
  3. Ngaphakathi kwimenyu funa eyodwa ebizwa nge-Arduino ISP bese uyayikhetha.
  4. Manje ikhodi yalo mdwebo ivula esikrinini esikhulu.
  5. Manje unikeza umcibisholo (Layisha) ukuze ulayishe ikhodi ebhodini lakho le-Arduino futhi kuzobe sekulungele ukuhlela i-microcontroller yakho. Kungenzeka ukuthi uma unebhodi ehlukile ye-Arduino, njengoLeonardo, njll, kuzodingeka ushintshe ikhodi ye-ISP kancane.
  6. Manje ibhodi yakho ye-Arduino isilungele ukusebenza njengomxhumanisi futhi ihlele i-ATtiny85 microcontroller isebenzisa isoftware ye-IDE ye-Microchip. Ngamanye amagama, okuwukuphela kwento ibhodi eliyenzayo ukunikeza isikhombimsebenzisi sekhodi oyibhala ku-IDE ukudlula kuyo futhi uhlale kwimemori ye-ATtiny85.
  7. Kusuka ku-Microchip IDE esetshenzisiwe, khetha i-ATtiny85 microcontroller bese uqala ukuhlela usebenzisa ikhodi efanelekile. Uyayisipha futhi yilokho kuphela. Ulimi lohlelo lungaba yi-C / C ++, njengaleyo esekelwa ama-IDE anikezwe yiMicrochip.
  8. Manje usunganqamula i-ATtiny85 ebhodini le-Arduino bese ufaka ibhethri kuyo ukuyinika amandla ngokuzimela futhi isebenze.

Iqiniso ukuthi kunjalo pretty elula. Khumbula ukubheka imibhalo ye-Microchip ATtiny85 ukwazi ukuthi ungayihlela kanjani. Ngeminye imininingwane, ungabheka kulesi sixhumanisi:

Izibonelo zekhodi

Uma lesi kuyisikhathi sakho sokuqala uzama ukuhlela eyodwa yalezi microcontroller, ungaqala ukusebenzisa ezimbalwa amakhodi wesibonelo bese uyawahlola noma uwaguqule ukuze ufunde kangcono ukuthi zisebenza kanjani. Unamasampula amaningi ekhodi enetheni, nakuGitHub.

Yize kubhalwe ngesiNgisi, nami ngincoma ukuthi ubone lokhu video ukukufundisa izisekelo ze-MCU ATtiny85 kusuka kwaMicrochip ngemizuzu embalwa nje:

Manje ngithemba ukuthi unombono ocacile wokuthi ungayisebenzisa kanjani iMicrochip's ATtiny85 nokuthi izosebenziseka kumaphrojekthi wakho wesikhathi esizayo njengomenzi ...


Yiba ngowokuqala ukuphawula

Shiya umbono wakho

Ikheli lakho le ngeke ishicilelwe. Ezidingekayo ibhalwe nge *

*

*

  1. Ubhekele imininingwane: Miguel Ángel Gatón
  2. Inhloso yedatha: Lawula Ugaxekile, ukuphathwa kwamazwana.
  3. Ukusemthethweni: Imvume yakho
  4. Ukuxhumana kwemininingwane: Imininingwane ngeke idluliselwe kubantu besithathu ngaphandle kwesibopho esisemthethweni.
  5. Isitoreji sedatha: Idatabase ebanjwe yi-Occentus Networks (EU)
  6. Amalungelo: Nganoma yisiphi isikhathi ungakhawulela, uthole futhi ususe imininingwane yakho.