Problem uploading Arduino code to mBot


#1

Hello! I have been having issues uploading code from my computer to my mBot. I have the Arduino drivers installed and all that but once I click “Edit with Arduino IDE” I always get a “problem uploading to board” error. I have been able to upload code in the past and I fixed this issue myself a couple of weeks ago but I can’t remember how! Also, I made sure that the correct board and port are selected. Perhaps I am uploading my saved .ino files incorrectly? I usually just go into Arduino mode and then click “Edit with Arduino IDE” and paste my code in there and try to upload. Any help would be appreciated!!!


#2

Hi Pot8er,

Is there the same upload error when you upload to Arduino base on mBlock software?
Please temporarily remove the Bluetooth /2.4G wireless serial from the mBot while you uploading the program have a check.
If still the error, you may paste the details error message.


#3

Before I uploaded I shut the bot off and then turned it back on and it worked fine. I am only experiencing this error on computers running Windows 10.


#4

i can upload a file to the Mbot, and it will peform that specific function, but i am losing all of the other functionality, The remote wont control it, and it seems to loose the whole

#include Arduino.h
#include Wire.h
#include SoftwareSerial.h
#include MeMCore.h

part of the code.
what am i doing wrong? Where are those library’s in the arduino file structure?
I am running a Mac arduino 1.6.9 macblock 3.4.0

thanks!


#5

Hi 3ALARM,

Uploading a new program to mBot will clear the previous program on mBot. So the mBot will only perform the specific function of the simple program.
If you want the mBot function as the default way, you can reset default program for it.23.How to reset default program manually.docx.zip (678.0 KB)


#6