Arduino Tsis Yog Programmable: Yuav Ua Li Cas Thaum "tsis Nyob Hauv Sync: Resp = 0x30" Yuam Kev

Cov txheej txheem:

Arduino Tsis Yog Programmable: Yuav Ua Li Cas Thaum "tsis Nyob Hauv Sync: Resp = 0x30" Yuam Kev
Arduino Tsis Yog Programmable: Yuav Ua Li Cas Thaum "tsis Nyob Hauv Sync: Resp = 0x30" Yuam Kev

Video: Arduino Tsis Yog Programmable: Yuav Ua Li Cas Thaum "tsis Nyob Hauv Sync: Resp = 0x30" Yuam Kev

Video: Arduino Tsis Yog Programmable: Yuav Ua Li Cas Thaum
Video: Plc на базе ATMega 2560, программируемой с помощью Arduino IDE 2024, Kaum ib hlis
Anonim

Nws tshwm sim uas koj sau cov kev pab cuam rau Arduino, thauj lawv rau hauv lub cim xeeb, thiab txhua yam ua haujlwm zoo. Thiab tom qab ntawd mam li nco dheev lawv tsis thauj khoom ntxiv lawm. Thiab kev tsim kho ib puag ncig, thaum sim xa duab piv txwv, muab qhov yuam kev: "arduino avrdude: stk500_recv (): programmer tsis teb avrdude: stk500_getsync () sim 10 ntawm 10: tsis nyob hauv sync: resp = 0x30".

Dab tsi? Tsa pawg thawj coj puas tau hlawv? Siv koj lub sijhawm tag kev cia siab: tej zaum txhua yam tseem tsis tau ploj mus. Cia peb sim paub nws.

Arduino IDE qhov rai nrog kev ua yuam kev
Arduino IDE qhov rai nrog kev ua yuam kev

Cov Lus Qhia

Kauj ruam 1

"Arduino" tsis yog programmable, txawm hais tias txhua yam ua haujlwm dhau los. Muaj ntau lub laj thawj rau tus cwj pwm no, uas yuav tsum tau txheeb xyuas:

- Vim qee lub sijhawm, tus tsav tau poob qis;

- xaiv qhov tsis ncaj ncees chaw nres nkoj COM;

- qhov chaw muaj hluav taws xob sib txuas, uas yuav tsum tsis txhob (luv luv Circuit Court);

- Lub nkoj thauj khoom ntawm Arduino board tau poob lawm.

Cia peb mus dhau txhua yam khoom ntawm daim ntawv no thiab paub meej kom txog thaum peb txhim kho cov teeb meem.

Yuam Kev
Yuam Kev

Kauj ruam 2

Cia peb qhib lub Windows Device Manager los ntawm Pib lub tshuab raj -> Tswj Vaj Huam Sib Luag -> Hardware thiab Suab -> Tus Thawj Tswj Ntaus Ntawv. Muaj qhov kev xaiv luv luv: nias lub pob ntawm Windows ntawm cov keyboard thiab, tsis tas tso nws, nias tus Pause yuam. Lub kaw lus lub zog yuav qhib, nrog qhov txuas mus rau Tus Thawj Tswj Ntaus ntawm sab laug.

Nrhiav thiab qhib ntu Ports (COM thiab LPT) hauv tus thawj tswj hwm. Yog tias tus neeg tsav tsheb tau nruab thiab ua haujlwm kom raug, yuav tsum tsis txhob muaj cov cim overlay icon xws li cov lus nug lossis qauv kos rau ntawm lub cim Arduino ntaus cim. Yog tias muaj cov cim xws li, tom qab ntawd muaj teeb meem nrog tus tsav tsheb. Yog tias Arduino lossis USB-Serial lub twj tso tawm tsis muaj txhua yam hauv ntu no tus thawj tswj, yog li tus tsav tsheb tsis txuas los. Hauv qee kis, tus neeg tsav tsheb yuav tsum raug ntsia (lossis nruab).

Hauv tus thawj tswj ntaus ntawv, xaiv peb pawg thawj coj saib Arduino (lossis lub cuab yeej tsis paub uas tshwm thaum lub rooj tswj hwm Arduino txuas nrog lub khoos phis tawm), nyem rau nws thiab xaiv hloov dua tshiab tsav tsheb … los ntawm cov ntawv qhia zaub mov.

Xaiv Tshawb hauv lub khoos phis tawm no thiab sau qhia txoj hauv kev rau cov ntawv qhia nrog tus tsav tsheb rau lub rooj tsav xwm. Tom ntej no, ua raws cov lus qhia ntawm Tshiab Hardware Wizard.

Rau thawj cov laug cam ntawm tsev neeg "Arduino", cov tsav tsheb muaj nyob rau hauv qhov chaw tsim kho, hauv cov chaw tsav tsheb. Rau "Arduino" -compatible boards, saib tus tsav tsheb hauv Is Taws Nem.

Li qub xeev ntawm Arduino nyob rau hauv lub Windows ntaus thawj
Li qub xeev ntawm Arduino nyob rau hauv lub Windows ntaus thawj

Kauj ruam 3

Cia peb kuaj xyuas tias peb tau ua tiav lawm COM chaw nres nkoj hauv Arduino IDE. Koj tuaj yeem tshawb xyuas qhov chaw nres nkoj twg tau muab los ntawm cov kab ke rau peb pawg thawj coj saib Arduino hauv Windows Device Manager. Arduino boards yog nyob rau hauv tshooj Ports (COM thiab LPT) thiab feem ntau pom tias yog "Arduino" lossis "USB-Serial" cov khoom siv.

Mus rau Cov Cuab Yeej -> Chaw nres nkoj ntawv qhia zaub mov thiab paub tseeb tias qhov chaw nres nkoj kom raug. Yog tias tsis yog, taw qhia qhov xav tau.

Xaiv COM chaw nres nkoj hauv Arduino qhov chaw loj hlob
Xaiv COM chaw nres nkoj hauv Arduino qhov chaw loj hlob

Kauj ruam 4

Yog hais tias Arduino board nyob ntawm qhov chaw conductive, muaj qhov pheej hmoo tias qhov luv luv ntawm qhov chaw. Qhov no tuaj yeem ua rau muaj qhov ua yuam kev ntawm kev ua haujlwm ntawm pawg thawj coj saib xyuas thiab tshwj xeeb, cuam tshuam nrog cov txheej txheem kev ua haujlwm tsis tseem ceeb. Kuaj xyuas tias lub rooj tsavxwm yog nyob rau ntawm qhov chaw thaiv.

Tsis tas li ntawd, rau tib qho laj thawj, Kuv xav tias qhov kev sib txuas ntawm cov xaim tsis raug tso cai rau pins 0 thiab 1 ntawm Arduino board, uas yog RX thiab TX chaw nres nkoj thiab tau siv hauv cov txheej txheem ntawm kev thauj cov duab kos rau hauv board lub cim xeeb.

Kauj ruam 5

Yog tias tsis muaj ib qho ntawm cov saum toj no pab, cia peb sim lwm txoj kev xaiv: thim tus thawj tsav lub bootloader.

Lub bootloader yog qhov kev tswj hwm tshwj xeeb rau Arduino, uas yog tua thaum lub cuab yeej tau qhib thiab uas tau teeb tsa kev ua haujlwm ntawm pawg tswj hwm: ib qho twg nws mus rau kev tua lub luag haujlwm los ntawm Arduino nco, lossis mus rau lub txheej txheem ntawm lub koos pij tawj. Cov.

Txhawm rau siv cov kev xaiv no, peb xav tau ib tus programmer. Daim duab kos rau kev txuas cov programmer rau Arduino yog qhia hauv daim duab.

Tom qab txuas tus programmer hauv "Arduino" programming ib puag ncig, hauv Cov Cuab Yeej -> Programmer zaub mov, qhia hom ntawm peb tus programmer. Piv txwv li USBasp. Tam sim no, hauv tib qho Cuab yeej Qhia ntawv, xaiv cov khoom siv ntawm Burn Loader. Txoj kev no tsis siv sijhawm ntev.

Yog tias kev khiav haujlwm tau zoo, IDE yuav tshaj tawm nws. Thiab Arduino board yuav ntsais zoo siab nrog LED rau ntawm tus xov tooj 13th tus pin. Ntxiv nrog rau lub bootloader, nws muaj lub neej ntawd sketch - daim duab ntawm blinking LED Blink.

Yog tias, tom qab txhua txoj kev ua tiav, cov tswj hwm tsis tuaj yeem mus rau lub neej, tej zaum koj tau hlawv lub microcircuit tas li. Kuv tej kev tu siab.

Pom zoo: