Programming mBot Ranger in Arduino

About Arduino

Arduino is an open-source electronics platform based on easy-to-use hardware and software. It’s intended for anyone making interactive projects. The Arduino development environment makes it easy to write code and upload it to the I/O board. You can use Arduino language (C\C++) to interace with Arduino hardware.

Set Arduino

Get Arduino IDE and Makeblock program library

Login Arduino's official website to download Arduino IDE:

https://www.arduino.cc/en/Main/Software

You should download the installation package for corresponding operating system (Subject to the latest version).

1.png

Install the Makeblock libraries

1. Download Makeblock library functions:

https://github.com/Makeblock-official/Makeblock-Libraries/archive/master.zip

2. Decompress the makeblock folder in the zip to the Arduino default library.Your Arduino library folder should now look like this:

    • Windows 7(on Windows):

[arduino installation directory]\libraries\makeblock\src

[arduino installation directory]\libraries\makeblock\example

….

2.png

    • or like this (on Mac):

[arduino directory]\Contents\Java\libraries\makeblock\src

[arduino directory]\Contents\Java\libraries\makeblock\example

 

3. Open the Arduino Application. If already open it, you need to restart to see changes.

3.png

Install the driver

If the driver is not automatically installed on your computer, you can install it manually.

A simple example

In this example, we update the firmware of mBot Ranger.

1. Connect mBot Ranger to your PC with a USB cable. In the Arduino IDE, choose File > Examples > MakeBlockDrive > Firmware_for_Auriga.

1.png

2. Choose the board type and COM number.

  • Makeblock Auriga — Choose Arduino Mega 2560
  • Makeblock Orion — Choose Arduino Uno
  • Me Baseboard — Choose Arduino Leonardo

3-1.jpg

mceclip0.png

 

3. Click the Upload icon to compile and upload the code.

After the uploading is complete. The message "Done uploading" is displayed.

You can view some other test programs to learn coding before you create your own projects.

References

Getting Started with Arduino
Makeblock Library: visit Github

Was this article helpful?
0 out of 0 found this helpful

Comments

9 comments
  • FYI, the link in this article to download Arduino is to an older version, 1.0.6, and it DOES NOT WORK with the update! Arduino throws a series of errors related to the update code. The instructions here clearly show Arduino version 1.6.8. The correct link to download this version is https://www.arduino.cc/en/Main/OldSoftwareReleases#1.0.x. Then scroll down to version 1.6.8.

    0
  • Also just discovered that the link here for the Makeblock library package is seriously outdated. The current link is https://github.com/Makeblock-official/Makeblock-Libraries

    0
  • Thanks for Mike's feedback. The content on this page has been updated.

    0
  • Where can I find documentation for the Me Auriga?

    0
  • Hi Ore, here is a newly-released article about Me Auriga. Hope it helps!

    0
  • It says that I'm not authorized to access this page.

    0
  • Hi Shane, please let me know which page it was by sharing the link to it. Thank you!

    0
  • 0
  • Hi Shane, sorry for the trouble, the article is visible to everyone now.

    0

Please sign in to leave a comment.