Upload Failed? Can't connect over USB?


#1

I recently purchased a “Ultimate Robot Kit” with ME Orion. I downloaded all the necessary software… and plugged the orion into my macbook pro’s USB port. Tried to “connect” in the Mblock software, annnnd nothing happens.

So i tried plugging in the bluetooth module and attempting to connect this way. My macbook pro finds the bluetooth module and pairs OK. I’m able to “Connect” in Mblock and get a green light next to the items.

Now I tried to update the firmware… it sits at 0% for around a minute and then gives me a message “UPLOAD FAILED”. I also tried uploading a simple program with the same result.

Can someone help me? I’m lost here and i’d love to figure this out.


#2

Hi,

For a starter, connect your bot with USB.

Forget about mBlock software and use the arduino IDE directly! Install the latest makeblock library (V 3.22) and upload a simple example sketch, they are provided with the library. For all this you find lots of posts with all details here. The key to understanding the system is to read through loads of forum posts here. Just use the search function to find them. The makeblock library comes with a README file. read it, you will have to amend the example sketches, according to your board type. When trying to upload something from aeduino IDE to the bot ypu need to disconnect the Bluetooth sensor, if mounted. Otherwise you will receive an error.

I recommend to mount the ultrasound sensor on your bot and try to receive distance measures. When this works you know your system is ok. From there you can go further. When you have more specific questions you will find a lot of helping people here in the community.

Cheers, Stefan


#3

Hello

I am having some issues with my orion board any suggestions and its the same as the other person you were helping with here is the error files.

From Sean Siebeneck please help any ideas would be most helpful

This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
Arduino: 1.0.6 (Windows NT (unknown)), Board: "Arduino Uno"
In file included from sketch_apr10a.ino:1:
C:\Program Files\Arduino\libraries\Makeblock\src/Me4Button.h:1: error: stray ‘\357’ in program
C:\Program Files\Arduino\libraries\Makeblock\src/Me4Button.h:1: error: stray ‘\273’ in program
C:\Program Files\Arduino\libraries\Makeblock\src/Me4Button.h:1: error: stray ‘\277’ in program
In file included from C:\Program Files\Arduino\libraries\Makeblock\src/MeConfig.h:94,
from C:\Program Files\Arduino\libraries\Makeblock\src/Me4Button.h:47,
from sketch_apr10a.ino:1:
C:\Program Files\Arduino\libraries\Makeblock\src/utility/Servo.h:69:2: error: #error "This library only supports boards with an AVR, SAM or SAMD processor."
In file included from C:\Program Files\Arduino\libraries\Makeblock\src/MeAuriga.h:43,
from sketch_apr10a.ino:3:
C:\Program Files\Arduino\libraries\Makeblock\src/Me4Button.h:1: error: stray ‘\357’ in program
C:\Program Files\Arduino\libraries\Makeblock\src/Me4Button.h:1: error: stray ‘\273’ in program
C:\Program Files\Arduino\libraries\Makeblock\src/Me4Button.h:1: error: stray ‘\277’ in program
In file included from C:\Program Files\Arduino\libraries\Makeblock\src/MeBaseBoard.h:43,
from sketch_apr10a.ino:4:
C:\Program Files\Arduino\libraries\Makeblock\src/Me4Button.h:1: error: stray ‘\357’ in program
C:\Program Files\Arduino\libraries\Makeblock\src/Me4Button.h:1: error: stray ‘\273’ in program
C:\Program Files\Arduino\libraries\Makeblock\src/Me4Button.h:1: error: stray ‘\277’ in program
In file included from C:\Program Files\Arduino\libraries\Makeblock\src/MeMCore.h:44,
from sketch_apr10a.ino:28:
C:\Program Files\Arduino\libraries\Makeblock\src/Me4Button.h:1: error: stray ‘\357’ in program
C:\Program Files\Arduino\libraries\Makeblock\src/Me4Button.h:1: error: stray ‘\273’ in program
C:\Program Files\Arduino\libraries\Makeblock\src/Me4Button.h:1: error: stray ‘\277’ in program
In file included from C:\Program Files\Arduino\libraries\Makeblock\src/MeMegaPi.h:43,
from sketch_apr10a.ino:29:
C:\Program Files\Arduino\libraries\Makeblock\src/Me4Button.h:1: error: stray ‘\357’ in program
C:\Program Files\Arduino\libraries\Makeblock\src/Me4Button.h:1: error: stray ‘\273’ in program
C:\Program Files\Arduino\libraries\Makeblock\src/Me4Button.h:1: error: stray ‘\277’ in program
In file included from C:\Program Files\Arduino\libraries\Makeblock\src/MeOrion.h:43,
from sketch_apr10a.ino:33:
C:\Program Files\Arduino\libraries\Makeblock\src/Me4Button.h:1: error: stray ‘\357’ in program
C:\Program Files\Arduino\libraries\Makeblock\src/Me4Button.h:1: error: stray ‘\273’ in program
C:\Program Files\Arduino\libraries\Makeblock\src/Me4Button.h:1: error: stray ‘\277’ in program
In file included from C:\Program Files\Arduino\libraries\Makeblock\src/MeShield.h:43,
from sketch_apr10a.ino:39:
C:\Program Files\Arduino\libraries\Makeblock\src/Me4Button.h:1: error: stray ‘\357’ in program
C:\Program Files\Arduino\libraries\Makeblock\src/Me4Button.h:1: error: stray ‘\273’ in program
C:\Program Files\Arduino\libraries\Makeblock\src/Me4Button.h:1: error: stray ‘\277’ in program
In file included from sketch_apr10a.ino:3:
C:\Program Files\Arduino\libraries\Makeblock\src/MeAuriga.h:77: error: ‘A10’ was not declared in this scope
C:\Program Files\Arduino\libraries\Makeblock\src/MeAuriga.h:77: error: ‘A15’ was not declared in this scope
C:\Program Files\Arduino\libraries\Makeblock\src/MeAuriga.h:77: error: ‘A9’ was not declared in this scope
C:\Program Files\Arduino\libraries\Makeblock\src/MeAuriga.h:77: error: ‘A14’ was not declared in this scope
C:\Program Files\Arduino\libraries\Makeblock\src/MeAuriga.h:77: error: ‘A8’ was not declared in this scope
C:\Program Files\Arduino\libraries\Makeblock\src/MeAuriga.h:77: error: ‘A13’ was not declared in this scope
C:\Program Files\Arduino\libraries\Makeblock\src/MeAuriga.h:77: error: ‘A12’ was not declared in this scope
C:\Program Files\Arduino\libraries\Makeblock\src/MeAuriga.h:79: error: ‘A11’ was not declared in this scope
In file included from sketch_apr10a.ino:4:
C:\Program Files\Arduino\libraries\Makeblock\src/MeBaseBoard.h:71: error: redefinition of 'MePort_Sig mePort [15]'
C:\Program Files\Arduino\libraries\Makeblock\src/MeAuriga.h:74: error: ‘MePort_Sig mePort [15]’ previously defined here
C:\Program Files\Arduino\libraries\Makeblock\src/MeBaseBoard.h:73: error: ‘A8’ was not declared in this scope
C:\Program Files\Arduino\libraries\Makeblock\src/MeBaseBoard.h:73: error: ‘A11’ was not declared in this scope
C:\Program Files\Arduino\libraries\Makeblock\src/MeBaseBoard.h:73: error: ‘A10’ was not declared in this scope
C:\Program Files\Arduino\libraries\Makeblock\src/MeBaseBoard.h:73: error: ‘A9’ was not declared in this scope
In file included from sketch_apr10a.ino:28:
C:\Program Files\Arduino\libraries\Makeblock\src/MeMCore.h:73: error: redefinition of 'MePort_Sig mePort [15]'
C:\Program Files\Arduino\libraries\Makeblock\src/MeAuriga.h:74: error: ‘MePort_Sig mePort [15]’ previously defined here
In file included from sketch_apr10a.ino:29:
C:\Program Files\Arduino\libraries\Makeblock\src/MeMegaPi.h:84: error: redefinition of 'MePort_Sig mePort [15]'
C:\Program Files\Arduino\libraries\Makeblock\src/MeAuriga.h:74: error: ‘MePort_Sig mePort [15]’ previously defined here
C:\Program Files\Arduino\libraries\Makeblock\src/MeMegaPi.h:87: error: ‘A8’ was not declared in this scope
C:\Program Files\Arduino\libraries\Makeblock\src/MeMegaPi.h:87: error: ‘A9’ was not declared in this scope
C:\Program Files\Arduino\libraries\Makeblock\src/MeMegaPi.h:87: error: ‘A10’ was not declared in this scope
C:\Program Files\Arduino\libraries\Makeblock\src/MeMegaPi.h:87: error: ‘A11’ was not declared in this scope
C:\Program Files\Arduino\libraries\Makeblock\src/MeMegaPi.h:87: error: ‘A13’ was not declared in this scope
C:\Program Files\Arduino\libraries\Makeblock\src/MeMegaPi.h:87: error: ‘A12’ was not declared in this scope
C:\Program Files\Arduino\libraries\Makeblock\src/MeMegaPi.h:91: error: redefinition of 'Encoder_port_type encoder_Port [6]'
C:\Program Files\Arduino\libraries\Makeblock\src/MeAuriga.h:82: error: ‘Encoder_port_type encoder_Port [6]’ previously defined here
In file included from sketch_apr10a.ino:33:
C:\Program Files\Arduino\libraries\Makeblock\src/MeOrion.h:72: error: redefinition of 'MePort_Sig mePort [15]'
C:\Program Files\Arduino\libraries\Makeblock\src/MeAuriga.h:74: error: ‘MePort_Sig mePort [15]’ previously defined here
In file included from sketch_apr10a.ino:39:
C:\Program Files\Arduino\libraries\Makeblock\src/MeShield.h:72: error: redefinition of 'MePort_Sig mePort [15]'
C:\Program Files\Arduino\libraries\Makeblock\src/MeAuriga.h:74: error: ‘MePort_Sig mePort [15]’ previously defined here


#4

Hi Sean,

please perform the following steps:

  1. upgrade your Arduino IDE to at least Version 3.6.8.
  2. make sure you use this library (V3.2.2)
  3. read the readme file which comes with the library. It tells you something about how to modify your sketch in order to match the board you use.

When all this is done, try to load a simple example sketch from the makeblock examples. I always recommend the ultrasonic sensor example. Of course, you need to attach the ultrasonic sensor to your board to use this example.

When done, please report the result of the test. Then we will see further.

Cheers, Stefan


#5