MBot keeps running when I switch it on


#1

I seem to be in a bit of a sickle.
I uploaded some code (through Arduino on Mblock) and whenever I turn on my robot, it keeps “following” the code. Is there a way to restore my mbot to the factory settings? Also, I keep getting an error saying “please connect to Serial Port” even though i’ve installed all the drivers.

I’m using a Macbook Air 13" on OSX Yosemite.

Any help would be appreciated :slight_smile:

Regards
Manas


#2

Try upgrading the firmware trough mblock or resetting the default program
mBlock>connect>Upgrade Firmware or Reset Default Program


#3

Usually resetting the default program does the trick for me. :slightly_smiling:


#4

The option to upgrade the firmware/ resetting the default program is coloured out (ie. I can’t select it). Please help :slightly_smiling:


#5

I tried reinstalling the drivers and then I thought that resetting it may work. If I reset only the mblock app, will my robot reset as well?


#6

Make sure you are connected to the right COM port assigned to your mBot and that you have mBot selected in the Boards menu


#7

On Yosemite, I used the kernel dev hack mentioned in the post I linked to. This will not work for El Capitan and you will have to download and the El Capitan driver in that same post. I do not know whether or not that driver works with Yosemite, but it is a signed driver that is more current than the one on the Makeblock repo on Github.

My reset sequence is:

  1. Connect via the USB cable to the correct serial port.
  2. Upgrade the firmware.
  3. Reset Default Program

This process has always worked for resetting the mBot for me. You should hear the three tone startup sequence after the default program has been reset.

If you are getting prompted to connect the serial port, you need to connect the USB cable and select the correct serial port. If you are using WiFi or Bluetooth, you will need to disconnect from them first.

If the upgrade or program reset is not completing the upload, you may need to contact support@makeblock.cc with the issue.

If an error occurs during compilation during either the Upgrade Firmware or Reset Default Program operation, you need to contact support@makeblock.cc to get the issue resolved.

I’m not sure what else might be the issue.


#8

Dear mmohandass,
One time I had the same problem, and simply connecting via USB, upgrading firmware, and reseting default program (which is my usual routine) would not work, because the mBot simply refused to connect to mBlock.

What did work, ultimately, was to start up Arduino IDE and connect to the mBot (instead of connecting mBlock to the mBot), and then load the firmware into Arduino IDE, and upload from ARduino IDE to the mBot.

Also, I’m not sure, but it seems that connecting and uploading works more reliably if your bluetooth module is not plugged in to your mBot.
Good luck,
SIvan


#9

How did you get the Arduino IDE? I’m a bit stuck on trying to start up the Arduino IDE…


#10

From Makeblock, click “edit/Arduino Mode”. The ARduino panel will open on the right, and you click on the “Edit with Arduino IDE” button.

To find where the firmwhare is located, so you can load it into Arduino IDE, click “Connect/View Source” in Makeblock, which will open up the folder containing mbot_firmware.ino.

In Arduino IDE, open that file then upload to your mbot.
I hope it works!
SK


#11

I got a message saying “problem uploading to board.” I don’t know what else to do


#12

It sound like you either have not installed the Arduino driver (try re-installing) or you selecting the wrong serial port. A frequent cause of this is having conflicting serial drivers. This post has a discussion of all of the issues around the OS X serial driver, and in one of my posts towards the bottom I link to the usb-serial-mac site that has instructions for uninstalling any other USB serial drivers that might be causing a conflict.

In short, make sure you have removed any other 3rd party USB drivers (Prolific, et al.) or you will have a driver conflict.

Hope this helps!


#13