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

  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:
Starter Robot Kit or Ultimate Robot Kit to build a ultrasonic car.

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

    arduino board type

    arduino serial port

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

 

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/