Cov txheej txheem:

ATmega8 Raws li Arduino (siv Sab Hauv 8Mhz Crystal): 7 Kauj Ruam (nrog Duab)
ATmega8 Raws li Arduino (siv Sab Hauv 8Mhz Crystal): 7 Kauj Ruam (nrog Duab)

Video: ATmega8 Raws li Arduino (siv Sab Hauv 8Mhz Crystal): 7 Kauj Ruam (nrog Duab)

Video: ATmega8 Raws li Arduino (siv Sab Hauv 8Mhz Crystal): 7 Kauj Ruam (nrog Duab)
Video: Now You Can Program any Kind of IC With Arduino, (AVR, STM, P-IC) 2024, Hlis ntuj nqeg
Anonim
ATmega8 Raws li Arduino (siv Sab Hauv 8Mhz Crystal)
ATmega8 Raws li Arduino (siv Sab Hauv 8Mhz Crystal)

Niaj hnub no, cov khoom siv zoo li Arduino tau pom muaj kev siv nrov heev. Lawv tuaj yeem siv los tsim ntau qhov haujlwm, txawm li cas los xij, lawv nyob hauv ntau qhov chaw thiab kim rau peb qee tus (suav nrog kuv). Txhawm rau daws qhov teeb meem no, kuv nthuav qhia rau koj cov lus qhia no, uas yuav qhia koj siv ATmega8 (lossis lwm yam avr) nti los khaws Arduino code thiab ua raws li kev cog lus thiab pheej yig Arduino. Ua qhov no xav tau cov khoom siv hluav taws xob yooj yim, uas, yog tias koj yog tus nyiam ua haujlwm ib yam, yuav twb muaj lawm. Tsis zoo li lwm cov lus qhia, uas nyob ntawm kev siv ntawm lwm cov siv lead ua oscillator kom ua tiav tib lub hom phiaj, txoj haujlwm no siv sab hauv 8Mhz siv lead ua ntawm ATmega8, uas ua rau nws muaj txiaj ntsig zoo rau cov uas tsis muaj 16Mhz siv lead ua.

Tsis tas li, kuv yuav siv Arduino ua ISP los teeb tsa lub nti, yog li qhov no ua rau nws pheej yig dua.

Tam sim no, yam tsis muaj ado ntxiv, cia pib tinkering!

Kauj ruam 1: Sau ib ncig ntawm qee yam khoom thiab qee cov ntaub ntawv

Sau ib ncig ntawm qee yam khoom thiab qee cov ntaub ntawv
Sau ib ncig ntawm qee yam khoom thiab qee cov ntaub ntawv

Yuav tsum:

1. 10uF capacitor - 1

2. Txiv neej rau Txiv neej Jumper Xov - 8

3. Cov qhob cij - 1

4. ATmega8 nti - 1

5. Arduino UNO lossis lwm yam Arduino

Cov khoom mus download tau:

1. Bootloader rau ATmega8

2. Arduino IDE v1.0.1

Qhov txuas no yuav coj koj mus rau Arduino IDE rub tawm nplooj ntawv. Rub tawm v.1.0.1 tshwj xeeb vim tias kuv tau pom nws ua haujlwm zoo nrog ATmega8 nti. Vim li cas, qhov hloov tshiab kawg tsis txhawb kev hloov kho ntawm Boards.txt, uas yog qhov tseem ceeb rau qhov kev qhia no. 5. Boards.txt

Kev siv cov ntaub ntawv no yuav piav qhia tom qab.

Kauj Ruam 2: Hloov Arduino Ua Tus Programmer

Arduino tuaj yeem hloov pauv mus ua tus programmer los ntawm kev xa cov duab kos ArduinoISP rau nws. Nws tau muab ua piv txwv piv txwv los ntawm Arduino. Txawm li cas los xij, Kuv tab tom muab cov cai ua cov ntawv ib yam nkaus. Rub tawm nws thiab rub nws mus rau koj Arduino.

Thaum cov cai tau rub tawm, mus rau kauj ruam tom ntej.

Kauj Ruam 3: Teeb Up Arduino V1.0.1

Teeb tsa Arduino V1.0.1
Teeb tsa Arduino V1.0.1
Teeb tsa Arduino V1.0.1
Teeb tsa Arduino V1.0.1

Tom qab rub tawm Arduino v1.0.1, rho tawm nws. Tsis tas li, theej tag nrho cov ntawv ntawm "boards.txt" cov ntawv koj rub tawm.

1. Tam sim no koj yuav tsum xauj cov ntawv hauv qab no hauv cov ntawv rho tawm:

"…….. / arduino-1.0.1 / hardware / arduino / boards.txt"

2. Qhib "boards.txt" thiab muab cov ntawv theej ntawm qhov kawg ntawm cov ntawv.

3. Tam sim no qhib "arduino.exe" tso rau hauv cov ntawv rho tawm Arduino 1.0.1.

4. Xaiv pawg Arduino ua "ATmega8-noxtal @8MHz"

5. Xaiv Programmer li "Arduino as ISP"

Tam sim no koj Arduino IDE v1.0.1 tau teeb tsa!

Kauj Ruam 4: Hooking Arduino Nrog ATmega8

Hooking Up Arduino Nrog ATmega8
Hooking Up Arduino Nrog ATmega8
Hooking Up Arduino Nrog ATmega8
Hooking Up Arduino Nrog ATmega8
Hooking Up Arduino Nrog ATmega8
Hooking Up Arduino Nrog ATmega8

Hlau ATmega8 IC nrog koj Arduino los ntawm kev hais txog cov lus qhia saum toj no.

Tsis tas li, nco ntsoov tso 10uF capacitor nruab nrab ntawm RESET thiab GND pins.

Kuv tau txuas daim duab ntawm qhov kuv tau txuas kuv Arduino rau ATmega8.

Kauj Ruam 5: Hlawv Bootloader rau ATmega8

Hlawv Bootloader rau ATmega8
Hlawv Bootloader rau ATmega8
Hlawv Bootloader rau ATmega8
Hlawv Bootloader rau ATmega8
Hlawv Bootloader rau ATmega8
Hlawv Bootloader rau ATmega8
Hlawv Bootloader rau ATmega8
Hlawv Bootloader rau ATmega8

Bootloaders yog cov ntaub ntawv uas ua rau lub microcontroller tuaj yeem ua haujlwm ntawm nws tus kheej. Yog li ntawd, thaum ATmega8 tau hlawv nrog lub bootloader, peb yuav tuaj yeem siv nws ua Arduino.

Txhawm rau hlawv lub bootloader:

1. Extract "atmega8_noxtal.zip" rau "……. / Arduino-1.0.1 / hardware / arduino / bootloaders \".

2. Yog tias Arduino IDE twb tau khiav lawm, rov pib dua, lwm qhov qhib nws.

3. Txheeb xyuas yog tus Programmer, COM Port thiab Board tau teeb tsa raug raws li tau piav qhia hauv ib qho ntawm cov kauj ruam dhau los.

4. Ntaus "Hlawv Bootloader" hauv qab "Tools" menu.

Yog tias koj tau xaim txuas kom raug, nyem rau qhov "Hlawv Bootloader" xaiv, RX, TX, thiab L teeb ntawm Arduino yuav pib ci ntsa iab. Kuv tau tshaj tawm daim duab ib yam nkaus.

Kauj Ruam 6: Tshaj Tawm Cov Sketches rau ATmega8

Uploading Sketches rau ATmega8
Uploading Sketches rau ATmega8
Uploading Sketches rau ATmega8
Uploading Sketches rau ATmega8

Tom qab hlawv lub bootloader rau koj ATmega8, koj yuav luag tiav txoj haujlwm no.

Tam sim no txhua yam uas tau ua dhau los yog xa koj daim duab xav tau rau koj lub nti. Txhawm rau ua qhov ntawd, xyuas kom meej tias pawg thawj coj tau teeb tsa rau "Atmega8-noxtal @8Mhz", thiab tus programmer rau "Arduino li ISP".

Nco ntsoov tias cov hlua uas koj tau siv los hlawv lub bootloader kuj tseem siv rau rub cov duab kos

Kev xa cov duab kos tau ua tiav los ntawm kev siv Arduino ua tus programmer, yog li tsis zoo li feem ntau, thaum koj nias "Ctrl+U", tam sim no koj yuav tsum tau nyem "Ctrl+Shift+U", uas qhia IDE rau program chip los ntawm Arduino.

Kauj Ruam 7: Nrog koj zoo siab

Image
Image
Nrog koj zoo siab!
Nrog koj zoo siab!

Nrog koj zoo siab rau kev hloov pauv koj li ATmega8 nti mus rau hauv Mini Arduino. Tam sim no koj tuaj yeem ua rau koj cov phiaj xwm ntau dua kev cog lus thiab pheej yig. Txhawm rau nkag siab nws tus lej sib piv nrog Arduino pins, xa mus rau "ATmega8 li Arduino Pinout" cov ntaub ntawv uas koj tau rub tawm ua ntej.

Tsis tas li, yog tias koj pom cov lus qhia no muaj txiaj ntsig, thov txhawb kuv los ntawm kev qhib qhov rub tawm txuas luv dua ob zaug lossis peb zaug. Koj tseem tuaj yeem txhawb nqa kuv ntawm Patreon.

Qhov ntawd yog txhua yam rau qhov kev qhia no! Yog tias koj muaj kev tsis ntseeg, thov tawm tswv yim.

Khaws Tinkering!

Txoj Haujlwm Los Ntawm:

Utkarsh Verma

Ua tsaug rau Ashish Choudhary rau qiv nws lub koob yees duab.

Pom zoo: