Introduction: Installing & Using Arduino IDE on a Raspberry Pi 3
This Instructable will go through the easy steps in installing the latest version of the Adruino IDE on a Raspberry Pi.
The Arduino IDE is available for all the major operating systems, but will show how to install it on a Raspberry Pi 3 model B running Raspbian Jessie in the GUI. An active connection to the internet will be required and to get the full experience the Raspberry Pi also needs to be connected to a screen, keyboard and mouse.
Step 1: Installing the Required Packages
The easiest way to install packages is from the terminal.
To make sure Raspbian Jessie is up to date use:
sudo apt-get update
sudo apt-get upgrade
Install Arduino IDE with:
sudo apt-get install arduino
Step 2: Connect the Arduino
After connecting a Arduino board to the Raspberry Pi using the appropriate cable, pull down the Raspbian main Menu and select Arduino IDE under Electronics. It will open with a blank screen.
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.
Step 3: Uploading a Sketch
Example sketches can be chosen from Examples under the File menu. To test if everything is working choose Examples > 01.Basics > Blink. This will open the default blink sketch on a new screen. You can now close the old one.
After pressing the Upload button (->) the Arduino’s on-board LED should start to blink on and off at one second intervals.
Step 4: Conslusion
That's it! If the board's build-in LED is blinking the setup is complete!
For more information & tips about the Arduino IDE, see my Blog.
Enjoy =)-~
11 Comments
4 years ago
how chinese clone board what need ch340 driver, how add rasbian ch340 drivers ???? and arduino ide version need be 15,4 about
Reply 2 years ago
This installs an older version. You can install those drivers with this older version too, but that is much more hands on Linux administration.
Easier to follow the link I provided above.
4 years ago
Stupid f*cker, this way you only install an old version.
Reply 2 years ago
It DOES work. No need to be stupid and name calling, just because it doesn't suit your use case.
But yes, there are beter way of installing LATER versions of the software, like mentioned here.
https://minicode.co.za/2019/10/12/correctly-instal...
Yes, it works on older versions of Raspberry Pi:s too.
But again, being stupid like you are not a good way of help anyone.
Reply 4 years ago
I'm sorry. I don't follow?
Reply 3 years ago
Using the repository only brings you a very outdated version of Arduino, though it works it doesnt support boards like: ESP8622, STM32, etc etc. as there is no library manager or board manager. Go to the website instead
Question 3 years ago on Introduction
Hello, how can I uninstall Arduino from IDE? Thanks in advance.
Answer 2 years ago
Do as with any Debian package, use the apt(8) command: 'sudo apt remove arduino'
The remove will leave the configurations, so if you later install Arduino package again, you will have the same setup.
If you want to remove everything, just do 'sudo apt purge arduino' instead. Then if you later install, it will be a fresh installation.
For more information, search for 'Debian Administrators Handbook', which is a free book, that you can buy a Paperback version to help the authors. Or even install the package with apt(8) command.
Question 5 years ago
How do you update the board manager so you can also use esp8266 and esp32?
Answer 3 years ago
go to website and download 1.8.2
6 years ago
Cool idea. I never thought about combining raspberry pi and Arduino in the same system.