Introduction: How to Install Arduino IDE on Raspberry Pi in 2 Steps
If you would like to install the Arduino IDE on your Raspberry Pi, one might think that you need to do some hacking to get there, but in reality, it is incredibly simple to code C++ from your Raspberry Pi to your Arduino. I assume that you have a very basic knowledge of the Raspberry Pi, and also, I assume that you have some experience with the Linux command prompt. The following instructions have been tested on a Raspberry Pi 2 model B, controlling an Arduino Uno R2. (This generally applies to any Arduino, and the Uno R3 would probably work as well.
Raspberry Pi 2 B with Raspbian
Peripherals for Raspberry Pi
Powered USB hub (Important for powering the Arduino-the Pi's USB ports don't stand up to the current drawn by the Arduino)
Arduino R2 or R3
USB A-B cable of any length
1. Before installing the Arduino IDE, we need to do a spot of updating. Boot up your Pi, and type or copy the following code into the LX-Terminal:
sudo apt-get update && sudo apt-get upgrade
2. Now, we do the very hard task of installing the Arduino IDE:
sudo apt-get install arduino
3. See how hard that was? Now, in your menu bar, there should be an Electronics section. There you can access the Arduino IDE. Just remember: Plug in your Arduino into your powered USB hub. If you don't, you wouldn't be able to power any servos, LEDs, or any other parts to your Arduino.
We have a be nice policy.
Please be positive and constructive.