3 Steps to Install Arduino IDE on Raspberry Pi

Table of Contents


To write a code and upload it to your Arduino board, you need a PC or laptop. However, there are cheaper ways.

In this tutorial, you will learn to install ARDUINO IDE on Raspberry Pi, write code with it and then upload it to your Arduino.

What You Will Learn

Required Materials

Hardware Components

Raspberry Pi 3 B or B+ × 1
Arduino UNO R3 × 1

Software Apps

Arduino IDE

Install Arduino IDE on Raspberry Pi

Follow these steps to install Arduino IDE:

First Step: Download the software from the Arduino website

Connect your Raspberry Pi to the internet and enter this URL in the browser:


Download the Arduino software for Linux operating systems based on ARM processors.

Second Step: Unzip the file

Right-click on the file and select Extract Here.

Third Step: Install the software

Double click on install.sh file and select Execute or Execute in Terminal.

And Done!
Now you can easily write codes for your Arduino and upload to the board with no need for a PC or Laptop.

Initial Testing of Arduino IDE

After installing software, you can access it on the desktop or in the Programming menu.


After installing software, you can access it on the desktop or in the Programming menu.

To start you can use the prepared Arduino examples in File>Examples. Here, we are using the Blinking LED example.

  Turns on an LED on for one second, then off for one second, repeatedly.

  Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO 
  it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN takes care  of using the correct LED pin whatever is the board used.
  If you want to know what pin the on-board LED is connected to on your Arduino model, check
  the Technical Specs of your board  at https://www.arduino.cc/en/Main/Products
  This example code is in the public domain.

  modified 8 May 2014
  by Scott Fitzgerald
  modified 2 Sep 2016
  by Arturo Guadalupi
// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin LED_BUILTIN as an output.

// the loop function runs over and over again forever
void loop() {
  digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);                       // wait for a second
  digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);                       // wait for a second
To upload your codes to Arduino, go to Tools menu and select the type of the board and the port that the Arduino connects to it.

Then, just click upload.

Liked What you see?

Get updates and learn from the best

More To Explore

Comments (9)

  • tudor Reply

    I don’t have a desktop interface.
    How can we do these operations only through ssh.

    January 24, 2020 at 8:46 pm
    • Mehran Maleki Reply

      Arduino need GUI to operate. Or use VNC.

      December 5, 2020 at 9:45 am
  • Gunter Reply

    this procedure was not working for me as I had to run the install.sh script with root privileges.

    July 25, 2020 at 4:54 pm
    • Mehran Maleki Reply

      Yes. In order to use this method, you need to have root privileges.

      December 5, 2020 at 9:52 am
  • Bryan Reid Reply

    I have a PI 400 and want to program an Arduino UNO.
    Following these instructions leads me no where.
    I followed them and have the Arduino icon on my desktop but in executing it … it goes no where.
    Once by shear luck I got into it but then the com port was not connected… despite the UNO being on a USB port.
    Hours spent trying to figure this out… but no luck .
    Anyone… help me before I die of old age.

    December 6, 2020 at 8:56 pm
  • Cindy W Reply

    I guess Rpi 64bit Bullseye is more secure and ran into issues of permission denied and need to stall with root permissions, so I use the terminal to
    be able to use the ‘sudo’.
    from what I read we should be installing programs in /opt .

    Download the latest Arduino IDE to your downloads folder,
    open terminal and enter
    sudo tar -xvf ~/Downloads/arduino-1.8.19-linuxaarch64.tar.xz -C /opt

    this will extract program in /opt/arduino-1.8.19
    you can go look to verify, enter
    cd /opt

    so I see a folder called ‘arduino-1.8.19’ which I do not like and want to rename before I run the install.sh
    enter the following to rename folder (the -v is option, it enables feedback at terminal)
    sudo mv -v /opt/arduino-1.8.19 /opt/Arduino

    when happy with location of program then run the install
    sudo /opt/Arduino/install.sh

    February 4, 2022 at 7:11 pm
    • Mehran Maleki Reply

      Thanks for sharing your experience.

      February 5, 2022 at 6:07 am
  • Normand Bergeron Reply

    How do we remove it, as the installation seems to be corrupted after updating PI?

    March 13, 2022 at 7:52 pm
    • Mehran Maleki Reply

      You can just go to the folder where the Arduino IDE is installed and delete the whole folder.

      March 14, 2022 at 6:02 am

Leave a Reply

Your email address will not be published. Required fields are marked *