Cov txheej txheem:

Breadboard Arduino Txoj Cai Txoj Cai: 5 Kauj Ruam (nrog Duab)
Breadboard Arduino Txoj Cai Txoj Cai: 5 Kauj Ruam (nrog Duab)

Video: Breadboard Arduino Txoj Cai Txoj Cai: 5 Kauj Ruam (nrog Duab)

Video: Breadboard Arduino Txoj Cai Txoj Cai: 5 Kauj Ruam (nrog Duab)
Video: Arduino | Đồng hồ thời gian thực DS3231 + LCD 2024, Hlis ntuj nqeg
Anonim
Breadboard Arduino Txoj Kev Yog
Breadboard Arduino Txoj Kev Yog

Muaj lus ntau pua ntawm Breadboard Arduinos tawm muaj, yog li dab tsi txawv ntawm qhov no? Zoo muaj ntau yam uas feem ntau ntawm lawv thiab qhov tseeb txawm tias Arduino nws tus kheej ua tsis raug. Ua ntej tshaj plaws, cov khoom siv sib piv yog khi rau cov khoom siv digital. Muaj qhov laj thawj Atmel coj lawv tawm ntawm cov koob cais. Cov digital tsim cov suab nrov uas tuaj yeem cuam tshuam nrog kev hloov pauv analog. Atmel pom zoo 10µH inductor thiab cais lub peev xwm rau AVCC txhawm rau lim lub suab nrov no. Kuv tsis tau siv lub ntsuas hluav taws xob no lossis cov hlaws ferrite pom zoo rau VCC, tab sis yog tias koj yuav ua ntau yam khoom sib xws, tej zaum nws yog lub tswv yim zoo. Qhov Tsis Txaus Siab ntawm lub khob cij thiab cov dhia dhia ua haujlwm pab qee yam.

Lwm qhov kev txhim kho txhawj xeeb txog kab RESET. Txhawm rau tso cai hom HVPP, AVRs tsis muaj ESD tiv thaiv ntawm RESET tus pin. Yog li yog tias koj tsis siv lub tshuab hluav taws xob siab, nws raug nquahu kom siv lub diode los pab tiv thaiv ESD. Tag nrho cov no suav nrog hauv AVR042: AVR Khoos Phis Tawj Tsim Kev Xav. Thaj chaw tsawg tus neeg paub txog daim ntawv no.

Lwm qhov kev coj ua ib txwm yog tso lub capacitor ncaj qha hla qhov hloov pauv ntawm kab RESET. Qhov no tuaj yeem tsim cov hluav taws xob siab raws li AVR042. Qhov no tsis ua tiav ntau nrog AVRs, (tej zaum vim tias nws tua lawv ncaj ncees) tab sis feem ntau pom nrog ntau lwm lub micros thiab txawm tias ntawm cov chaw tsim khoom dev cov laug cam. Kev cia siab rau ESD kev tiv thaiv nyob rau hauv txoj kev no tsuas yog tsim tsis zoo hauv kuv lub tswv yim.

Kauj Ruam 1: Sau Cov Khoom

BOM rau qhov haujlwm no:

  • (1) 630 (830) qhov tsis siv lub lauj kaub tais diav
  • (1) Cov khoom siv sib txuas ua ke ntawm cov khoom siv hluav taws xob txuas lossis 24AWG cov tub ntxhais hlau xaim nyiaj lossis cov hlau nplaum
  • (1) USBtinyISP, Arduino ISP, thiab lwm yam.
  • (1) 6-pin ISP tawm lossis txiv neej rau txiv neej DuPont xov hlau
  • (1) Atmel ATmega328P-PU AVR Microcontroller (28-pin DIP)
  • (1) Ntsuab 3-5 hli LED qhia
  • (1) 1N914/1N4148 ceev diode
  • (1) 9mm ncej tactile pushbutton hloov
  • (1) 16MHz quartz siv lead ua oscillator, 15-20pF
  • (1) Ferrite hlaws (xaiv tau)
  • (1) 10µH inductor (yeem)
  • (1) 10µF multilayer ceramic
  • (4) 100nF monolithic ceramic
  • (2) 22pF ceramic disc
  • (1) 4.7k 1/4W resistor
  • (1) 680Ω1/4W resistor
  • (1) 330Ω1/4W resistor

Rau qhov hloov pauv, them me ntsis ntxiv thiab tau txais qee yam zoo. Cov square uas muaj feem ntau yog cov khib nyiab tsis txaus ntseeg.

Kauj Ruam 2: Pib Cov Sib Sau

Pib Assemblages
Pib Assemblages
Pib Assemblages
Pib Assemblages

Mount tag nrho cov khoom qis thiab dhia ua ntej. Txiav tivthaiv coj mus rau 8mm hauv qab qhov qis tshaj ntawm lub cev tivthaiv tom qab khoov. TSIS TXHOB txiav cov coj ntawm 3 yam khoom siv hauv cov kauj ruam tom ntej. Tsuas yog txiav lawv txawm tias tab sis tawm ntawm qhov ntev tshaj plaws. Ceev faj ntxiv nrog cov disc capacitors. Cov txheej txheej hauv qab yog qhov tsis taus thiab tawg tawm qhov twg nws npog cov hlau lead yog tias lawv yoog tau.

Pin 1 ntawm ATmega yuav tsum mus rau kab 11 kom yooj yim mus nrhiav tus pin. Tus pin 5 yog kab 15, tus pin 10 yog kab 20, thiab lwm yam.

Ib 100nF capacitor mus los ntawm A11 mus rau GND, nws nyuaj rau pom nws hauv cov duab. 330Ω resistor nyob hauv qhov D10 thiab D11. Daim duab Fritzing ua rau nws yooj yim pom dab tsi mus qhov twg.

Lwm 100nF lub kaus mom mus rau hauv D17, D18, lwm hauv G17, G19, thiab lwm qhov hauv H17, H18.

Lub jumper mus rau AVCC tuaj yeem xaiv hloov nrog 10µH inductor. Yog tias koj qhov kev ntsuas analog xav tau nws, nws yuav pab nrog suab nrov.

Qhov xaiv yeem ferrite hlaws mus rau VCC. Siv nws yog tias muaj lub suab nrov tsim cov khoom, piv txwv li 7400 series logic chips. Tshem tawm VCC jumper thiab hloov nws nrog cov hlaws ferrite.

Tsis txhob hnov qab cov dhia dhia txuas + thiab - hla lub rooj tsavxwm.

Kauj Ruam 3: ISP thiab Cov Khoom Siab

ISP thiab Cov Khoom Siab
ISP thiab Cov Khoom Siab
ISP thiab Cov Khoom Siab
ISP thiab Cov Khoom Siab
ISP thiab Cov Khoom Siab
ISP thiab Cov Khoom Siab

Cheebtsam siab tuaj tom ntej. Cov no yog cov diode, 4.7k resistor, thiab quartz siv lead ua. Nco ntsoov soj ntsuam qhov polarity ntawm diode. Cov cathode band mus rau ntawm + sab. Yog, nws yuav tsum tau thim rov qab.

Thaum txhua yam zoo li tau qhia thiab koj paub tseeb tias tsis muaj dab tsi luv, nws yog lub sijhawm rau ISP squid xov hlau. Pins 17, 18, thiab 19 ntawm ATmega yog MOSI MISO thiab SCK feem. RESET tuaj yeem mus rau J10 nrog hom kev hloov pauv no. VCC thiab GND yog + thiab - tau kawg.

Kauj Ruam 4: Qhov Kev Xaiv Bootloader

Xaiv yeem Bootloader
Xaiv yeem Bootloader

Nws yog qhov yuav tsum tau nyem lub bootloader rau hauv ATmega kom "upload" cov duab kos los ntawm Arduino IDE. Txwv tsis pub nws yuav tsuas yog upload dhau ISP. Serial sai dua, tab sis lub bootloader siv sijhawm me ntsis ntawm qhov chaw nco flash uas yuav txwv tsis pub mus rau koj daim duab thiab ua rau txheej txheem khau raj qeeb. Optiboot raug pom zoo yog tias koj mus rau txoj kev no thiab tsawg heev. Tus kheej, Kuv hla lub bootloader thiab tsuas yog siv ISP.

Lwm qhov kev txiav txim siab yog huab cua kom muaj zog dua ISP. Piv txwv li, USBtinyISP muaj lub jumper sab hauv los txhawb lub hom phiaj. Cov xov tooj qub them nyiaj kuj tseem ua rau lub hwj chim zoo heev. Cov laug cam tawg USB muaj lossis tsuas yog txiav tawm qhov txuas thiab hlua thiab xaim cov xov hlau yog tias koj siab tawv. Kuv muaj lub charger Android uas ntes tau ntawm kuv txhais ceg thiab tsoo, yog li nws tsis muaj teeb meem. Nrog squid xov hlau tawm ntawm VTG/VCC tus pin ntawm ISP thaum lub zog sab nraud lossis tso nws txuas nrog thiab tshem lub jumper.

Kauj Ruam 5: Xaus

Xaus
Xaus

Koj ua tiav lawm tam sim no. Tso cov duab kos ntsais rau qhov kev sim thiab LED yuav tsum pib nyem. Kuv muaj qhov cuam tshuam uas tau tsav lub ntsej muag ntsais muag qhov chaw. Saib seb koj puas pom nws.

Pom zoo: