Arduino
Our first task is to install the Arduino IDE. The Arduino IDE is where we will write the code and upload it to the microcontroller.
Note
This piece of software can be found at http://arduino.cc/en/main/software.
Here, you will find the installation instructions for your operating system, including Linux, Windows, and Mac OS X. It is also possible to install the Arduino IDE directly on the Raspberry Pi. The following instructions will provide an overview of this process.
Installing the IDE on your Raspberry Pi
If you wish to install the IDE directly on your Raspberry Pi, you can do this via the command line. This will be necessary if you don't have a second computer on which you can install the Arduino IDE.
Once you have the Terminal window open, type the following command:
sudo apt-get install arduino
Accept any prompt that appears on the screen. The installation takes up about 81 MB of space.
Now that the installation is complete, you will be able to open the Arduino IDE on your Raspberry...