ผมใช้บอร์ด Mega 2560 R3 แล้วทำตามบทความนี้
http://www.arduinoall.com/article/attiny85-%E0%B8%AA%E0%B8%AD%E0%B8%99-%E0%B8%A7%E0%B8%B4%E0%B8%98%E0%B8%B5-%E0%B9%83%E0%B8%8A%E0%B9%89%E0%B8%87%E0%B8%B2%E0%B8%99-attiny85-arduino-ic-attiny85-%E0%B8%A3%E0%B8%B2%E0%B8%84%E0%B8%B2%E0%B8%96%E0%B8%B9%E0%B8%81-%E0%B8%AD%E0%B8%B5%E0%B8%81%E0%B8%95%E0%B8%B1%E0%B8%A7%E0%B8%97%E0%B8%B5%E0%B9%88%E0%B8%99%E0%B9%88%E0%B8%B2%E0%B9%80%E0%B8%A5%E0%B9%88%E0%B8%99
Mode Programmer AVRISP mkII ขึ้น error ตอนอัปโหลด avrdude: usbdev_open(): did not find any USB device "usb"
Mode Programmer AVR ISP ขึ้น avrdude: stk500_getsync(): not in sync: resp=0x00
Mode Programmer Arduino As ISP avrdude: please define PAGEL and BS2 signals in the configuration file for part ATtiny85
avrdude: stk500_program_enable(): protocol error, expect=0x14, resp=0x50
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51
ขอบคุณครับ
ผมต่อวงจรตามมนี้ครับ
http://forum.arduino.cc/index.php?PHPSESSID=2pucd3a892afh2p9tm9ijia8o5&topic=99794.msg750816#msg750816
ครับ ผมชวย ขอเช็คลิสเป็นแนวทางตามนี้ครับ
1. ขาของวงจรต่อถูกแล้วใช่มั้ยครับ
2. arduino mega ขาต่อตามเว็บที่ให้มาได้เลยครับ
3.อัพโปรแกรม arduino as isp ลง arduino mega แล้ว
4. เลื่อก programmer เป็น Arduino as ISP
5. เวลาอัพโหลดกด upload using programmer
ผมลองต่อให้ดูแล้วครับ ทำเหมือน arduino uno ทุกอย่าง ต่างแค่ต่อวงจรครับ ผมดูจาก error น่าจะยังไม่ได้ทำข้อ 3 ครับ
ได้ผลยังไงแจ้งด้วยนะครับ
ผมทำแบบนี้ถูกมั๊ยครับ
เลือกบอร์ด Mega 2560 จากนั้นไปที่ File>Examples>ArduinoISP กด Verify แล้วกด Upload จนขึ้น Upload done
จากนั้นต่อวงจร
Attiny85 pin 5 (MOSI) to Mega pin 51
Attiny85 pin 6 (MISO) to Mega pin 50
Attiny85 pin 7 (SCK) to Mega pin 52
Attiny85 pin 1 (/RESET) to Mega pin 53
เลือกบอร์ดเป็น Attiny85(Internal 1 MHz) Programer เลือก Arduino as ISP
จากนั้นกด File>Examples>Basics>Blink
แก้โค้ดตั้ง output เป็นขา 0 กด verify ขึ้น Done compliling
จากนั้นไปที่ File>Upload Using Programmer
ขึ้นเออเรอตามนี้ครับ
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
Arduino: 1.0.6 (Windows NT (unknown)), Board: "ATtiny85 (internal 1 MHz clock)"
Binary sketch size: 834 bytes (of a 8,192 byte maximum)
avrdude: please define PAGEL and BS2 signals in the configuration file for part ATtiny85
avrdude: stk500_program_enable(): protocol error, expect=0x14, resp=0x50
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51
เมื่อต่อวงจร เลือกบอร์ดเรียบร้อยแล้ว ลองกด burn bootloader 1 ทีครับ
ลองดูตามคลิปนี้ ได้ผลยังไงแจ้งด้วยนะครับ
ปล. ardino IDE ผมใช้เวอร์ชัน 1.0.5 ครับ