Can't find the right computer to program your Arduino? Or are you running short on available computers around the house to use?
Well, worry no more, my friends. This will take very little time and will get your Raspberry Pi to program your Arduino.
Connect your Raspberry Pi to a power source and a monitor. Once logged in, navigate to your browser.
Head to this link: https://www.arduino.cc/en/Main/Software
Scroll down a bit and click on "Linux ARM 32 Bits" on the right.
You will then be redirected to a "Contribute" page. If you want to donate money to Arduino, this is were you'll do that. If you don't want to donate, click "Just Download". A dialog box will pop up, asking where you want to save the file. Select Downloads and continue.
Now that the IDE is downloaded, you'll need to install it with Raspbian's Archiver.
Follow these steps to install and begin using the latest version of Arduino IDE:
1. Go to the Raspbian Icon at the top left corner of the Raspbian desktop. Open the menu, go to Accessories and click Archiver.
2.Go to Archive ----> Open ----> arduino-1.8.1-linuxarm.tar.xy. Wait for the red light to stop flashing at the bottom right corner.
3. Once that's done, go to Action ----> Extract. A dialog box appears. Select "All Files" and"Extract files with full path". It should be set like that as default. Click extract.
4. Wait for the extraction to be complete, the move to the terminal. Type this:
cd Downloads ls cd arduino-1.8.9 sudo ./install.sh
Once that's done, you can start using the IDE!
When your Raspberry Pi finishes rebooting, open the Raspberry Pi menu on the desktop. There should be a new section called "Electronics". In that section, there should be the Arduino IDE! Plug in your Arduino into your Raspberry Pi, open the Arduino IDE. Select the correct port, which should be /dev/tty/USB0.
To test that it works, try coding the classic Blink program attached to this post into the Arduino IDE. It should upload correctly, and it works!