Arduino on Pi

Published

Introduction: Arduino on Pi

About: I am a thinker, and I am a nerd/geek that also loves technology and computers equally.

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.

Share

Recommendations

  • Clocks Contest

    Clocks Contest
  • Oil Contest

    Oil Contest
  • Make it Move Contest

    Make it Move Contest
user

We have a be nice policy.
Please be positive and constructive.

Tips

Questions

33 Comments

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

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?

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

1 reply

glad it helped you

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

1 reply

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

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

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

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

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

how to install other libraries on raspberry pi arduino ide

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

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

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

How do I add libraries?