Introduction: Arduino on Pi

this is an instructable on how to make the raspberry pi have arduino IDE on the desktop. note you will need an internet connection.

Step 1: Boot Up and Log In

boot up the pi with your username and password

Step 2: Go to LX Terminal

go to the LX terminal and type in the code in the next step.

Step 3: Type in Code

type in the following code:

sudo apt-get install arduino

press enter and wait a good while until it is downloaded

Step 4: Move IDE to Desktop

go to the LX menu in the bottom of the screen it is sort of like the start menu on Windows but its Linux. Adding the icon to the desktop isn't hard just go into the menu and you should see a "Electronics button" right click it and choose add to desktop.

Step 5: Opening IDE and a Sketch

open a sketch in the arduino program and upload it to your arduino it should have the same bars as Windows but different i.e. file, edit, and so on. look for example in the file tab and you will find some menus. Look for basics and click fade or blink. choose the arrow pointing right to upload you must have your arduino plugged into the pi via the usb.

Step 6: Enjoy

enjoy and have fun I hope I have inspired you to do your own projects with a raspberry pi and arduino.

Comments

author
BeccaT3 made it!(author)2017-03-06

Hi. This is a great tutorial thankyou. I'm however having issues with the version of Arduino that has been installed on my Pi (Raspbian Jessie) following this tutorial. It installs fine but when I open Arduino it just opens a blank page with a flashing cursor - which is unusual. Also, when I try to open a sketch that has worked on another Pi I have - it doesn't open at all. Can anyone offer any advice? Perhaps I should install an old version of Arduino? If so, how do I do this? Thanks

author
killercatfish made it!(author)2016-01-28

Can you install custom libraries?

author
albertob31 made it!(author)2015-12-29

thank you for you information but i have a question, i want to work with ARDUINO DUE tarjet but i don´t find this tarjet in the list "board" on the Arduino IDE. Do you know how i find Arduino DUE in the list "board" on the Arduino IDE?

author
IanM70 made it!(author)2015-10-31

Wow.. THANK YOU..

That was THE most useful post I have ever come across on the web !! I have spent all day trying to figure out how to get to my ELEVEN board from my Pi. This did it.

ianm

author
nerd7473 made it!(author)2015-10-31

glad it helped you

author
walter74 made it!(author)2015-08-20

Hi,

Thanks for your info. I was on the misunderstanding that the RaspberryPi was not able to flash sketches to the Arduino. I used to be able to do it 6 months or so ago using an old Desktop, running Windows XP, until that gave up the ghost

Having spent I do not know how many hours trying to connect a laptop with Windows 8.1 & more recently Windows 10 with Visual Studio 2015 and Visual Micro for flashing and failing I suddenly chanced on your Blog. Within 20 minutes, including time failing with an Arduino Micro & my hopes falling, I managed to flash Blink with Print added to a Mega 2560 & it worked first time.

Do you know which Board I should select for a Micro as it is not in the list?

Am in the land of BLISS so will now try to get the diy 3D Printer working - fingers crossed.

I suspect I will spend plenty of time perusing instructables.com as well.

Yours, Walter

author
nerd7473 made it!(author)2015-10-31

I don't have any advice on boards sorry...

author
ruhliar made it!(author)2014-09-10

And how to uninstall it???

author
nerd7473 made it!(author)2014-09-14
sudo apt-get autoremove arduino

that will remove it I also suggest after the removal is done that you go and do:

sudo apt-get purge arduino
author
robomaniax made it!(author)2014-03-02

how to install other libraries on raspberry pi arduino ide

author
nerd7473 made it!(author)2014-03-02

I successfully moved the files from github they were for adafruit neopixel but there were errors when I went to verify the code in the program does anyone have an idea as to why the files had messed up code? p.s. the font was small because I changed the resolution, so it was hard to see

CODE: SELECT ALL

cd usr/share/arduino/libaries

and then I copied and pasted the url of the download link and pasted it after:

CODE: SELECT ALL

sudo wget

I then typed

CODE: SELECT ALL

sudo unzip

and then the url

author
nerd7473 made it!(author)2014-03-02

I successfully moved the files from github they were for adafruit neopixel but there were errors when I went to verify the code in the program does anyone have an idea as to why the files had messed up code? p.s. the font was small because I changed the resolution, so it was hard to see



and then I copied and pasted the url of the download link and pasted it after:



I then typed

and then type the url

I posted this on the rpi forums just to be clear the url is that of the download link. If you want to get more help private message me

author
nerd7473 made it!(author)2014-03-02

I could locate it but could never figure out how to get it to work properly I actually forgot maybe the raspberry pi forums or google could help you but I seriously forgot how to do it I think I used directories and the terminal but honestly I can't remember

usr/share/arduino

author
robomaniax made it!(author)2014-03-02

how to install other libraries on raspberry pi arduino ide

author
nerd7473 made it!(author)2013-11-22

The Raspberry pi is a great computer for beginners or experts I recommend it

author
nerd7473 made it!(author)2013-11-22

http://www.kickstarter.com/projects/alexklein/kano-a-computer-anyone-can-make

author
nerd7473 made it!(author)2013-11-22

I may post on how to get an OS on your SD card instead of adding to your shopping list

author
tzq33tdq made it!(author)2013-11-11

How do I add libraries?

author
nerd7473 made it!(author)2013-11-14

I just tried to add the neopixel library from adafruit on the pi and ran into a snag it wont let me move any of the items in the folder

author
nerd7473 made it!(author)2013-11-11

go to the files button under the lx menu and type this in the directories search box:

usr/share/arduino

when you enter it you will see several folders including the libraries folder hope I have been help

author
nerd7473 made it!(author)2013-11-11

I will try to figure this out and get back to you it should be similar to windows or mac but I would look around for a while to figure it out.

author
nerd7473 made it!(author)2013-11-11

sorry I couldn't be more help

author
nerd7473 made it!(author)2013-11-11

I never knew how to do that on Arduino IDE I always had trouble with that I will have to check when I get home

author
tzq33tdq made it!(author)2013-11-13

Definitely should be featured... Thanks :)

author
nerd7473 made it!(author)2013-11-13

oh and your welcome

author
nerd7473 made it!(author)2013-11-13

yes it should but I have no idea why it isnt

author
TSJWang made it!(author)2013-11-07

I've been following another set of instructions for a while and wasted several hours installing the java support, avrdude, etc. I will try this: looks a lot simpler!
*Favorites*

author
nerd7473 made it!(author)2013-11-08

yeah it wasn't that hard to do. follow the instructions and you will be programming in no time!

author
TSJWang made it!(author)2013-11-10

My question is: why is this not featured!?

author
nerd7473 made it!(author)2013-11-10

that is a good question IDK

author
nerd7473 made it!(author)2013-11-06

feel free to comment

About This Instructable

59,978views

120favorites

License:

Bio: I am a thinker, and I am a nerd/geek that also loves technology and computers equally.
More by nerd7473:Ubuntu Tardis DesktopLinux Tipsmaking the raspberry pi feel like Ubuntu
Add instructable to: