ความรู้แน่น ฟรีสำหรับชุมชน ArduinoAll ที่นี่เท่านั้น

ฟรีและดีที่สุด คอร์สอบรม Arduino + NodeMCU
ทำเพื่อแบ่งปัน ห้ามนำไปจำหน่าย หรือเก็บเงินค่าเรียน
  !!!


  


AllNewStep รับประกันคุณภาพทุกชิ้น วันจันทร์-ศุกร์แจ้งชำระสินค้าก่อน 14.00 จัดส่งทันทีวันนี้ค่ะ

กรุงเทพ /ภาคกลาง ได้พรุ่งนี้


*** สินค้าทุกชิ้น ถ้าสามารถทำรายการสั่งซื้อได้ แสดงว่ามีครบทุกรายการค่ะ *** 

พิมพ์ค้นหาบทความ หัวข้อกระทู้ และสินค้าในเว็บ AllNewStep ได้ที่นี่
QUOTE 

มีปัญหา Mega 2560 + Attiny85 ครับ

Pick

ผมใช้บอร์ด 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

 

ขอบคุณครับ

QUOTE 
ความคิดเห็นที่ #1
Pick

ผมต่อวงจรตามมนี้ครับ

http://forum.arduino.cc/index.php?PHPSESSID=2pucd3a892afh2p9tm9ijia8o5&topic=99794.msg750816#msg750816

QUOTE 
ความคิดเห็นที่ #2
เจ้าของร้าน

ครับ ผมชวย ขอเช็คลิสเป็นแนวทางตามนี้ครับ

1. ขาของวงจรต่อถูกแล้วใช่มั้ยครับ
2. arduino mega ขาต่อตามเว็บที่ให้มาได้เลยครับ
3.อัพโปรแกรม arduino as isp ลง arduino mega แล้ว
4. เลื่อก programmer เป็น Arduino as ISP
5. เวลาอัพโหลดกด upload using programmer

ผมลองต่อให้ดูแล้วครับ ทำเหมือน arduino uno ทุกอย่าง ต่างแค่ต่อวงจรครับ ผมดูจาก error น่าจะยังไม่ได้ทำข้อ 3 ครับ

 

ได้ผลยังไงแจ้งด้วยนะครับ  Smile

 

 

QUOTE 
ความคิดเห็นที่ #3
Pick

ผมทำแบบนี้ถูกมั๊ยครับ

เลือกบอร์ด 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

QUOTE 
ความคิดเห็นที่ #4
เจ้าของร้าน

เมื่อต่อวงจร เลือกบอร์ดเรียบร้อยแล้ว ลองกด burn bootloader 1 ทีครับ

ลองดูตามคลิปนี้ ได้ผลยังไงแจ้งด้วยนะครับ

ปล.  ardino IDE ผมใช้เวอร์ชัน 1.0.5 ครับ

https://www.youtube.com/watch?v=AiZnntkXyag

แสดงความคิดเห็นที่ 1-4 จากทั้งหมด 4 ความคิดเห็น
ขาย ARDUINO
คุณภาพ อันดับ 1

ได้รับรางวัลร้านยอดเยี่ยม
ตั้งแต่ปี 2558
ขาย Arduino
วีดีโอสอน Arduino

สอน esp8266

สอน Arduino IoT
สอน Arduino แบบเร็ว

สอน NodeMCU

อุปกรณ์ Arduino

MEMBER ZONE

พูดคุย-สอบถาม