Mundarija:

ATTiny85-ni Arduino-Mega-dan ISP sifatida qanday yoqish mumkin: 5 qadam
ATTiny85-ni Arduino-Mega-dan ISP sifatida qanday yoqish mumkin: 5 qadam

Video: ATTiny85-ni Arduino-Mega-dan ISP sifatida qanday yoqish mumkin: 5 qadam

Video: ATTiny85-ni Arduino-Mega-dan ISP sifatida qanday yoqish mumkin: 5 qadam
Video: M#1: Настройка ПЛК Outseal Mega с отладочной платой ATmega128 | Аутсил Дев. ПЛК Мега 2024, Noyabr
Anonim
Arduino-Mega-ni ISP sifatida ATTiny85-ni qanday yoqish kerak
Arduino-Mega-ni ISP sifatida ATTiny85-ni qanday yoqish kerak

Qatnashuvchilar - Sayan Vadadar, Chiranjib Kundu

ATTiny85 -ni Arduino MEGA2560 -dan ISP sifatida dasturlash.

Bir necha oy oldin, men Attiny 85 ic -dan foydalanib Arduino loyihasini qisqartirishga harakat qilardim. Men Arduino Mega -dan foydalanib 20u ATTiny 85 dasturini birinchi marta sinab ko'rdim. Buning uchun men qandaydir muammoga duch kelganman. Men Internetda qidirib topdim, lekin buning usulini aniq tasvirlab beradigan loyiha yo'q edi. Barcha usullar Arduino Uno -dan ISP sifatida tasvirlangan, ammo Arduino Mega -dan ISP sifatida qanday foydalanilishi tasvirlanmagan. Arduino Mega -ni ISP sifatida ishlatayotganimizda "ArduinoISP" eskizida kod biroz o'zgargan.

1 -qadam:

Rasm
Rasm

Jarayon: Dastlab, Arduino IDE -da ATTiny 85 -ni qo'llab -quvvatlang. Buning uchun siz saytga kirishingiz kerak

1. Fayl -> afzal

2. Endi "Qo'shimcha taxtalar menejeri URL -lari" ni bosing.

3. Qutiga berilgan havolani joylashtiring: https://raw.githubusercontent.com/damellis/attiny/ide-1.6.x-boards-manager/package_damellis_attiny_index.json 4. Keyin OK ni bosing.

5. Endi Arduino IDE -ni yoping.

6. Keyin IDE -ni qayta ishga tushiring.

2 -qadam:

Rasm
Rasm
Rasm
Rasm

7. Keyingi goto: Tool -> Board -> Board Manager 8. Endi qidiring: attiny

9. Yuklab oling va o'rnating: "attis Devis A. Mellis"

10. Keyin Arduino -ni kompyuterga ulang, so'ng Arduino Mega Board -ni tanlang va to'g'ri portni tanlang.

3 -qadam:

Rasm
Rasm

11. Endi goto: Fayl -> Misol -> ArduinoISP

12. Bu misolni oching.

13. Yuqoridagi rasmda ko'rsatilganidek o'zgartiring (quyida ham berilgan):

#RESETni aniqlang 53

#PIN_MOSI -ni aniqlang 51

#PIN_MISO 50 ni aniqlang

#PIN_SCK 52 ni belgilang

14. Yuklab olish: ArduinoISP.ino

4 -qadam:

Rasm
Rasm
Rasm
Rasm

12. Endi pinni quyida tasvirlanganidek ulang: 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 (Ground pin)

ATtiny 8 pinli VCC (5V)

Mega Pin 53 ATtiny Pin 1 (SS)

** Arduino Mega -ga Ground va RESET o'rtasidagi 10uflik kondansatkichni ulang.

5 -qadam:

Rasm
Rasm
Rasm
Rasm
Rasm
Rasm
Rasm
Rasm

13. Blme Led eskizini atmega yordamida attinaga yuklash uchun:

goto: Fayl -> Misol -> Asosiy -> Blink.ino

14. Endi siz 13 -dan 1 -gachasi pinli pinni eskizga o'zgartirishingiz kerak, chunki ATtiny 85 -da atigi 8 -pin bor, shuning uchun chiqish pinini o'zgartirish kerak.

15. Shundan so'ng: ATtiny25/45/85 asboblar paneli

16. Keyin tanlang: Asboblar protsessori ATtiny85

17. O'rnatilgan soat: asboblar soati Ichki 8 MGts

18. Endi goto: Internet -provayder sifatida Arduino Tools Programmer

19. Endi sizga kerak: Tools Burn Bootloader

20. Sketchni yuklash tugallandi.:)

…….. Rahmat, kuningiz xayrli o'tsin ….

Tavsiya: