ATtiny85: microcontroller wanda ke ba da yawan wasa ...

ATtiny 85

Microchip Shahararren kamfani ne a cikin mai yin sa da kuma duniyar DIY, tunda tana da adadi da yawa don ƙirƙirar ayyuka. Sanannen sanannen ne don masu sarrafa micro-sarrafawa don kowane irin aikace-aikace. A cikin kewayon samfuran microntroller yau zamu maida hankali kan ATtiny85, mai amfani da MCU wanda zaku buƙaci amfani dashi a aikinku na gaba.

Hakanan, ya kamata ku san hakan Digispark yana da alluna ko kayayyaki waɗanda suke haɗa wannan ATtiny85 tare da wasu ƙarin abubuwa waɗanda ake buƙata don fara shirye-shiryen wannan na'urar, kamar haɗin haɗin keɓaɓɓiyar don samun damar shigar da lambar zuwa ƙwaƙwalwar ajiyar na'urar. Kudinsa mai tsada, karami karami, da kuma dacewarsa tare da allon Arduino, ƙarshe ya sanya wannan kwamitin kyakkyawan zaɓi.

ATtiny 85

ATtiny85 mara kyau

Microchip ya ƙirƙiri ƙaramin iko, mai ƙarfin aiki 8-bit microcontroller. Ya dogara ne akan ISA AVR, wanda shine nau'in RISC. Ya hada da 8KB flash memory, 512 Bytes na EEPROM, 512 Bytes na SRAM, 6 general purpose I / O pin (GPIO), 32 general purpose rajista, 8-bit timer / counter tare da yanayin halaye, mai kidayar lokaci / 9-bit high- saurin gudu, USI, katsewar ciki da waje, 4-tashar 10-bit A / D mai sauyawa, shirye-shiryen shirye-shirye tare da oscillator na ciki, hanyoyin zaɓuɓɓuka masu amfani da software guda uku, debugWIRE don ɓarna kan-guntu, da sauransu

Wannan ATtiny85 yana da aiki na 20 MIPS ke aiki a 20 Mhz. Don isa zuwa wancan mitar, yi aiki tsakanin 2.7-5.5 volts. Ayyukanta yana ba shi damar aiki a kusan MIPS 1 a kowace Mhz. Kunshinsa mai sauki ne, na nau'in DIP kuma tare da fil 8, kodayake akwai shi tare da wasu nau'ikan marufi idan kuna buƙatar shi. Kuma ina so in ƙara, cewa zai iya aiki a ƙarƙashin yanayi mai tsananin zafi, daga -40 zuwa 85ºC, wanda ya sa ya dace da aikace-aikacen masana'antu da yawa ko a cikin mawuyacin yanayi.

Samu takardu da kayan aiki

Idan kana son samu Microchip ATtiny85 takardu da kayan aikin, zaku iya yin hakan daga asalin hukuma:

  • Je zuwa shafin game da ATtiny5.
  • Bayan haka, zaku iya zaɓar shafin Takardu, don saukar da takaddun bayanai da sauran nau'ikan takaddun PDF kyauta.
  • Hakanan zaka iya zaɓar shafin Ci gaban Yanayi inda zaka sami shirye-shiryen IDE ko yanayin ci gaba don tsara wannan nau'in microcontroller, da sauransu.

Ka tuna cewa wannan microcontroller ya bambanta da Arduino, sabili da haka yana da nasa quirks vs. Arduino IDE da kuma hanyar shirya shi wanda yakamata ku tuna godiya ga takaddun da aka bayar.

Zaɓuɓɓuka don farawa tare da ATtiny85

ATtiny85 allon

Este ATtiny85 guntu zai iya ɗan kashe kuɗi sama da € 1, ko kuma ya fi kaɗan idan ka sayi allon ko kayan aiki tare da shi hade. Kuna iya samun sa a cikin wasu shagunan musamman don fara gwada shi. Kodayake yana da rahusa daban, Ina ba da shawarar amfani da kayayyaki don farawa, tunda za su guji yin wasu matakai da hannu lokacin da kuke son shirya shi.

Anan kuna da wasu zaɓuɓɓuka akan amazon:

Wasu daga allon shawarar, banda wanda muka ambata a sama (Digispark), kuna da ZengBucks da na sanya a cikin misalin Amazon. Waɗannan allon, tare da sauran ƙarin abubuwan, sun haɗa da keɓaɓɓiyar kera don shirye-shiryen da zaka iya haɗi kai tsaye zuwa tashar USB ta kwamfutarka don tsara su tare da IDE.

Yadda ake shiryawa?

Yi hankali, saboda kuma zaka iya yi daga Arduino IDE zaɓar na'urar ATtiny85 daga allon menu! Idan baku sayi koyaushe ko allon allo ba tare da dubawa don tsara shi, kuma kuna da guntu ATtiny85 kawai, zaku iya amfani da allon Arduino azaman ISP (zaɓi wannan zaɓin daga menu na Arduino IDE) wanda aka haɗa kai tsaye zuwa fil nasa zuwa shirya shi tare da Arduino IDE. Shirye-shiryen, to sai ku cire guntu da aka tsara, kuma zaku iya haɗa shi da aikin da kuke buƙatar sa shi aiki tare da batir mai zaman kansa ...

Matakai don amfani da Arduino azaman ISP

Alloukan Arduino suna haɗaka da microcontroller ɗinsu don shirin daga Arduino IDE, daidai ne? Ya zuwa yanzu komai daidai ne. Da kyau, idan kun kunna Arduino zaɓi azaman ISP Daga yanayin ci gaba, zaku sami mambobin Arduino da kanta suyi aiki azaman ISP don samun damar shirya wasu microcontrollers na waje kamar su ATtiny85, kuna aika shirin da kuke son aiki dashi da aka ce guntu. Ta wannan hanyar ba kwa buƙatar mai koyawa ko mai tsara shirye-shirye.

Don amfani Arduino azaman ISP, abin da kuke buƙata shine:

  • Alamar ku Arduino UNO.
  • PC tare da Arduino IDE an girka.
  • Kebul na USB mai haɗa PC-Arduino.
  • Kebul da abubuwan lantarki masu mahimmanci don haɗa fil na microcontroller ɗin da kuke son shiryawa zuwa hukumar Arduino.
  • Mai sarrafawa da kake son shiryawa.

Da zarar kun sami duk abin da kuka buɗe IDE na Arduino tare da allonku haɗe da dukkan zane na wayoyi da aka yi kamar yadda yake a cikin hotunan da suka gabata, kuma kuna bin waɗannan matakai masu sauƙi:

  1. Jeka menu na Fayil na Arduino IDE.
  2. Zaɓi zaɓi na Misalan.
  3. A cikin menu nemi wanda ake kira Arduino ISP kuma zaɓi shi.
  4. Yanzu lambar wannan zane ta buɗe akan babban allo.
  5. Yanzu kun danna kibiya (Loda) don loda lambar zuwa allon Arduino kuma zai kasance a shirye don shirya microcontroller ɗinku. Zai yiwu idan kuna da kwamiti daban na Arduino, kamar Leonardo, da dai sauransu, lallai ne ku canza lambar ISP kaɗan.
  6. Yanzu hukumarku ta Arduino a shirye take don aiki a matsayina na matsakaiciya kuma ta tsara mai sarrafa ATtiny85 ta amfani da software na IDE na Microchip. A takaice dai, abin da kawai hukumar ke yi shi ne samar da wata hanya ta lambar da ka rubuta a cikin IDE don wucewa ta kuma ci gaba da kasancewa cikin ƙwaƙwalwar ajiyar ATtiny85.
  7. Daga IDE na Microchip IDE, zaɓi ATtiny85 microcontroller kuma fara shirye-shirye ta amfani da lambar da ta dace. Kuna kwance shi kuma shi ke nan. Harshen shirye-shiryen na iya zama C / C ++, kamar waɗanda IDEs ke bayarwa ta Microchip.
  8. Yanzu zaka iya cire haɗin ATtiny85 daga allon Arduino ka saka batir a ciki don bashi ƙarfin kansa kuma ka sanya shi yayi aiki.

Gaskiya ita ce mai sauqi qwarai. Ka tuna ka kalli takardun Microchip ATtiny85 don sanin yadda ake tsara shi. Don ƙarin bayani, zaku iya kallon wannan haɗin:

Misalai na lamba

Idan wannan shine karo na farko da kuke ƙoƙarin shirin ɗayan waɗannan ƙananan sarrafawa, zaku iya fara amfani da fewan kaɗan misali lambobin kuma tafi gwadawa ko gyaggyara su don ƙarin koyon yadda suke aiki. Kuna da samfuran lamba da yawa akan yanar gizo, kuma akan GitHub.

Kodayake cikin Turanci ne, amma kuma ina baku shawarar ganin wannan bidiyo don koya muku abubuwan yau da kullun na MCU ATtiny85 daga Microchip a cikin aan mintuna kaɗan:

Yanzu ina fatan kuna da cikakkiyar fahimta game da amfani da ATtiny85 na Microchip kuma zai kasance mai amfani ga ayyukanku na gaba a matsayin mai ƙera ...


Abubuwan da ke cikin labarin suna bin ka'idodinmu na ka'idojin edita. Don yin rahoton kuskure danna a nan.

Kasance na farko don yin sharhi

Bar tsokaci

Your email address ba za a buga. Bukata filayen suna alama da *

*

*

  1. Mai alhakin bayanan: Miguel Ángel Gatón
  2. Dalilin bayanan: Gudanar da SPAM, gudanar da sharhi.
  3. Halacci: Yarda da yarda
  4. Sadarwar bayanan: Ba za a sanar da wasu bayanan ga wasu kamfanoni ba sai ta hanyar wajibcin doka.
  5. Ajiye bayanai: Bayanin yanar gizo wanda Occentus Networks (EU) suka dauki nauyi
  6. Hakkoki: A kowane lokaci zaka iyakance, dawo da share bayanan ka.