Installing SparkiDuino on Linux

Because of the variety Linux versions, SparkiDuino does not have a pre-compiled package for Linux. Instead, this tutorial will show you how to install Sparki’s library, board, and the Ardublock tool into Arduino for Linux. In this example we are using Ubuntu 16.04 for the screenshots.

1
Install Arduino for Linux

Download and install the appropriate version of Arduino for your Linux distribution:

https://www.arduino.cc/en/Guide/Linux

2
Install the Library and Board for Sparki

To use Sparki, Arduino needs to know a little about it. So, we need to add Sparki as a new “board” type.

After you have downloaded and installed v1.6.4 or later, you will need to start Arduino and navigate to the Preferences menu. You can access it from the File menu.

ubuntu_add_arcbotics_board_library_01

A dialog will pop up just like the one shown below.

We will be adding a URL to the new Additional Boards Manager URLs option.

We will only need to add one URL to the IDE in this example. Copy and paste the link below into the Additional Boards Manager URLs option in the Arduino preferences.

ubuntu_add_arcbotics_board_library_02

Once you are done, click OK to save the new preference settings.

Now that you have added the appropriate URLs to the Arduino IDE preferences, you can open the Boards Manager by navigating to the Tools->Board menu.

ubuntu_add_arcbotics_board_library_03

Once the Board Manager opens, click on the category drop down menu on the top left hand side of the window and select Contributed. You will then be able to select and install the boards supplied by the URLs added to the prefrences.

ubuntu_add_arcbotics_board_library_04 ubuntu_add_arcbotics_board_library_05

Click Install, and the appropriate board files and libraries will be installed for you:

ubuntu_add_arcbotics_board_library_06 ubuntu_add_arcbotics_board_library_07

Next, quit and reopen the Arduino IDE to ensure that all of the boards are properly installed. You should now be able to select and upload to the new boards listed in the Tools->Board menu.

ubuntu_add_arcbotics_board_library_08

You should notice that this also installs the appropriate library for Sparki as well:

ubuntu_add_arcbotics_board_library_09
3
Install Ardublock for Sparki

First download Ardublock for Sparki:

Ardublock for Sparki

Next, we need to add it to Arduino’s tools folder. To find out where this folder is, open Arduino’s preferences dialog. Click on the File menu, and then select Preferences.

Find “Sketchbook location:”. In Linux, it’s by default “Arduino” under user’s home directory.

Copy ardublock-all.jar to tools/ArduBlockTool/tool/ under “Sketchbook location”. Assume the user is “arcbotics,” the ardublock-all.jar file should be copied to the following directory:

Create the tools, ArdublockTool, and tool folders if needed.

ubuntu_add_ardublock_03

Start the Arduino IDE and find Ardublock under the Tool menu:

ubuntu_add_ardublock_04

Click it to launch Ardublock:

ubuntu_add_ardublock_05
4
Upload a Programar

That’s it! Let’s go on to uploading your first program to Sparki

Upload a Program