Cov txheej txheem:

Yuav Ua Li Cas Hlawv ATTiny85 Siv Arduino-Mega Raws li ISP: 5 Kauj Ruam
Yuav Ua Li Cas Hlawv ATTiny85 Siv Arduino-Mega Raws li ISP: 5 Kauj Ruam

Video: Yuav Ua Li Cas Hlawv ATTiny85 Siv Arduino-Mega Raws li ISP: 5 Kauj Ruam

Video: Yuav Ua Li Cas Hlawv ATTiny85 Siv Arduino-Mega Raws li ISP: 5 Kauj Ruam
Video: 2.5.3 Неопределенные местоимения – Qhia ntawv Askiv Hais uas lus Hmoob 2024, Kaum ib hlis
Anonim
Yuav Ua Li Cas Hlawv ATTiny85 Siv Arduino-Mega Raws Li ISP
Yuav Ua Li Cas Hlawv ATTiny85 Siv Arduino-Mega Raws Li ISP

Cov koom nrog - Sayan Wadadar, Chiranjib Kundu

Programming ATTiny85 siv Arduino MEGA2560 ua ISP.

Ob peb hlis dhau los, Kuv tau sim txo kuv txoj haujlwm Arduino siv kuv Attiny 85 ic. Nws yog thawj zaug kuv tau sim Program 20u ATTiny 85 siv kuv li Arduino Mega. Kuv tau ntsib qee qhov teeb meem los ua li ntawd. Kuv tshawb hauv is taws nem tab sis tsis muaj ib txoj haujlwm uas piav qhia meej txog txoj hauv kev los ua li ntawd. Txhua txoj hauv kev tau piav qhia siv Arduino Uno li ISP tab sis tsis tau piav qhia siv Arduino Mega li ISP li cas. Muaj qhov hloov pauv me me ntawm cov cai hauv "ArduinoISP" kos duab thaum peb siv Arduino Mega ua ISP.

Kauj ruam 1:

Duab
Duab

Txheej txheem: Thaum xub thawj, tau txais ATTiny 85 kev txhawb nqa ntawm Arduino IDE. Txhawm rau ua qhov no, koj yuav tsum mus rau ntu

1. File -> Nyiam

2. Tam sim no Nyem rau ntawm "Tus Thawj Saib Xyuas Ntxiv URLs"

3. Thiab muab qhov Txuas Txuas rau Lub Thawv: https://raw.githubusercontent.com/damellis/attiny/ide-1.6.x-boards-manager/package_damellis_attiny_index.json 4. Thaum ntawd nias OK.

5. Tam sim no kaw Arduino IDE.

6. Tom qab ntawd pib dua IDE.

Kauj ruam 2:

Duab
Duab
Duab
Duab

7. Ntau qhov nkag mus: Cov cuab yeej -> Pawg Thawj Coj -> Tus Thawj Saib Xyuas Haujlwm 8. Tam sim no tshawb fawb rau: attiny

9. Rub tawm thiab teeb tsa: "attiny los ntawm Davis A. Mellis"

10. Tom ntej txuas koj Arduino rau lub khoos phis tawj thiab tom qab ntawd Xaiv Arduino Mega Board thiab tseem xaiv qhov chaw nres nkoj raug.

Kauj ruam 3:

Duab
Duab

11. Tam sim no tau txais: Cov Ntaub Ntawv -> Piv txwv -> ArduinoISP

12. Qhib qhov piv txwv ntawd.

13. Hloov raws li pom hauv daim duab saum toj no (tseem muab hauv qab no):

#define RESET 53

#define PIN_MOSI 51

#define PIN_MISO 50

#define PIN_SCK 52

14. Upload: ArduinoISP.ino

Kauj ruam 4:

Duab
Duab
Duab
Duab

12. Tam sim no txuas koj tus pin raws li tau piav qhia hauv qab no: Mega Pin 51 ATtiny Pin 5 (MOSI)

Mega Pin 50 ATtiny Pin 6 (MISO)

Mega Pin 52 ATtiny Pin 7 (SCK)

ATtiny pin 4 GND (Pin pin)

ATtiny Pin 8 rau VCC (5V)

Mega Pin 53 ATtiny Pin 1 (SS)

** txuas lub capacitor ntawm 10uf ntawm av thiab RESET mus rau Arduino Mega.

Kauj ruam 5:

Duab
Duab
Duab
Duab
Duab
Duab
Duab
Duab

13. Txhawm rau upload Blink Led sketch rau attiny siv atmega:

goto: File -> Piv txwv -> Basic -> Blink.ino

14. Tom ntej no koj yuav tsum hloov pauv mus rau hauv daim duab kos rau tus pin coj 13 mus rau 1, vim tias ATtiny 85 tsuas muaj 8 tus pin yog li koj yuav tsum hloov tus pin tso tawm.

15. After uas tau txais: Cov cuab yeej Board ATtiny25/45/85

16. Thiab xaiv: Cov Txheej Txheem Txheej Txheem ATtiny85

17. Set moos: Cov cuab yeej moos Sab hauv 8Mhz

18. Tam sim no mus: Cov Cuab Yeej Programmer Arduino ua ISP

19. Ntawm no koj yuav tsum tau mus: Cov Cuab Yeej Burn Bootloader

20. Ua tiav upload Sketch.:)

…… Ua Tsaug, Muaj Ib Hnub Zoo ……

Pom zoo: