UArduino Leonardo: yonke into ekufuneka uyazi malunga nebhodi yophuhliso

I-Arduino ineebhodi ezahlukeneyo, ezahlukeneyo ezithandwayo apho ukwanelisa iimfuno ezahlukeneyo. Enye yeebhodi zophuhliso ezaziwa kakhulu, kunye no Arduino UNOyiyo UArduino Leonardo. Le bhodi ine-microcontroller ehlelweyo efihla enye yezona zinto zinamandla emgceni webhodi xa kuthelekiswa nomnye wabo oodade.

Ewe, le bhodi isemthethweni isuka kwiArduino Foundation iyahambelana nazo zonke izinto ze-elektroniki masihambe bonisa kwezinye izithuba. Ke uya kuba nenkululeko yokudibanisa ipleyiti kaLeonardo kunye nezinto ezininzi ukwenza iiprojekthi ezahlukeneyo onokuzicinga.

Yintoni u-Arduino Leonardo?

Lo Ibhodi kaArduino Leonardo inezinto ezifanayo kakhulu kwi-Uno, nkqu nakwimbonakalo. Kodwa akufuneki ubabhidanise, kuba kukho umahluko obonakalayo phakathi kwezi ...

Iimpawu zobugcisa, isikimu kunye nepinout

UArduino Leonardo Pinout

Enye yeempawu eziphambili ekufuneka uzenzile ukwazi ngoArduino Leonardo yipinout yakhoOko kukuthi, izikhonkwane okanye unxibelelwano onalo. Njengoko ubona kumfanekiso ongentla, awufani nebhodi ye-UNO Rev3. Kukho umahluko phakathi kobungakanani, umda kunye neebhasi.

Kwelinye icala, kuya kufuneka uyazi eyazo Iimpawu zobugcisa, ezishwankathelwe apha:

  • Ulawulo oluncinci: Atmel ATmega32u4 nge-16 Mhz.
  • Iinkumbulo ze-RAM: I-2.5 KB
  • EEPROM: I-1 KB
  • flash: 32 KB, kodwa kuya kufuneka uthabathe i-4 KB esetyenzisiweyo kwi-bootloader.
  • Umbane osebenzayo: 5 V
  • Igalelo ombane (kucetyiswa): 7-12v
  • Igalelo ombane (ubuninzi umda): 6-20v
  • Izikhonkwane ze-I / O zedijithali20, ezi-7 zazo PWM.
  • Izikhonkwane zokufaka ze-Analog: Iindlela ezili-12.
  • Ukuqina kwangoku ngepini ye-I / Oamandla: 40mA
  • Ukuqina kwangoku kwepini 3.3vamandla: 50mA
  • Ubunzima kunye nemilinganiselo: 68.6 × 53.3mm kunye neegram ezingama-20.
  • Ixabiso: € 18 - € 20 malunga. Ungayithenga kwiAmazon.

Maxwebhu

Njengoko kuhlala kunjalo kwiibhodi ezisemthethweni zeArduino, kukho inani elikhulu le iskimu, idatha kunye namaxwebhu kule meko, nokuba ube nakho ukwenza ibhodi evela kuyo njengoko ingumthombo ovulekileyo. Ukusuka kwiwebhusayithi esemthethweni yeprojekthi, unokufumana ulwazi oluninzi lokukhuphela malunga noArduino Leonardo kwaye ke uyazi ngcono ukuba isebenza njani. Umzekelo:

Umahluko kunye nezinye iibhodi zeArduino

Iibhodi zeArduino

Eyona nto ilungileyo kukuyithelekisa neyona ipleyiti ifanayo, kwaye kunjalo Arduino UNO ISityhi. Ewe uthelekisa uArduino Leonardo noUNO, ungabona ukufana okuninzi, kodwa ukwahluka okubalulekileyo ukuba unamathandabuzo phakathi kokuthenga enye okanye enye.

Ngokwasemzimbeni kubonakala ngathi inefayile ye- ubungakanani obufanayo kunye nenani elifanayo lezikhonkwane. Ukongeza, zilungiselelwe ngendlela efanayo. Unikezelo lwamandla lukwayinto enye, kwaye nobuninzi obunikezelwa ngumvelisi wamaza. Kananjalo i-A0-A5 inokuqwalaselwa njengedigital ngomsebenzi i-pinMode (inombolo yepini, imowudi). Uphi umahluko ngoko?

Ewe, omnye umahluko ophambili phakathi kweebhodi zombini zophuhliso kukwisilawuli somatshini esincinci. Ngelixa i-UNO isekwe kwi-ATmega328, uArduino Leonardo isekwe kwi-ATmega32u4 kuhlaziyo lwabo lwamva nje. Kwimeko ye-ATmega328, ayinalo unxibelelwano lwe-USB olwakhelweyo, ke isiguquli siyafuneka kwizibuko le-serial. Umsebenzi owenziwa yisekethe edibeneyo ye-ATmega16u2.

Kwimeko ye-ATmega32u4, inayo unxibelelwano nge-USB esele yenziwe, ukuze chip yesibini ingafuneki. Oko, kwinqanaba lomsebenzisi elisebenzayo lenza umohluko. Xa uqhagamshela ibhodi Arduino UNO, izibuko le-COM elibonakalayo linikezelwe unxibelelwano. Ngelixa kuLeonardo ipleyiti ibonwa yikhompyuter ngokungathi sisixhobo se-USB njengempuku okanye ikhibhodi. Oku kunika ithuba lokusebenzisa imouse kunye nemisebenzi yekhibhodi.

Ewe kunjalo, ukuba nenye i-MCU kukwahluka kwimemori yedatha. Kwiflash ye32 KB ye Arduino UNO I-0.5 KB igcinelwe i-bootloader iya kwi-32 KB kunye ne-4KB esetyenziswa yi-bootleader kuLeonardo. Kwi-SRAM isuka kwi-2 KB iye kwi-2.5 KB kwaye kwi-EPROM ihlala injalo kuzo zombini.

Omnye umahluko ukho kumajelo egalelo le-analog. Ngelixa ngaphakathi Arduino UNO Inezitishi ezi-6 kuphela, kwiArduino Leonardo enayo enamajelo ali-12. Leyo ye-A0-A5, kunye nezikhonkwane 4, 6, 8, 9, 10, kunye no-12 ezinokuhambelana namajelo A6-A11.

Malunga ne-PWM, ULeonardo unenye ngaphezu kwesinye. Ukongeza kwezi ZINYE, enye yongezwa kwipini 13. Eminye iya kufana kuwo omabini amakhadi, oko kukuthi, iya kuba kwizikhonkwane 3, 5, 6, 9, 10 kunye no-11.

Uya kufumana umahluko ngakumbi kwifayile ye- Unxibelelwano lwe-I2C. Zombini zinokusebenzisa i-TWI, kodwa umahluko kulapho izikhonkwane zenzelwe khona umgca wedatha yecala okanye i-SDA kunye nelayini yewotshi okanye i-SCL. Kwi-UNO bakwizikhonkwane ze-A4 kunye ne-A5. Kodwa kuLeonardo unabo ku-2 no-3 ngokwahlukeneyo. Umahluko omncinci, kodwa ngokwaneleyo ukuba iminqwazi ye-UNO okanye amakhaka awahambelani ngokupheleleyo noLeonardo.

Ngokuphathelele Unxibelelwano lwe-SPIkwi Arduino UNO unezikhonkwane 10, 11, 12, kunye no-13, ze-SS, MOSI, MISO kunye neempawu ze-SCK ngokwahlukeneyo. Oku akunjalo kuLeonardo, njengoko inesidibanisi esithile se-ICSP, isinxibelelanisi sendoda esine-6-pin ecaleni kwelinye icala lekhadi. Esinye isizathu esinokwenza ukuba i-UNO ikhusele ingakulungelanga ...

Ku Ukuphazamiseka kwangaphandle lukhona nolunye utshintsho. Kwi-UNO unezikhonkwane ezimbini kuyo, cofa u-2 (uphazamise u-0) uze uphawule u-3 (uphazamise u-1). Kwimeko ka-Arduino Leoanrdo bandisa kwizikhonkwane ezi-5. Zizikhonkwane 3, 2, 0, 1, kunye no-7 zokuphazamisa u-0, 1, 2, 3, no-4 ngokwahlukeneyo.

Kukho nolunye utshintsho phakathi kwamacwecwe amabini amaninzi athanda ukulibala, kwaye luhlobo lwe Intambo ye-USB iyafuneka ukudibanisa zombini iibhodi kwiPC. Ngelixa kwi-UNO kusetyenziswa intambo ye-AB, kuLeonardo kufuneka i-A-microB.

Ngamafutshane, kwezi zilandelayo Itafile yomahluko ungazibona ezinye iinkcukacha:

 ISISHWANKATHELO Somahluko ARDUINO UNO vs. U-ARDUINO LEONARDO

UNO

ULeonardo

MCU

Ukuya

Yintsi32u4

Igalelo le-Analog

A0, A1, A2, A3, A4, A5

A0, A1, A2, A3, A4, A5, 4, 6, 8, 9, 10, 12

Iziphumo zePWM

3, 5, 6, 9, 10, 11

3, 5, 6, 9, 10, 11, 13

Unxibelelwano lwe-I2C

I-A4, A5

2, 3

Unxibelelwano lwe-SPI

10, 11, 12, 13

Isinxibelelanisi se-ICSP

Ukuphazamiseka kwangaphandle

2, 3

3, 2, 0, 1, 7
Imemori yeFlash

32 KB

(0.5 KB ye-bootloader)

32 KB

(4 KB ye-bootloader)

SRAM

2 KB

2.5 KB

EEPROM

1 KB

1 KB

IArduino IDE kunye nenkqubo kaLeonardo

Iscreen seArduino IDE

Inkqubo Arduino Leonardo, njengakwezinye iibhodi zeArduino, ungayenza kumaqonga ohlukeneyo anje MacOS, Windows kunye neLinux. Yiyo loo nto sinombulelo kwinto yokuba imeko yakho yophuhliso I-Arduino IDE iyafumaneka kula maqonga.

Ngolwazi oluthe kratya malunga nenkqubo ukuqala ngale bhodi, ndikucebisa ukuba ukhuphele eyethu ikhosi yasimahla kwiPDF yeArduino IDE. Inyani yile yokuba uLeonardo akanamfihlelo inkulu qala ukwenza iziketshi. Kuya kufuneka uthathe ingqalelo umahluko wonxibelelwano kwaye ukhethe ibhodi echanekileyo kwimenyu yeArduino IDE yokulayisha inkqubo.

Oko kukuthi, vula iArduino IDE, yiya kwizixhobo> Iibhodi> Khetha uLeonard… Kwaye uqale ukonwabela iiprojekthi ozenzayo ngokwakho okanye ezo besizipapasha ku-Hwlibre.com. Ndiyaphinda, ulwimi kunye neekhowudi ziya kufana, ekuphela kwento ekufuneka unike ingqalelo kuyo yile mihluko ndiyikhankanyileyo kwizikhonkwane ze-I / O kunye nemisebenzi yazo ...


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.