Cov txheej txheem:

Arduino: Ua Teeb Teeb Teeb: 9 Kauj Ruam
Arduino: Ua Teeb Teeb Teeb: 9 Kauj Ruam

Video: Arduino: Ua Teeb Teeb Teeb: 9 Kauj Ruam

Video: Arduino: Ua Teeb Teeb Teeb: 9 Kauj Ruam
Video: His laptop died so he used his TYPEWRITER. 😭🤷‍♂️ #shorts 2024, Kaum ib hlis
Anonim
Arduino: Ua Teeb Ntawm Teeb Teeb
Arduino: Ua Teeb Ntawm Teeb Teeb

Txoj haujlwm no tseem ua haujlwm tau zoo hauv kev tshaj tawm tau txais kev lees paub !!! Cov lus qhia no yuav qhia koj txog cov txheej txheem ntawm kev tsim teeb tsa kev tswj hwm thiab teeb tsa cov teeb pom kev zoo thaum tseem qhia koj qhov pib ntawm Arduino. Qee qhov kev paub xav tau thiab kuv pom zoo kom nyeem thiab ua raws feem ntau yog tias tsis yog txhua nplooj ntawv ntawm cov ntawv hauv qab no, tsim los ntawm cov neeg zoo Arduino.cc! Arduino - Pib phau ntawv qhia peb yuav siv thiab yuav siv lawv li cas, nws tseem piav qhia txog digital, kev sib piv thiab cov lej nkag thiab cov txiaj ntsig thiab seb lawv siv li cas. thiab ntau yam ntxiv nplua nuj, vim yog qhov yooj yim ntawm Arduino kev txhim kho ib puag ncig. Thaum qhov haujlwm no, koj yuav nyiam txuas ntxiv los ntawm …+ Ua kom lub teeb ua haujlwm rau hla txoj kev (nthuav qhov nyuaj ntawm qhov ua ntu zus).+ Ua qhov teeb tsa programmable los ntawm siv EEPROM thiab Serial chaw nres nkoj.+ Ua kom lub teeb sib txuas lus nrog lwm tus Arduino khiav tib txoj cai.

Kauj Ruam 1: Qhov Chaw

Koj yuav xav tau ob peb ntu, yog tias koj twb tau ua kuv qhov haujlwm dhau los ntawm AVR microprocessors, tom qab ntawd koj tsis tas yuav yuav tib yam ntxiv, Koj yuav tsum tsuas yog xav tau Arduino thiab USB coj uas koj tuaj yeem tau txais los ntawm Tinker.it thiab qee qhov daim ntawv ntawm 5v piezo sounder. Cov no yog yam xav tau yam tsawg kawg nkaus uas koj tuaj yeem xaj ntxiv rau kev thaub qab lossis nthuav tawm ntawm txoj haujlwm no. 1x Breadboard (34-0655) 1x Jumper Links (34-0495) 2x Liab LEDs (55-0155) 1x Txiv kab ntxwv (tsis amber) LED (55-0124) 2x Green LEDs (55-0120) 1x Dawb LED (55-164040)) 1x Piezo Sounder (35-0282) 1x Push to button (78-0630) 1x 10K Resistors (62-0394) 1x 220ohm Resistors (62-0354) XAUS-1x 3m USB Cable (19-8662) Ceev Online-£ 20.701x Arduino DiecimilaTinker.it- £ 20.35Qhov tag nrho yog.0 41.05 uas siab dua AVR qhia tab sis nws muaj nqis nws thiab suav nrog kev xa khoom. Peb them nqi tau nrawm heev yog li vim li cas thiaj tsis mus khw txog thaum koj nyob ntawd thiab ntawm Tinker. nws thiab pom yog tias koj tuaj yeem pom qee qhov uas koj tuaj yeem ua si nrog tom qab hnub tom qab. Ntau LEDs thiab lwm yam khoom uas koj xav tias koj tuaj yeem ua si nrog. Qhov xov xwm zoo yog koj yuav tsis xav tau cov cuab yeej lossis cov laug rau qhov haujlwm no, nws tsuas yog thawb cov khoom ua ke! Thaum koj muaj txhua ntu koj npaj tau los sib sau ua koj txoj haujlwm, txawm li cas los xij yog tias koj tab tom npaj ua kom txoj haujlwm no ruaj khov dua koj yuav xav kom tau qee daim ntawv ntawm lub rooj tsav nkoj los txhawm rau txhuam koj txoj haujlwm thaum nws ua haujlwm.

Kauj ruam 2: Pib

Kev pib yog ib qho yooj yim, teeb tsa yooj yim thiab txheeb xyuas txhua yam khoom siv nyob ntawd, nws zoo tshaj kom muaj Arduino mus rau sab laug ntawm lub khob cij, thiab txuas nrog, tom qab ntawv yooj yim ua raws ob peb kauj ruam tom ntej txhawm rau ntxiv txhua qhov khoom siv rau lub rooj noj mov, xaim lub rooj tsavxwm rau Arduino, thiab thaum kawg ua haujlwm rau Arduino, tom qab koj yuav tuaj yeem sim nws ua haujlwm thiab nyeem dhau cov cai nrog cov lus pom kom pom dab tsi tshwm sim.

Kauj Ruam 3: LEDs

LEDs
LEDs
LEDs
LEDs
LEDs
LEDs

Ua ntej peb pib ua kom ntseeg tau tias txhua lub LED tau txuas nrog txoj kev nyob ib puag ncig. Cov hlau lead luv mus rau sab xis thiab ntev dua ntawm sab laug. Peb yuav ntxiv cov resistors tom qab yog li nco ntsoov tsis txhob ntsaws rau hauv lub hwj chim twg li vim nws tuaj yeem ua rau LEDs puas tsuaj Cov duab hauv qab no qhia qhov ntev thiab luv ua, thiab tom qab ntawd thib ob duab qhia tau hais tias lawv yuav tsum tau xaim li cas, thib peb qhia qhov kev txiav txim. Ua kom ntseeg tau tias yu muaj cov LEDs nthuav tawm los ntawm 5 kem me ntsis mus rau ob kab ntawv me me lossis lwm qhov lawv yuav tsis ua haujlwm thiab koj yuav muaj luv Circuit Court.

Kauj ruam 4: Piezo

Piezo
Piezo
Piezo
Piezo
Piezo
Piezo

Peb yuav rov qab los rau qhov no thiab yuav tsum tau nqa nws los teeb cov hlua rau Arduino tab sis tam sim no tsuas yog muab tso rau hauv ib qho nrog tus pin ntawm ob sab ntawm qhov faib nruab nrab yog li peb tsis luv ntawm ob tus pin. board pins tau txuas los ntawm sab laug mus rau sab xis hauv ob ntu ntawm 5 nrog kev sib faib nyob hauv nruab nrab kom cais ob ntu, thiab 2 tus pin sab nrauv txuas nrog los ntawm sab saum toj mus rau hauv qab hauv ob kab, cov no yog ntawm ob sab tab sis tsis txuas nrog los ntawm ib sab ntawm pawg thawj coj mus rau lwm qhov, hauv lwm cov ntsiab lus no tuaj yeem siv los muab ob txoj kev sib cais sib cais ywj pheej ntawm ib leeg yog tias xav tau. xaim los ntawm ib nrab sab saum toj mus rau ib nrab hauv qab yog tias koj lub Circuit Court tsis ua haujlwm.

Kauj ruam 5: Khawm

Khawm
Khawm
Khawm
Khawm
Khawm
Khawm
Khawm
Khawm

Lub khawm muaj 4 tus pin, xyuas kom tag nrho cov no txuas nrog thiab tsis khoov zoo ib yam nrog Piezo kom nws zaum hla lub hauv paus nruab nrab. Ntxiv los ntawm kab xaim sab saum toj sab tes xis tus pin rau sab liab ntawm txoj kab ntsug, zoo li LEDs (saib daim duab thib ob txuas hauv qab no) Siv tus tiv thaiv BROWN BLACK ORANGE GOLD (10k) thiab xaim nws raws li qhia hauv daim duab 4 txuas hauv qab no. (Los ntawm txoj cai hauv qab khiav ntsug ntawm lub rooj tsavxwm, txoj kev me me 1 nti yog txaus).

Kauj Ruam 6: Resistors

Resistors
Resistors
Resistors
Resistors
Resistors
Resistors

Siv 220 ohm resistors xaim los ntawm LEDs hla tus faib rau tib kab ntawm sab nraud, (Saib daim duab thib ob piv txwv) thiab rov ua dua rau txhua lub LED. Ntxiv cov xim dawb LED nyob nruab nrab ntawm Piezo thiab khawm thiab ntxiv qhov tiv thaiv rau qhov ntawd LED kuj. Qhov duab thib 3 hauv qab no qhia qhov ua tiav. (nco ntsoov GREEN xaim tsis tsim nyog, tshwj tsis yog koj lub Circuit tsis ua haujlwm zoo li kuv tau ua, nws koom nrog ib nrab ntawm cov laug cam fais fab ntsia mus rau ib nrab hauv qab ib yam li cov laug cam tau faib).

Kauj Ruam 7: Txuas kab

Thaiv
Thaiv
Thaiv
Thaiv
Thaiv
Thaiv
Thaiv
Thaiv

Tam sim no peb tab tom yuav xaim Arduino mus rau lub khob cij, cov xov hlau txhua lo lus hauv qhov kev txiav txim los ntawm sab saum toj mus rau hauv qab, thiab tsis hla hla yog li yog lub teeb tsis raug los ntawm lub sijhawm tsis raug cai kho cov kab rov qab rau hauv qhov chaw raug … hauv qab no qhia seb yuav tsum tau siv xov tooj li cas. Qhov duab 2 & 3: Los ntawm kab 5v mus rau tus tiv thaiv peb tso tawm los ntawm lub pob. Duab 4 & 5: Cov hlau ntsuab ntawm GND (hauv av) tus pin mus rau txoj kev tsheb ciav hlau liab uas koj txuas lub cathode ntawm koj cov LEDs rau. Kev yees duab 6: Cov LEDs tau txuas los ntawm tus pin 13 mus rau 8 pib ntawm sab saum toj LED ua haujlwm koj txoj hauv kev los ntawm lub rooj mov ci. Qhov no yog vim li cas kuv hais kom muaj lub rooj tsavxwm rau sab laug raws li koj tuaj yeem xaim nws raws li hauv qab no… 13 o -------- o ---/\/\/\/\/\/\ --- O --- | 12 o -------- o ---/\/\/\/\/\ --- / O --- | 11 o -------- o ---/\/\/\/\/\/\ --- --- O --- | 10 o -------- o ---/\/\/\/\/\/\- ---- O --- | 09 o -------- o ---/\/\/\/\/\ --- / O --- | Image 7: Hlau cov kab liab liab zoo li ua ntej mus rau Piezo (tus pin 8), tos coj (tus pin 7) thiab khawm (tus pin 6) Nco tseg txoj haujlwm ntawm tus pin 6 yog qhov tseem ceeb lwm qhov ntse lub teeb tsheb yuav txuas mus tas li yog tias khawm tau tuav cia.

Kauj ruam 8: Programming Arduino

Programming Arduino
Programming Arduino
Programming Arduino
Programming Arduino
Programming Arduino
Programming Arduino

Programming Arduino tsis tuaj yeem yooj yim dua, txawm li cas los xij peb yuav tsum qhia Arduino IDE qhov twg los saib rau Arduino thiab hom Arduino tham nrog dab tsi. Qhia rau nws seb hom twg tham nrog mus rau TOOLS> BOARD> ARDUINO DIECIMILA. To qhia nws qhov twg los saib rau Arduino mus rau TOOLS> SERIAL PORT, thiab xaiv qhov chaw zoo tshaj plaws, nws yuav hais usb cov lej lossis qee yam zoo sib xws, tsis yog bluetooth lossis lwm yam, qhov xwm txheej phem tshaj koj tau ua tsis raug thiab yuav tsum tau teeb nws Tam sim no koj qhib cov ntawv PDE uas txuas nrog thiab xa nws mus rau lub rooj tsavxwm, los ntawm nias lub pob nrog tus xub taw mus rau qee qhov//--> | Qhov no yuav siv sijhawm me ntsis thiab yog tias ua tiav koj Arduino yuav tam sim no tau ua haujlwm cov cai, nias lub pob kom deb tshaj plaws mus rau sab xis (saib daim duab) kom tswj lub rooj tsavxwm nrog lub davhlau ya nyob twg zoo li lub interface.

Kauj Ruam 9: Thiab Lawv Txhua Tus Nyob Zoo Siab Txhua Hnub Tom Qab … Qhov Kawg

Koj ua tiav! Los ntawm kev tawm cov cai kuv tau sau cov lus pom thiab koj tuaj yeem nyeem cov ntawv no kom paub seb txhua kab ua dab tsi, thiab tom qab ntawd sim tinkering nrog nws kom pom tias muaj dab tsi tshwm sim, ntawm qhov xwm txheej tsis zoo koj tuaj yeem rov kho nws rov mus rau qhov qub. Yog li cas yog tias koj xav tau ntau dua pab lossis qhia kuv muaj ob peb qhov txuas thiab cov peev txheej hauv qab no … Ua ntej kuv mus Kuv xav ua tsaug Alex thiab pab pawg ntawm Tinker.it uas tau qhia kuv txhua yam kuv paub ntawm ib ntawm lawv li kev pib ua haujlwm, lawv tau ci ntsa iab tiag tiag ntawm qhov lawv ua, ua tsaug !!! Tsis tas li ua tsaug rau Sparkfun.com thiab Rapidonline.com uas yog cov peev txheej zoo ntawm cov khoom siv rau arduino! Cov Txuas thiab Cov Khoom SivArduino.cc - Nov yog lub tsev ntawm ArduinoGuide - Phau ntawv qhia no tau pom zoo kom nyeem! Ceev Online - Cov khw muag khoom hauv UK rau cov khoom kuv siv niaj hnub noTinker.it - UK Lub Khw Muag Khoom ntawm ArduinoDigikey - Asmeskas Lub Khw Muag Khoom rau feem uas kuv siv niaj hnub no lej lwm yam… Ua tsaug rau kev nyeem, thiab muaj kev lom zem!

Pom zoo: