Cov txheej txheem:

Techduino -- Yuav Ua Li Cas Ua Koj Tus Kheej Hauv Tsev Arduino Uno R3 --: 9 Kauj Ruam (nrog Duab)
Techduino -- Yuav Ua Li Cas Ua Koj Tus Kheej Hauv Tsev Arduino Uno R3 --: 9 Kauj Ruam (nrog Duab)

Video: Techduino -- Yuav Ua Li Cas Ua Koj Tus Kheej Hauv Tsev Arduino Uno R3 --: 9 Kauj Ruam (nrog Duab)

Video: Techduino -- Yuav Ua Li Cas Ua Koj Tus Kheej Hauv Tsev Arduino Uno R3 --: 9 Kauj Ruam (nrog Duab)
Video: Cas Tsis Xaiv Koj - R-Lin Thoj New Song Original By Zaj Dub [Official MV] 2023 2024, Kaum ib hlis
Anonim
Image
Image

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

Ntxiv Circuitry rau Lub Hwj Huam Fais Fab
Ntxiv Circuitry rau Lub Hwj Huam Fais Fab

Txhawm rau ua qhov no, koj yuav xav tau:

Cov Tshooj Yooj Yim rau thaiv kab Arduino

  1. Lub khob cij 22 AWG xaim
  2. 7805 Tus tswj hwm qhov hluav taws xob
  3. 2 LEDs 2 220 Ohm resistors
  4. 1 10k Ohm resistor
  5. 2 10 uF capacitors
  6. 16 MHz moos siv lead ua
  7. 2 22 pF capacitors
  8. me me ib ntus nquag qhib ("tawm") khawm

Kauj Ruam 2: Ntxiv Circuitry rau Lub Hwj Huam

Ntxiv Circuitry rau Lub Hwj Huam Fais Fab
Ntxiv Circuitry rau Lub Hwj Huam Fais Fab

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

ATMEGA8/168/328 Cov hauv paus
ATMEGA8/168/328 Cov hauv paus

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 Txoj Haujlwm
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 Cristal
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 Pib Hloov
Ntxiv 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

LED Ua Rau Arduino Pin 13
LED Ua Rau Arduino Pin 13
LED Ua Rau Arduino Pin 13
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

Arduino-Npaj!
Arduino-Npaj!
Arduino-Npaj!
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

Image
Image
Software Yuav Tau Siv
Software Yuav Tau Siv
Software Yuav Tau Siv
Software Yuav Tau Siv

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.