Linux Mint Türkiye

Yazılım => Yazılım Genel => Konuyu başlatan: abdyek - 16 Mart 2017, 22:04:45

Başlık: Arduino Programlama Sorunu
Gönderen: abdyek - 16 Mart 2017, 22:04:45
Arduino'yu sitesinden indirdim. Ve içerisindeki install.sh 'ı alıştırarak kurdum.
Ardından


Kod: [Seç]
dmesg | grep "tty"

ve ardından



Kod: [Seç]
sudo chmod a+rw /dev/ttyUSB0
 
[/size]
port a izin verdim.

Programa girip yükleme işi yapınca hata veriyor. Yazılım kısmında hata yaptığımı düşünmüyorum. Aynı işlemleri Windows 10 tarafında denedim sorunsuz çalıştı.
Hata şu şekilde:



Arduino: 1.8.1 (Linux), Board: "Arduino/Genuino Uno"


Sketch uses 928 bytes (2%) of program storage space. Maximum is 32256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
Problem uploading to board.  See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.


This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Başlık: Ynt: Arduino Programlama Sorunu
Gönderen: Butterfly - 17 Mart 2017, 10:45:44
Aşağıdaki komutları çalıştırmayı denediniz mi? Sonrasında sistemi yeniden başlatınız.

Kod: [Seç]
sudo usermod -a -G tty $USER
sudo usermod -a -G dialout $USER

https://www.arduino.cc/en/Guide/Troubleshooting#upload
Başlık: Ynt: Arduino Programlama Sorunu
Gönderen: abdyek - 17 Mart 2017, 12:03:04
Aşağıdaki komutları çalıştırmayı denediniz mi? Sonrasında sistemi yeniden başlatınız.

Kod: [Seç]
sudo usermod -a -G tty $USER
sudo usermod -a -G dialout $USER

https://www.arduino.cc/en/Guide/Troubleshooting#upload (https://www.arduino.cc/en/Guide/Troubleshooting#upload)


Bu iki kodu girdim ardından sistemi yeniden başlattım. Yine de sorun çözülmedi Aynı hatayı veriyor.
Başlık: Ynt: Arduino Programlama Sorunu
Gönderen: Butterfly - 17 Mart 2017, 12:38:34
Çıktıya bakalım.

Kod: [Seç]
dmesg | grep "tty"
Başlık: Ynt: Arduino Programlama Sorunu
Gönderen: abdyek - 17 Mart 2017, 14:28:28
Çıktıya bakalım.

Kod: [Seç]
dmesg | grep "tty"


Arduino bağlı değilken:


Kod: [Seç]
[  0.000000] console [tty0] enabled
Başlık: Ynt: Arduino Programlama Sorunu
Gönderen: Butterfly - 17 Mart 2017, 14:43:41
Çıktıyı alırken aygıt takılı değildi sanırım.
Başlık: Ynt: Arduino Programlama Sorunu
Gönderen: abdyek - 17 Mart 2017, 16:22:25
Çıktıyı alırken aygıt takılı değildi sanırım.


Kod: [Seç]


abdyek[member=980]abdyek[/member]-K53SD ~ $ dmesg | grep "tty"
[    0.000000] console [tty0] enabled


#kartı taktım


abdyek[member=980]abdyek[/member]-K53SD ~ $ dmesg | grep "tty"
[    0.000000] console [tty0] enabled
[  826.091594] usb 2-1.1: ch341-uart converter now attached to ttyUSB0
Başlık: Ynt: Arduino Programlama Sorunu
Gönderen: Butterfly - 17 Mart 2017, 16:32:42
Aygıtlar => port menüsünde ttyUSB0 seçeneği görünüyor mu veya seçili mi?
Aygıtlar => kartlar bölümünden doğru aygıtın seçili olduğuna emin misiniz?
Başlık: Ynt: Arduino Programlama Sorunu
Gönderen: abdyek - 17 Mart 2017, 16:44:43
Aygıtlar => port menüsünde ttyUSB0 seçeneği görünüyor mu veya seçili mi?
Aygıtlar => kartlar bölümünden doğru aygıtın seçili olduğuna emin misiniz?


kart: arduino/genuio uno seçili


port da seçili zaten başka port seçeneği çıkmıyor
Başlık: Ynt: Arduino Programlama Sorunu
Gönderen: Butterfly - 17 Mart 2017, 17:41:07
Aygıt takılı olduğu halde aşağıdaki komutun çıktısına bakalım.

Kod: [Seç]
lsusb
Birde aşğaıdaki komutu deneyelim.

Kod: [Seç]
sudo chown $USER /dev/ttyUSB0
Şunlar bir köşede dursun.

https://ubuntuforums.org/showthread.php?t=2265244&p=13227930#post13227930
http://electronics.stackexchange.com/questions/43544/cant-get-upload-code-to-arduino-uno-from-ubuntu-12-04


Başlık: Ynt: Arduino Programlama Sorunu
Gönderen: abdyek - 17 Mart 2017, 18:31:13
Kod: [Seç]
Bus 002 Device 003: ID 046d:c52f Logitech, Inc. Unifying Receiver
Bus 002 Device 004: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 13d3:5710 IMC Networks UVC VGA Webcam
Bus 001 Device 005: ID 0cf3:3005 Atheros Communications, Inc. AR3011 Bluetooth
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub




Buyrun hocam


Kod: [Seç]
sudo chown $USER /dev/ttyUSB0 bu komut da işe yaramadı