Cov txheej txheem:

ATtiny Programmer rau Arduino Uno: 3 Cov Kauj Ruam
ATtiny Programmer rau Arduino Uno: 3 Cov Kauj Ruam

Video: ATtiny Programmer rau Arduino Uno: 3 Cov Kauj Ruam

Video: ATtiny Programmer rau Arduino Uno: 3 Cov Kauj Ruam
Video: ATtiny85 arduino прошивка и подключение 2024, Hlis ntuj nqeg
Anonim
ATtiny Programmer rau Arduino Uno
ATtiny Programmer rau Arduino Uno

Yog tias koj tau dhau los ua kev ntseeg siab nrog Arduino platform thiab xav sim ua haujlwm lwm qhov atmel microcontrollers, phau ntawv qhia no yuav pab koj ua koj thawj kauj ruam. Tshwj xeeb koj yuav ua daim thaiv rau Arduino Uno cov laug cam sib xws txhawm rau ua haujlwm ntau yam ATtiny microcontrollers (2313/4313 25/45/85 thiab tej zaum qee qhov lwm tus).

Khoom siv

Rau qhov haujlwm yooj yim no koj yuav xav tau:

-perfboard (ib lossis ob tog yam tsawg kawg 20x10 dots)

-3x5mm LEDs

-3x 220-330 Ohm resistors

-20 tus pin qhov (socket)

-12 txiv neej tus pin headers (tsawg kawg)

-1 x jumper

-qee cov jumper xov hlau

Thiab ntawm chav kawm ATtiny microcontroller los ua haujlwm nrog (hauv kuv cov ntaub ntawv nws yog 2313)

Kauj ruam 1: Kev thaiv kab

Thaiv
Thaiv
Thaiv
Thaiv
Thaiv
Thaiv

Kuv tsis siv los ua cov lus qhia ib qib zuj zus, yog li kuv tsuas yog txuas qhov kawg thiab qee qhov thaiv. Thov nco ntsoov tias qhov sib txawv ntawm cov LEDs tsis tau hwm ntawm Fritzing pic yog li ceev faj!

Yog tias koj tau txiav txim siab siv ib leeg ib sab perfboard ces koj yuav tsum nias tus txiv neej tus pin lub taub hau nrog qee lub pliers txhawm rau ua tus pin ntev dua thiab muab lawv tso rau tom qab.

Lub jumper xav tau hloov GND tus pin (nyob ntawm seb microcontroller koj siv dab tsi) txawm tias kuv muaj peev xwm rub cov duab kos ntawm ATtiny 2313 txawm tias tsis muaj GND txhua …

LED ntsuab yog ib txwm ON thiab yog nyob ntawm yeem.

Kauj ruam 2: Teeb Software

Teeb Software
Teeb Software
Teeb Software
Teeb Software

Tam sim no koj yuav tsum xa cov arduino isp mus rau pawg thawj coj saib arduino. Mus rau Cov Ntaub Ntawv -> Piv txwv -> ArduinoISP.

Ua ntej xa koj tuaj yeem hloov tus cwj pwm ntawm LEDs los ntawm kev muab tus pin 8 thiab 9, tus pin 7 yuav TSIS siv. PMODE (hauv kuv cov ntaub ntawv xiav) yog ib qho uas ntsais muag thaum koj rub tawm daim duab. ERR yuav taws teeb thaum muaj qhov yuam kev tshwm sim. Kuv tau sim sim qhov yuam kev tab sis nws tsis tau teeb tsa … HB sawv rau HeartBeat thiab yuav hloov pauv thiab tawm mus tas li. Tsis muaj txiaj ntsig zoo rau kuv tab sis koj tuaj yeem muab nws hloov ntawm ERR LED.

Kauj Ruam 3: Tshaj Tawm Koj Daim Duab

Uploading Koj Sketch
Uploading Koj Sketch
Uploading Koj Sketch
Uploading Koj Sketch
Uploading Koj Sketch
Uploading Koj Sketch

Tam sim no koj tau npaj txhij xa koj daim duab. Nco ntsoov tias koj tau teeb tsa koj lub rooj tshwj xeeb (microcontroller) thiab tom qab ntawd mus rau Cov Cuab Yeej -> Programmer -> Arduino ua ISP.

Nco ntsoov tias cov koob digital tau muab rau hauv koj daim duab kos sib xws nrog cov ntawm koj lub microcontroller.

Tam sim no koj tau npaj los upload koj daim duab!

Pom zoo: