I-ATtiny85: i-microcontroller enika umdlalo omninzi ...

Yitshit85

Microchip Yinkampani eyaziwayo ngaphakathi kumenzi nakwilizwe le-DIY, kuba inenani elikhulu leemveliso ukwenza iiprojekthi. Idume ngokulawulwa kwe-microcontroller zazo zonke iintlobo zezicelo. Ngaphakathi kuluhlu lweemveliso zolawulo oluncinci namhlanje siza kugxila kwi-ATtiny85, iMCU esebenzayo oza kuyisebenzisa emsebenzini wakho wexesha elizayo.

Kwakhona, kuya kufuneka uyazi ukuba I-Digispark ikwanazo neebhodi okanye iimodyuli ezidibanisa le ATtiny85 ngezinye izinto ezongezelelweyo ezifunekayo ukuqala ukwenza esi sixhobo, njengonxibelelwano lwe-serial ukuze ukwazi ukudlulisa ikhowudi kwimemori yesixhobo. Ixabiso layo eliphantsi, ubungakanani obuncinci, kunye nokuhambelana neebhodi zeArduino, ekugqibeleni ukwenza le bhodi ibe lukhetho olufanelekileyo.

Yitshit85

I-ATtiny85 ikhonkco

Microchip idale amandla asezantsi, ukusebenza okuphezulu kwe-8-bit microcontroller. Isekwe kwi-ISA AVR, eluhlobo lweRISC. Kubandakanya imemori ye-8KB, ii-512 ii-Byte ze-EEPROM, ii-512 ii-Byte ze-SRAM, izikhonkwane ezi-6 zenjongo ye-I / O (GPIO), iirejista ezingama-32 zenjongo ngokubanzi, isibali-xesha esine-8-bit / ikhawuntari eneendlela zokuthelekisa, isibali-xesha / 9-isantya esiphezulu- isantya esiphikisayo, i-USI, ukuphazamiseka kwangaphakathi nangaphandle, isitshintshi se-4-10-bit A / D esiguquliweyo, inkqubo yokubukela enokusetyenziswa kunye ne-oscillator yangaphakathi, iindlela ezintathu zokusetyenziswa kwamandla kwesoftware, ukulungiswa kwe-debugWIRE yokwenza i-chip-debugging, njl.

Le ATtiny85 inentsebenzo ye Ii-MIPS ezingama-20 zisebenza kwi-20 Mhz. Ukufika kwelo nani, sebenza phakathi kwe-2.7-5.5 volts. Ukusebenza kwayo kuyivumela ukuba ibaleke phantse kwi-1 MIPS nge-Mhz nganye. Ukupakishwa kwayo kulula, kohlobo lwe-DIP kunye nezikhonkwane ezi-8, nangona ikwakhona nezinye iintlobo zokupakisha ukuba uyayifuna. Kwaye ndingathanda ukongeza ukuba inokusebenza phantsi kweemeko ezinobushushu obugqithisileyo, ukusuka -40 ukuya kuma-85ºC, eyenza ilungele usetyenziso oluninzi lwemizi-mveliso okanye kwiimeko ezigabadeleyo.

Fumana amaxwebhu kunye nezixhobo

Ukuba ufuna ukufumana Amaxwebhu eMicrosoftchip ATtiny85 kunye nezixhobo, ungayenza kumthombo osemthethweni:

  • Yiya ku iphepha malunga ne-ATtiny5.
  • Emva koko, unokukhetha amaXwebhu amaXwebhu, ukukhuphela iidatha kunye nezinye iintlobo zamaxwebhu ePDF simahla.
  • Unokukhetha kwakhona i-tab yokuPhuhla kweNdawo esingqongileyo apho uya kufumana khona iinkqubo ze-IDE okanye iimeko zophuhliso ukwenza olu hlobo lwe-microcontroller, njl.

Khumbula ukuba le microcontroller yahlukile kwiArduino, kwaye ke ine quirks vs. Arduino IDE kunye nendlela yenkqubo ekufuneka uyigcinile engqondweni ngenxa yamaxwebhu abonelelweyo.

Izinketho zokuqalisa nge-ATtiny85

Iibhodi ze-ATtiny85

Este I-chip ye-ATtiny85 inokubiza ngaphezulu kancinci kwe- $ 1, okanye ngaphezulu kancinci ukuba uthenga ibhodi okanye imodyuli edityanisiweyo. Ungayifumana kwezinye iivenkile ezizodwa ukuqala ukuzama. Nangona kubiza ixabiso ngokwahlukeneyo, ndincoma ukusebenzisa iimodyuli ukuqala, kuba ziya kuthintela ukwenza amanyathelo ngesandla xa ufuna ukuyilungiselela.

Nantsi ke ezinye iindlela on amazon:

Ezinye zeebhodi ezicetyiswayo, ngaphandle kwale ikhankanywe apha ngasentla (iDigispark), uneZengBucks endizibeke kumzekelo weAmazon. Ezi bhodi, phakathi kwezinye izinto ezongezelelweyo, zibandakanya ujongano olwenziwayo lwenkqubo onokuyenza qhagamshela ngqo kwizibuko le-USB lePC yakho ukuzicwangcisa nge-IDE.

Inkqubo njani?

Lumka, kuba nayo ungayenza ukusuka kwiArduino IDE ukhetha isixhobo se-ATtiny85 kwiibhodi zemenyu! Ukuba awuyithenganga imodyuli okanye ibhodi enonxibelelwano ukuyilungiselela, kwaye une-chip ye-ATtiny85 kuphela, ungasebenzisa ibhodi yeArduino njenge-ISP (khetha olo khetho kwimenyu ye-Arduino IDE) edityaniswe ngqo kwizikhonkwane zayo yenze inkqubo kunye ne-Arduino IDE. Iinkqubo, emva koko ususa i-chip ecwangcisiweyo, kwaye ungayidibanisa neprojekthi oyifunayo ukuze isebenze nebhetri ezimeleyo ...

Amanyathelo okusebenzisa iArduino njenge-ISP

Iibhodi zeArduino zidibanisa i-microcontroller yazo kwinkqubo esuka kwiArduino IDE, akunjalo? Ukuza kuthi ga ngoku yonke into iqhelekile. Ewe, ukuba uyayisebenzisa Inketho yeArduino njenge-ISP Ukusuka kwimeko yophuhliso, uya kufumana ibhodi ye-Arduino ngokwayo ukuba isebenze njenge-ISP ukuze ikwazi ukwenza ezinye i-microcontroller zangaphandle ezinjenge-ATtiny85, ithumele inkqubo ofuna ukusebenza nayo kwi-chip. Ngale ndlela awudingi modyuli okanye umdwelisi wenkqubo.

Ukusebenzisa IArduino njenge-ISP, into oyifunayo:

  • Ibheji yakho Arduino UNO.
  • I-PC eneArduino IDE efakiweyo.
  • Intambo ye-USB eqhagamshela iPC-Arduino.
  • Iintambo kunye nezinto zombane eziyimfuneko ukudibanisa izikhonkwane ze-microcontroller ofuna ukuyifaka kwibhodi yeArduino.
  • Umlawuli omncinci ofuna ukumdwelisa.

Kulungile xa unayo yonke into oyivulayo I-Arduino IDE Ibhodi yakho iqhagamshelwe nayo yonke imizobo ye-wiring eyenziwe njengakwimifanekiso yangaphambili, kwaye ulandela la manyathelo alula:

  1. Yiya kwimenyu yeFayile ye-Arduino IDE.
  2. Khetha imizekelo ukhetho.
  3. Ngaphakathi kwimenyu jonga enye ebizwa ngokuba yiArduino ISP kwaye uyikhethe.
  4. Ngoku ikhowudi yalo mzobo ivula kwiscreen esikhulu.
  5. Ngoku ucofa utolo (Layisha) ukufaka ikhowudi kwibhodi yakho yeArduino kwaye iya kuba ilungele ukwenza inkqubo kwi-microcontroller yakho. Kungenzeka ukuba ukuba unebhodi eyahlukileyo yeArduino, njengoLeonardo, njl., Kuya kufuneka uguqule ikhowudi ye-ISP kancinci.
  6. Ngoku ibhodi yakho yeArduino ikulungele ukusebenza njengomlamli kunye nenkqubo ye-ATtiny85 microcontroller isebenzisa isoftware ye-IDE yeMicrochip. Ngamanye amagama, ekuphela kwento eyenziwa yibhodi kukubonelela ngekhowudi oyibhalayo kwi-IDE ukuze udlule kuyo kwaye uhlale kwimemori ye-ATtiny85.
  7. Ukusuka kwi-Microchip IDE esetyenzisiweyo, khetha i-ATtiny85 microcontroller kwaye uqalise ukusebenzisa ikhowudi efanelekileyo. Uyayijija kwaye yiyo loo nto. Ulwimi lwenkqubo lunokuba yi-C / C ++, njengalezo zixhaswe zii-IDE ezibonelelwe yiMicrochip.
  8. Ngoku unganqamula i-ATtiny85 kwibhodi yeArduino kwaye ubeke ibhetri kuyo ukuyenza ngokuzimeleyo kwaye isebenze.

Inyani yile ilula kakhulu. Khumbula ukujonga amaxwebhu eMicrosoftchip ATtiny85 ukwazi ukuba ungayilungiselela njani. Ngolwazi oluthe kratya, unokujonga kule khonkco:

Imizekelo yekhowudi

Ukuba eli lixesha lakho lokuqala ukuzama ukwenza enye yezi zinto zilawulayo, ungaqala ukusebenzisa ezimbalwa iikhowudi zomzekelo kwaye ukuvavanya okanye ukuguqula ukuba bafunde ngcono ukuba basebenza njani. Uneesampulu ezininzi zekhowudi kumnatha, nakwiGitHub.

Nangona ikwisiNgesi, ndikwacebisa ukuba uyibone le nto ividiyo ukukufundisa iziseko zeMCU ATtiny85 ukusuka eMicrochip kwimizuzu nje embalwa:

Ngoku ndiyathemba ukuba unoluvo olucacileyo lwendlela yokusebenzisa iMicrochip's ATtiny85 kwaye iyakuba luncedo kwiiprojekthi zakho zexa elizayo njengomenzi ...


Yiba ngowokuqala ukuphawula

Shiya uluvo lwakho

Idilesi yakho ye email aziyi kupapashwa. ezidingekayo ziphawulwe *

*

*

  1. Uxanduva lwedatha: UMiguel Ángel Gatón
  2. Injongo yedatha: Ulawulo lwe-SPAM, ulawulo lwezimvo.
  3. Umthetho: Imvume yakho
  4. Unxibelelwano lwedatha: Idatha ayizukuhanjiswa kubantu besithathu ngaphandle koxanduva lomthetho.
  5. Ukugcinwa kweenkcukacha
  6. Amalungelo: Ngalo naliphi na ixesha unganciphisa, uphinde uphinde ucime ulwazi lwakho.