Installing Arduino Software onto Raspberry Pi #tt15

Image for Installing Arduino Software onto Raspberry Pi #tt15
Tinkerer: Lory Livezey

In this tutorial you'll install the Arduino software into the Raspberry Pi. This will allow you to program the Arduino from the Pi while it's plugged into the USB port.

Previous Steps

  Intro to Arduino UNO with an SOS Blink #tt19 AND   Installing RealVNC for Windows to Access Raspberry Pi Remotely #tt4

What you will need

Windows PC

Plug in the Raspberry Pi and Remote In

You should have already set your Raspberry Pi up to access remotely over RealVNC in the previous tutorial. If you haven't done that, then use the link above.

Install Arduino from the Terminal

I have seen instructions that lead you through installing the software using this command:

sudo apt-get install arduino

Though that works, I don't recommend it, because it doesn't install the right version. This is an older version that doesn't have the ability to add external libraries, such as those put out by Adafruit.

Instead, we're going to download it. So, first remote into the Raspberry Pi using RealVNC

Open RealVNC

Next, open the browser -- the blue icon to the right of the Raspberry Pi. Paste this link to the Arduino download into the address bar:

Select the "Linux ARM" download. Once it's downloaded:

Raspberry Pi > Accessories > Archiver > Open an Archive (button) > Double-click "Pi" > Downloads > Click the arduino 1.8.5 download > Open

You'll be prompted where you would like to put the contents of the zip file. Remove the "downloads" in the path, so that you are putting in the root, /home/pi.

Download Arduino

Next, we'll install it. Open the Terminal by clicking the fourth icon in the menu bar.

Type "ls" to see a list of files and directories. You should see the directory that was created for the software. You'll want to go into that directory by typing:

cd arduino-1.8.5

Next, install it by typing the following, then updating the software:

sudo apt-get update
sudo apt-get upgrade

Install Arduino

Once the install has completed, you'll be able to open it by:

Raspberry Pi > Programming > Arduino IDE

Now that the Arduino software is installed, you'll be able to program any Arduino board that you connect to the Raspberry Pi. Though it will be slower than using the Desktop version, it can be handy in situations where you would like to deploy a Raspberry Pi in a production setting where you want to be able to program the Arduino on-the-fly, or to perform some more advanced tasks that the Arduino can't handle, such as access a MySQL database. In future tutorials, we will do just that, so stay tuned!

Be sure to subscribe to our channel!