Ranger-Learning Arduino Programming


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.
We provide a complete Arduino using environment.

Step2 Install Makeblock Library for Arduino

(Note: The Arduino installation package for windows is integrated the Makeblock library.)

  1. Download the library zip package: https://github.com/Makeblock-official/Makeblock-Libraries/archive/master.zip
  2. Decompress the makeblock folder in the zip to the Arduino default library:
    • Windows 7: “[arduino installation directory]\libraries”Your Arduino library folder should now look like this (on Windows):
      [arduino installation directory]\libraries\makeblock\src
      [arduino installation directory]\libraries\makeblock\example
    • or like this (on Mac):
      [arduino directory]\Contents\Java\libraries\makeblock\src
      [arduino directory]\Contents\Java\libraries\makeblock\example
    • or similarly for Linux.
  3. Open the Arduino Application. If already open it, you need to restart to see changes.
  4. Click “File->Examples”. Here are some test program

Step3 Basic Example

What you need:
Ranger to upload the default firmware.

  1. Connect Arduino and PC with a USB cable. In Arduino IDE, click “File->Examples”, and choose an example.1
  2. Choose the board type and COM number.
    • Makeblock Auriga — Select Arduino Mega 2560
    • Makeblock Orion — Select Arduino Uno
    • Me Baseboard — Select Arduino Leonardo3



  3. Click “Upload” button to compile and upload the code. It will show “Done uploading” in about 1 minute.

arduino serial port

4. Then you can try some other test programs to start learning some coding skills.

Resources and Going Further

(1) Getting Started with Arduino
(2) Makeblock Library: visit Github
(3) Makeblock Official Web Site: http://www.makeblock.com/
(4) Makeblock Community: http://learn.makeblock.com/