Koj puas xav paub yuav ua li cas tsim cov khoom siv hluav taws xob nrog koj tus kheej tes, tab sis tsis paub pib qhov twg? Nyiam kawm paub txog cov pib ntawm cov khoom siv hluav taws xob? Tom qab ntawd Arduino boards yog qhov kev xaiv zoo tshaj plaws rau tus pib tshiab. Hauv kev tshwj xeeb, Arduino UNO pawg thawj coj saib xyuas yog qhov zoo rau cov laj thawj no.
Nws yog qhov tsim nyog
- - Arduino UNO board,
- - USB cable (USB A - USB B),
- - Personal Computer,
- - Hnav teeb ci,
- - 220 Ohm resistor,
- - ib nkawm xov hlau 5-10 cm,
- - yog tias muaj, khob cij khob.
Cov Lus Qhia
Kauj ruam 1
Txuas Arduino board nrog lub USB cable rau koj lub computer. Cov xim ntsuab ON LED ntawm lub rooj tsavxwm yuav tsum taws.
Kauj ruam 2
Rub tawm Arduino kev nyob ib puag ncig rau koj cov kev ua haujlwm (Windows, Mac OS X, Linux tau txais kev txhawb nqa) los ntawm https://arduino.cc/en/Main/Software, koj tuaj yeem nruab tus installer, koj tuaj yeem khaws cia. Cov ntawv rub tawm kuj tseem muaj cov tsav tsheb rau Arduino boards.
Kauj ruam 3
Nruab tus tsav tsheb. Cia peb xav txog qhov kev xaiv rau Windows OS. Txhawm rau ua qhov no, tos kom txog rau txoj haujlwm ua kom koj txhim kho tus neeg tsav tsheb. Tsis kam. Nias Win + Pause, tua Tus Thawj Tswj Ntaus Ntawv. Nrhiav cov seem "Ports (COM & LPT)". Koj yuav pom ib lub chaw nres nkoj nyob ntawd hu ua "Arduino UNO (COMxx)". Txoj nyem rau nws thiab xaiv "Hloov Tsav Tsheb". Tom ntej no, xaiv qhov chaw ntawm tus tsav tsheb koj nyuam qhuav rub tawm.
Kauj ruam 4
Txoj kev loj hlob ib puag ncig twb muaj ntau qhov piv txwv rau kev kawm txog kev ua haujlwm ntawm pawg thawj coj. Qhib Blink piv txwv: Cov Ntaub Ntawv> Cov Piv Txwv> 01. Basics> Blink.
Kauj ruam 5
Qhia qhov chaw nthuav dav koj lub rooj tsavxwm. Txhawm rau ua qhov no, mus rau Cov Khoom Siv> Board thiab xaiv "Arduino UNO".
Kauj ruam 6
Xaiv cov chaw nres nkoj uas pawg tswj hwm Arduino tau muab rau. Txhawm rau nrhiav qhov chaw nres nkoj twg pawg thawj coj saib tau txuas nrog, pib tus thawj tswj hwm ntaus ntawv thiab nrhiav ntu Ports (COM & LPT). Tus naj npawb chaw nres nkoj yuav raug qhia hauv nkhaus tom qab lub npe board. Yog tias lub rooj tsavxwm tsis tau teev, sim txuas nws ntawm lub khoos phis tawm thiab, tom qab tos ob peb feeb, rov txuas nws dua.
Kauj Ruam 7
Disconnect lub rooj tsavxwm los ntawm lub computer. Txheeb rau hauv Circuit Court raws li qhia hauv daim duab. Thov nco ntsoov tias cov ceg luv luv ntawm cov LED yuav tsum txuas nrog GND tus pin, qhov ntev ib qho los ntawm resistor nrog digital pin 13 ntawm Arduino board. Nws yooj yim dua rau siv lub khob cij, tab sis yog tias nws tsis tuaj, koj tuaj yeem hloov cov xov hlau.
Cov ntawv tseem ceeb! Digital pin 13 twb muaj nws tus kheej resistor ntawm lub rooj tsavxwm. Yog li ntawd, nws tsis tas yuav siv tus tiv thaiv sab nraud thaum txuas cov LED rau pawg. Thaum sib txuas ntawm LED mus rau lwm yam Arduino pins, kev siv lub tshuab hluav taws xob tam sim no-tsim nyog!
Kauj ruam 8
Tam sim no koj tuaj yeem thauj cov program rau hauv lub cim xeeb. Txuas lub rooj tsavxwm mus rau lub khoos phis tawm, tos ob peb feeb rau lub rooj xaib los pib ua ntej. Nias lub khawm Upload thiab koj cov duab kos yuav muab sau rau Arduino board. Arduino kev kawm yog qhov ua tau yooj yim thiab tsis nyuaj kiag li. Saib ntawm daim duab - muaj cov lus qhia me me hauv cov lus rau cov program. Qhov no yog qhov txaus los cuam tshuam rau koj qhov kev sim ua ntej.
Kauj Ruam 9
Lub LED yuav tsum pib ntsais lub ntsej muag zoo siab rau koj txhua 2 vib nas this (1 ntxiv rau, 1 tawm). Koj thawj daim duab npaj tau npaj lawm!