I am having some problems uploading a sketch in my arduino. I have Arduino Uno-R3 with a board connected on top. If I try to upload the code, it gives me this error:
avrdude: Version 6.3-20190619
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\Users\35191\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"
Using Port : COM5
Using Programmer : arduino
Overriding Baud Rate : 115200
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x30
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x20
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x30
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x20
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x30
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x20
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x30
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x20
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x30
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x20
avrdude done. Thank you.
However when I remove the board on top, the upload is completed but the robot won't work. Any tips on to how to solve this problem ?
I have tried to upload the most simple example of the arduino, and it still doesn't work It is not able to upload for example Blink with the board on top.
Can you upload if you disconnect the board on top?
Are you using pins 0 and/or 1?
Is COM5 the correct port? ( does it disappear if you disconnect the board ).
No, I don't think so. I checked the voltage and it was ok. I will try with other wires, though. Do you think this problem will disappear if I upload the code via wifi?
The next thing I would try is disconnecting everything from the Braccio shield, then seeing if you can upload to the Uno+Bracchio shield combo by itself.
I'm not familiar with OTA updates of an Arduino Uno and I didn't think it was possible in the first place due to lack of native WiFi support of this board.
Does the Arduino actually run with the Braccio board attached? I.e. is everything functional apart from uploads?
Yes, I have another Arduino Uno which is Arduino Uno Wifi REV2. Yes, I think so.
After looking a bit more on the topic, I think the main issue is that I am doing the upload using a USB cable.
"On Uno, Nano, Mini, and Mega, pins 0 and 1 are used for communication with the computer. Connecting anything to these pins can interfere with that communication, including causing failed uploads to the board."
So normally, if I upload the sketch (for example testBraccio90) without the Braccio shield on top, and then I add it, the robot works as predicted. The only problem is that I am trying to communicate with Raspberry Pi, so when I add the shield, the robot stops sending information to the raspberry.
You will have to look at the schematic of the Braccio board; I could not find one for V4 (only V1) and pins 0 and 1 are not used; they are passed on to the yellow connector that I mentioned earlier.
I would probably get a multimeter out and check the board for shorts on pins 0 and 1.