Cov txheej txheem:

Shrinkify Koj Cov Haujlwm Arduino - Arduino UNO Raws li ATmega328P Programmer (https://youtu.be/YO61YCaC9DY): 4 Kauj Ruam
Shrinkify Koj Cov Haujlwm Arduino - Arduino UNO Raws li ATmega328P Programmer (https://youtu.be/YO61YCaC9DY): 4 Kauj Ruam

Video: Shrinkify Koj Cov Haujlwm Arduino - Arduino UNO Raws li ATmega328P Programmer (https://youtu.be/YO61YCaC9DY): 4 Kauj Ruam

Video: Shrinkify Koj Cov Haujlwm Arduino - Arduino UNO Raws li ATmega328P Programmer (https://youtu.be/YO61YCaC9DY): 4 Kauj Ruam
Video: Computer Vision with Python! Resizing Images 2024, Hlis ntuj nqeg
Anonim
Image
Image

Link Video:

Programme ATmega328P siv Arduino ua ISP (Hauv-System Programmer) tso cai rau koj siv Arduino cov yam ntxwv ntawm lub khob cij lossis PCB. Nws feem ntau pab thaum koj tab tom ua koj txoj haujlwm hauv tsev kawm qib siab. Nws txo tus nqi ntawm txoj haujlwm thiab qhov loj ib yam. Yog li yooj yim ua qhov kev sim ntawm Arduino thiab ua tiav txoj haujlwm ntawm ATmega328P. Programming ATmega328P siv Arduino ua ISP nws tsuas yog siv ob peb kauj ruam. Ua ntej pib mus rau qhov program koj yuav tsum paub dab tsi yog Bootloader.

Lub bootloader hauv Arduino/ATmega328P: Lub bootloader yog cov duab kos uas tau teeb tsa rau hauv qhov programmable flash memory ntawm Arduino/ATmega328P (thiab nyob 4380 bytes tawm ntawm 32KBytes). Nws yog qhov sib txawv ntawm Arduino ATmega328P thiab lub Hoobkas qub Atmega328P. Arduino bootloader khiav thaum lub rooj tsav xwm tau qhib ON (lossis thaum peb nias lub pob pib dua). Lub bootloader no pib tos rau qhov kos duab tshiab ntawm qhov chaw nres nkoj txuas los ntawm Arduino IDE, yog tias nws tau txais qee yam, daim duab tshiab tau hlawv mus rau hauv lub cim xeeb flash lossis lwm yam nws sau cov duab uas tau hlawv yav dhau los. Feem ntau Arduino microcontrollers muaj lub luag haujlwm pib rov pib dua uas tso cai rau Arduino IDE rov pib dua thiab xa cov lej. Lub bootloader yuav tsum nkag siab dab tsi Arduino IDE xa thiab sau nws mus rau lub cim xeeb nyem ntawm lub microcontroller. Txhawm rau hlawv cov lej ntawm Atmega328P yam tsis muaj Arduino bootloader, koj yuav xav tau ISP programmer xws li AVR ISP.

Yog li ntawm no peb yuav pib hlawv lub bootloader rau tshiab yuav ATmega328P thiab tom qab ntawd siv Arduino ua ISP txhawm rau hlawv qhov xav tau kos duab hauv ATmega328P.

Arduino - Bootloader

Arduino - Ib puag ncig

Cov kauj ruam los siv Arduino UNO Raws li ATmega328P Programmer:

Kauj ruam 1: Upload ArduinoISP code hauv Arduino UNO.

Kauj Ruam 2: Ua kom yooj yim teeb tsa lub rooj rau ATmega328P.

Kauj ruam 3: Hlawv Bootloader.

Kauj ruam 4: Xa koj cov cai rau ATmega328P.

Kauj ruam 1: Upload ArduinoISP Code hauv Arduino UNO

Upload ArduinoISP Code hauv Arduino UNO
Upload ArduinoISP Code hauv Arduino UNO

ArduinoISP yog daim duab kos uas ua haujlwm zoo li bootloader kos duab tom qab hlawv nws mus rau hauv lub cim xeeb flash ntawm ATmega328P. Ua ntej tshaj plaws, txheeb xyuas qhov teeb tsa raws li hauv qab no:

Pawg thawj coj: "Arduino/Genuino Uno"

PORT: "COM2" // Koj li yuav txawv

Programmer: "AVRISP mkII"

Tom qab ntawd mus rau Cov Ntaub Ntawv> Piv Txwv> ArduinoISP> ArduinoISPA thiab xa nws mus rau Arduino Uno.

Kauj Ruam 2: Ua Kev Txhim Kho Breadboard rau ATmega328P

Ua Yooj Yim Breadboard Teeb rau ATmega328P
Ua Yooj Yim Breadboard Teeb rau ATmega328P
Ua Yooj Yim Breadboard Teeb rau ATmega328P
Ua Yooj Yim Breadboard Teeb rau ATmega328P

Saum toj no yog kev teeb tsa yooj yim ntawm ATmega328P kom ua haujlwm tau zoo. Tom qab teeb tsa lub khob cij, nws yog lub sijhawm los txuas nrog chav ua mov ci no nrog Arduino. Tam sim no ua raws qhov txuas txuas saum toj no hauv daim duab los txuas rau Arduino thiab cov khoom siv hluav taws xob.

Kauj ruam 3: Hlawv Bootloader

Hlawv Bootloader
Hlawv Bootloader

Vam tias koj tau nkag siab txog kev siv hlawv bootloader. Peb yuav tsum tau hlawv bootloader nkaus xwb thiab tom qab ntawd program ATmega328P ntau npaum li koj xav tau yam tsis tau hlawv bootloader dua. Tam sim no nws yog lub sijhawm los hlawv lub bootloader. Hloov kho cov cuab yeej teeb tsa raws li qhia hauv daim duab thiab tom qab ntawd hlawv Bootloader.

Kauj Ruam 4: Tshaj Tawm Koj Txoj Cai rau ATmega328P

Hloov koj li Code rau ATmega328P
Hloov koj li Code rau ATmega328P
Hloov koj li Code rau ATmega328P
Hloov koj li Code rau ATmega328P

Qhib cov cai koj xav rub tawm.

Khaws cov cuab yeej teeb tsa ib yam ib yam ntawm cov txheej txheem hlawv bootloader.

Tam sim no xa cov cai rau ATmega328P los ntawm kev siv "Ua haujlwm + Upload".

Yog li qhov no yog li cas koj tuaj yeem Program ATmega328P siv Arduino Uno. Yog tias koj muaj kev tsis ntseeg, thov nug hauv nqe lus.

Rub tawm:

Cov ntaub ntawv ATmega328P

Yuav:

ATmega328P los ntawm Amazon Is Nrias teb:

Arduino Uno Original los ntawm Amazon Is Nrias teb:

Tus nqi qis Arduino Uno los ntawm Amazon Is Nrias teb:

Pom zoo: