Compiling and uploading firmware mBot Ranger with Arduino


#1

Hi All!

I am new to mBot Ranger, and I was trying to run my first ‘test code’ with Arduino.
I have the following setup:

  • Arduino 1.8.13
  • MakeBlock libraries downloaded from https://github.com/Makeblock-official/Makeblock-Libraries and installed in the proper directory (in fact I can find File -> Examples -> MakeBlockDrive entry within the menu)
  • Hardware Makeblock Me Auriga V1.3
  • Win 10 with USB cable connection the the Auriga V1.3 board
  • No battery connected to the Auriga V1.3 board

I have opened the ColorLoopTestAuriga sketch file, it compiles with no issue for the board “Arudino Mega or Mega 2560” and processor “ATMega2560 (Mega2560)”

My enviroment shows only “COM3” and “COM4”, I have tried to “Upload” (CTRL+U) the sketch on either port but it fails to upload after some minutes.

Any clues?

P.S.: I have read the wonderfull “Makeblock mBot Ranger Arduino Coding Reference” from Murray Elliot (https://docs.google.com/document/d/1EpMWJo9pP2J_pstzXA-XHK8t00Z70SCZYwZ_Kl7VLuw/edit#) but it didn’t help


#2

I have just figured out the issue, I had to install mBlock IDE, which installed a Serail Port driver. The driver created COM5 which is the on to use with Arudino IDE too. In fact, I could flash my mBot Ranger with the ColorLoopTestAuriga and I could see the LED “looping” :smile:

So, for mBot Ranger, in order to compile, build, and flash the board you have:
1 - Install Aurdino IDE from arduino.cc website (I am using 1.8.13)
2 - Install the Makeblock official libraries from GitHub inside the Arduino IDE (see https://github.com/Makeblock-official/Makeblock-Libraries v.3.27)
3 - Install the mBlock (I am using 5.3.0) IDE from Makeblock website, which it will install an extra serial port. That serial port is the one to use within Arudino IDE too

Enjoy programming :slight_smile:

P.S.: If you can’t find the menu entry File -> Examples -> MakeBlockDrive it means that you miss or failed to perform the step 2


#3

Nice work @stefanolenzi.

I started writing the guide long after it was all set up and working on my OS X laptop so I may have missed some key steps in the documents for Windows platforms. Thanks for the suggested document updates.

Enjoy the rest of your journey with the Ranger


#4

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.