Installing the Arduino IDE on a Raspberry Pi 3

Installing the Arduino IDE on a Raspberry Pi 3

The Arduino Integrated Development Environment (IDE), or Arduino Software, is free software that is maintained by Arduino.cc. It is basically a text editor for writing and uploading programming code to the Arduino and Genuino microcontroller boards which can be installed on a personal computer or run from their website.

The Arduino IDE is available for all the major operating systems, but this post will show how to install it on a Raspberry Pi 3 running Raspbian Jessie.

Assumptions/requirements

Fully functional Raspberry Pi 3 with a keyboard, mouse and screen running Raspbian Jessie. A connection to the internet is also required.

Installing the software

To make sure Raspbian Jessie is up to date:

sudo apt-get update
sudo apt-get upgrade

Installing the Arduino IDE on a Raspberry Pi 3

Install Arduino IDE with:

sudo apt-get install arduino

To open, pull down the Menu and select Arduino IDE under Electronics.

Uploading the first sketch

After using the appropriate cable to connect the Arduino board to the Raspberry Pi, open the Arduino IDE.

To choose the type of Arduino board go to Tools > Board > and select the appropriate one. To select the port the Arduino is connected to, look under Serial Port under the Tools menu.

Example sketches can be chosen from Examples under the File menu. To test if everything is working choose Examples > 01.Basics > Blink. After pressing the Upload button (->) the Arduino’s on-board LED should start to blink on and off at one second intervals.

The sketches directory

The default location for saved sketches is /home/pi/sketchbook. The libraries directory is also located here.

To make a quick backup of all the sketches including the sketches and libraries directories use:

sudo cp -rp /home/pi/sketchbook /copy-to-directory

After a fresh install, this backup can be retrieved by using:

sudo cp -rp /copy-from-directory /home/pi

More Raspberry Pi related posts

Try one of Lynda.com’s online software and skills learning courses
Improve your knowledge on anything from programming to business skills with Lynda.com’s huge range of professional video courses.
[date format="j F Y"] | 5 401 reader(s) found this helpful so far.
Manually updating Kodi's media libraries
Manually updating Kodi’s media libraries
See #howto overcome the most common scenarios when doing manual media library updates for #Kodi...
15 June 2017 | | 4 reader(s) found this helpful so far.
Getting started with RetroPie on Raspberry Pi
Getting started with RetroPie on Raspberry Pi
See how to #getstarted with #RetroPie on the #RaspberryPi...
31 March 2017 | Updated 6 June 2017 | | 3 reader(s) found this helpful so far.
Automatic media library updates for Kodi media centre
Automatic media library updates for Kodi media centre
See #howto automatically update your #Kodi media library with an add-on...
10 March 2017 | | 2 reader(s) found this helpful so far.
Looking back on the Raspberry Pi 2016
Looking back on the Raspberry Pi – Behind the Scenes 2016
Reflecting back on #2016 - focusing on my experience with the #RaspberryPi...
27 December 2016 | | 2 reader(s) found this helpful so far.
Communicating between 2 Raspberry Pi's using sshpass
Communicating between 2 Raspberry Pis using sshpass
See #howto communicate between two #RaspberryPi s using sshpass...
10 September 2016 | Updated 15 July 2017 | | 4 reader(s) found this helpful so far.

Did you like this post?

(3 reader(s) found this helpful)
You have not rated this post yet. You can do so clicking on the thumbs up icon.
Loading...

Please share, comment & Disqus

Please use the buttons on the left or the bottom of the screen to share this post.

Your comment is important to us, but please keep the comments constructive and polite.

Comment via Facebook

Disqus

About the author
Renier finds himself busy with creative web design and his websites, motorcycling, photoshopping, micro electronics, non-commercialised music, superhero movies, badass series and many other things that are not interesting to most people.