Cov txheej txheem:

Yuav Ua Haujlwm Li Cas Pawg AVR Siv Pawg Arduino: 6 Kauj Ruam
Yuav Ua Haujlwm Li Cas Pawg AVR Siv Pawg Arduino: 6 Kauj Ruam

Video: Yuav Ua Haujlwm Li Cas Pawg AVR Siv Pawg Arduino: 6 Kauj Ruam

Video: Yuav Ua Haujlwm Li Cas Pawg AVR Siv Pawg Arduino: 6 Kauj Ruam
Video: Наука о данных с Python! Анализ типов файлов от Avro до Stata 2024, Hlis ntuj nqeg
Anonim
Yuav Ua Haujlwm Li Cas Pawg AVR Siv Pawg Arduino
Yuav Ua Haujlwm Li Cas Pawg AVR Siv Pawg Arduino

Koj puas muaj AVR microcontroller board tso ncig? Nws puas nyuaj rau program nws? Zoo, koj nyob hauv qhov chaw raug. Ntawm no, kuv yuav qhia koj yuav ua li cas rau txheej txheem Atmega8a microcontroller board siv Arduino Uno board ua tus programmer. Yog li tsis muaj ado ntxiv, cia peb pib!

Kauj ruam 1: Sau tag nrho cov khoom

Sau Txhua Yam
Sau Txhua Yam

Nov yog txhua yam koj yuav xav tau:

  • Arduino UNO/MEGA/nano microcontroller board.
  • AVR microcontroller board nrog lub microcontroller sib xws (xws li Atmega 8a)
  • Qhov tsim nyog USB cable rau Arduino board
  • Rau lub xov hlau jumper (ob qho rau lub zog, ib qho rau rov kho lub hom phiaj AVR pawg thawj coj thiab seem peb rau kev sib txuas lus)

Nyem rau ntawm daim duab saum toj no kom paub ntau ntxiv.

Kauj Ruam 2: Xa ISP Program mus rau Arduino Board

Rub tawm ISP Program mus rau Arduino Board
Rub tawm ISP Program mus rau Arduino Board

Pib Arduino IDE thiab mus rau Cov Ntaub Ntawv> Piv txwv> ArduinoISP. Xaiv lub rooj tsav xwm tsim nyog los ntawm Cov Cuab Yeej> Boards. Rub qhov program mus rau Arduino board.

Kauj Ruam 3: Txuas Lub Hom Phiaj AVR Board rau Arduino Board

Txuas Lub Hom Phiaj AVR Pawg rau Arduino Board
Txuas Lub Hom Phiaj AVR Pawg rau Arduino Board
Txuas Lub Hom Phiaj AVR Pawg rau Arduino Board
Txuas Lub Hom Phiaj AVR Pawg rau Arduino Board

Ua kev sib txuas raws li hauv qab no (AVR rau Arduino board):

VCC rau 5-volt

GND to CSY

RST/RESET rau D10

MYOB to D11

MYOB to D12

TXC to D13

Yog tias koj tsis tuaj yeem pom cov ntawv cim npe zoo li no, txheeb xyuas cov ntawv teev npe ntawm lub microcontroller nti ntawm lub vev xaib. Kuv tau ntxiv daim duab pinout ntawm qee qhov nrov Atmega microcontroller ICs saum toj no. Kuv lub AVR pawg thawj coj muaj Atmega 8a ntawm nws. Tsis tas li, txhua tus lej tseem ceeb ntawm lub rooj tsavxwm tau sau npe. Nco ntsoov tias koj tsis siv cov xaim xaim thiab flimsy.

Kauj Ruam 4: Hlawv Bootloader ntawm AVR Board

Hlawv Bootloader ntawm AVR Board
Hlawv Bootloader ntawm AVR Board

Mus Rau Cov Cuab Yeej> Boards> Xaiv Arduino NG lossis laus dua. Tom qab ntawd mus rau cov cuab yeej> Tus Txheej Txheem thiab xaiv ib qho tam sim no ntawm koj pawg AVR. Mus rau Cov Cuab Yeej> Programmer thiab xaiv Arduino ua ISP. Tam sim no mus rau Cov Cuab Yeej dua thiab tom qab ntawd nyem rau 'Hlawv Bootloader'. RX thiab TX LEDs ntawm Arduino pawg thawj coj yuav tsum nyem nrawm ob peb zaug thiab yog cov lus tshwm, hais tias 'Ua kom hlawv bootloader' tsis muaj qhov ua yuam kev, tom qab ntawd koj lub AVR board tau npaj los npaj!

Kauj Ruam 5: Kuaj AVR Board

Kuaj AVR Board
Kuaj AVR Board

Tshaj tawm txoj haujlwm yooj yim, xws li LED ntsais muag. Mus Rau Cov Ntaub Ntawv> Piv txwv> Hauv paus> Blink. Tuav tus yuam sij ua haujlwm thiab nyem rau ntawm Upload khawm. Tom qab rub tawm tiav, koj tuaj yeem tshem cov xov txuas thiab txuas koj lub AVR lub rooj tsavxwm thiab ntsuas seb nws puas tau ua haujlwm kom raug.

Kauj Ruam 6: Nws Ua tiav

Image
Image
Nws Ua Tiav!
Nws Ua Tiav!

Tam sim no koj tuaj yeem siv AVR pawg thawj coj los ua cov phiaj xwm hluav taws xob txias. Txij li thaum kuv nyiam tus qauv kev tsheb ciav hlau, Kuv tau tshaj tawm txoj haujlwm yooj yim kom khiav lub tsheb ciav hlau ntawm tus qauv siv tshuab. Txij li thaum kuv lub rooj tsav xwm AVR muaj ob lub cav tso tawm, kuv tuaj yeem siv lawv los tswj lub tsheb ciav hlau thiab cov neeg tawm mus. Cov ntaub ntawv txheej txheem ntawm tus lej no tuaj yeem nrhiav pom hauv cov kauj ruam tom ntej. Yog tias koj xav tau, koj tuaj yeem tshawb xyuas kuv ib yam.

Kuv xav paub tias koj tau ua dab tsi hnub no nrog nws. Txhua yam zoo tshaj plaws!

Pom zoo: