Smart Cities - Arduino IDE installation

From Sensors in Schools
Jump to navigation Jump to search

Background

  • The default Arduino IDE installed on the Raspberry Pi is an older version.
  • This lesson explains how to install the latest version of the Arduino IDE.

Online Resources

Upgrading the existing Raspbian Operating System

  • Firstly, using the Terminal on the Raspberry Pi, updated the software library with the command sudo apt-get update.

  • Upgrade the existing operating system and software with the command sudo apt-get full-upgrade -y
  • The upgrade may take 10 to 20 minutes.

Download Arduino IDE

  • We need to download the latest version of the Arduino IDE software compatible with the Raspberry Pi.
  • You can go directly the Arduino Download site and download the Linux ARM 32 bit version.
  • Alternatively, you can use the wget instruction.

Download the Arduino IDE Software

  • Create a new folder for the Arduino IDE software.
  • In the Terminal enter the following commands.
    • mkdir Applications
    • cd Applications

  • When in the directory the wget instruction can be entered to download the software.
  • The download takes approx 3 minutes.
  • Enter the command wget https://downloads.arduino.cc/arduino-1.8.19-linuxarm.tar.xz
  • Alternatively you can also go to the Arduino website and download the file directly to the Raspberry Pi.
wget https://downloads.arduino.cc/arduino-1.8.19-linuxarm.tar.xz