Cov txheej txheem:
- Kauj Ruam 1: Qhov Yuav Tsum Tau
- Kauj Ruam 2: Ntxiv Circuitry rau Lub Hwj Huam
- Kauj Ruam 3: ATMEGA8/168/328 Basics
- Kauj Ruam 4: Pib Txoj Haujlwm
- Kauj Ruam 5: Ntxiv Cristal
- Kauj Ruam 6: Ntxiv Pib Pib Hloov
- Kauj Ruam 7: LED Ua Rau Arduino Pin 13
- Kauj ruam 8: Arduino-Npaj
- Kauj Ruam 9: Siv Software
Video: Techduino -- Yuav Ua Li Cas Ua Koj Tus Kheej Hauv Tsev Arduino Uno R3 --: 9 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:31
Yog tias koj zoo li kuv, tom qab kuv tau txais kuv Arduino thiab ua qhov kev tsim kho zaum kawg ntawm kuv thawj lub nti, Kuv xav rub nws tawm ntawm kuv Arduino Uno R3 thiab muab tso rau ntawm kuv tus kheej Circuit. Qhov no tseem yuav tso kuv li Arduino rau cov haujlwm yav tom ntej. Tom qab nyeem dhau los ntawm ntau lub vev xaib thiab rooj sib tham, Kuv muaj peev xwm sau ua ke Cov Lus Qhia no. Kuv xav kom muaj cov ntaub ntawv kuv tau kawm txhua qhov hauv ib qho, thiab yooj yim ua raws. Cov lus pom thiab cov lus pom zoo txais tos thiab zoo siab vim kuv tseem tab tom kawm paub txhua yam no.
Kauj Ruam 1: Qhov Yuav Tsum Tau
Txhawm rau ua qhov no, koj yuav xav tau:
Cov Tshooj Yooj Yim rau thaiv kab Arduino
- Lub khob cij 22 AWG xaim
- 7805 Tus tswj hwm qhov hluav taws xob
- 2 LEDs 2 220 Ohm resistors
- 1 10k Ohm resistor
- 2 10 uF capacitors
- 16 MHz moos siv lead ua
- 2 22 pF capacitors
- me me ib ntus nquag qhib ("tawm") khawm
Kauj Ruam 2: Ntxiv Circuitry rau Lub Hwj Huam
Ntawm no kuv tab tom siv 5V lub xov tooj hluav taws xob hloov LM7805 (Cov ntawv no siv 5V tswj cov khoom siv hluav taws xob). Nws yooj yim thiab txuag qee qhov chaw hauv nkoj. Koj tuaj yeem koj LM7805 tab sis tom qab ntawd koj yuav tsum siv lub zog hluav taws xob ntau dua yog vim li cas kuv thiaj li siv 5V qhov them tas li.
Kauj Ruam 3: ATMEGA8/168/328 Basics
Ua ntej txav mus, txheeb xyuas daim duab no. Nws yog cov peev txheej zoo rau kev kawm paub txhua tus lej ntawm koj li Atmega nti ua rau cuam tshuam nrog Arduino cov haujlwm. Qhov no yuav piav qhia ntau qhov tsis meej pem tom qab vim li cas koj thiaj li txuas qee tus pin raws li koj ua. Yog xav paub cov ntaub ntawv ntxaws ntxiv, ua tibzoo saib ntawm phau ntawv teev npe rau Atmega168 (luv luv version) (ntev ntev). Nov yog daim ntawv rau Atmega328 (luv version) (ntev version)
Kauj Ruam 4: Pib Txoj Haujlwm
Pib los ntawm kev txuas 10k ohm rub tawm tus tiv thaiv rau +5V los ntawm RESET tus pin txhawm rau tiv thaiv lub nti los ntawm kev rov pib dua nws tus kheej thaum ua haujlwm ib txwm muaj. RESET tus pin reboots lub nti thaum rub los rau hauv av.
Pin 7 - Vcc - Cov Khoom Siv Hluav Taws Xob
Pin 8 - GND
Pin 22 - GND
Tus Pin 21 - AREF - Tus lej siv sib piv rau ADC
Tus Pin 20 - AVcc - Muab qhov hluav taws xob rau ADC hloov pauv. Yuav tsum tau txuas nrog lub zog yog tias ADC tsis tau siv thiab siv lub zog los ntawm lub lim qis dhau yog tias nws yog (lub lim qis dhau yog lub voj voog uas txo suab nrov los ntawm lub zog siv. Qhov piv txwv no tsis siv ib qho)
Kauj Ruam 5: Ntxiv Cristal
Ntxiv 16 MHz lub moos sab nraud ntawm tus pin 9 thiab 10, thiab ntxiv ob 22 pF capacitors khiav mus rau hauv av los ntawm txhua tus pin ntawd.
Kauj Ruam 6: Ntxiv Pib Pib Hloov
Ntxiv qhov hloov pauv me me kom koj tuaj yeem rov pib dua Arduino thaum twg peb xav tau thiab npaj cov nti rau xa cov haujlwm tshiab. Kev nrawm nrawm ntawm qhov hloov no yuav rov pib dua lub nti thaum xav tau. Ntxiv qhov hloov pauv saum toj kawg nkaus ntawm Atmega nti hla qhov sib txawv hauv lub khob cij. Tom qab ntawd, ntxiv xaim los ntawm sab laug sab laug ntawm qhov hloov mus rau RESET tus pin ntawm Atmega nti thiab xaim los ntawm sab saum toj sab ceg ceg ntawm qhov hloov mus rau hauv av.
Kauj Ruam 7: LED Ua Rau Arduino Pin 13
Cov nti uas siv ntawm lub rooj tsavxwm no twb tau ua haujlwm tiav siv lub blink_led program uas los nrog Arduino software. Yog tias koj twb muaj Arduino luam tawm lub rooj tsav xwm hluav taws xob khiav, nws yog lub tswv yim zoo mus tom ntej thiab txheeb xyuas daim ntawv qhia zaub mov uas koj tab tom tsim nrog nti uas koj paub ua haujlwm. Rub lub nti los ntawm koj qhov ua haujlwm Arduino thiab sim nws ntawm pawg no. Txoj haujlwm blink_led ntsais tus pin 13. Tus pin 13 ntawm Arduino TSIS YOG AVR ATMEGA8-16PU/ATMEGA168-16PU tus pin 13. Nws yog tus pin tiag 19 ntawm Atmega nti.
Thaum kawg, ntxiv LED. Cov ceg ntev lossis anode txuas rau cov hlau liab thiab cov ceg luv lossis cov cathode txuas rau 220 ohm resistor mus rau hauv av.
Kauj ruam 8: Arduino-Npaj
Txog tam sim no yog tias koj twb tau teeb tsa koj lub nti nyob rau lwm qhov thiab tsis xav tau lub tshuab hluav taws xob txuas hluav taws xob los rov ua dua lub nti, koj tuaj yeem nres ntawm no. Tab sis ib feem ntawm kev lom zem yog nyob hauv Circuit-programming yog li txuas ntxiv mus tiag tiag ua kom tiav USB-Arduino-Circuit ntawm lub khob cij!
Kauj Ruam 9: Siv Software
Txhawm rau ua Pawg Techduino Kuv tau siv Circuit Wizard Trial Version Software. Koj tuaj yeem siv Nws lossis Kuv tab tom muab daim duab qhia chaw xav tau thiab PCB teeb tsa ntawm no.
Ua Tsaug Rau Saib Kuv Qhov project.