Arduino on Pi

72,887

122

35

Introduction: Arduino on Pi

About: Linux nerd/geek! Donate to ETH=0xC3b3538969d9dBd41bCb87A8e373eA0c133D0252

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.

Microcontroller Contest

Participated in the
Microcontroller Contest

1 Person Made This Project!

Recommendations

  • Big and Small Contest

    Big and Small Contest
  • Make It Bridge

    Make It Bridge
  • For the Home Contest

    For the Home Contest

35 Comments

0
Arjun Dhama 2
Arjun Dhama 2

Question 4 years ago

will it support arduino modules ? can i use raspberry pi TFT with it ?

0
nerd7473
nerd7473

Reply 4 years ago

Most likely, I made this a long time ago, but I believe so. I'd wager looking into either Arduino Forums, or Stack Exchange, or ask a question here on Instructables.

0
MordechaiF
MordechaiF

5 years ago

Ha ha, that was easy

0
BeccaT3
BeccaT3

6 years ago

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

0
killercatfish
killercatfish

7 years ago

Can you install custom libraries?

0
albertob31
albertob31

7 years ago

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?

0
IanM70
IanM70

7 years ago

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

0
nerd7473
nerd7473

Reply 7 years ago

glad it helped you

0
walter74
walter74

7 years ago on Introduction

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

0
nerd7473
nerd7473

Reply 7 years ago

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

0
ruhliar
ruhliar

8 years ago

And how to uninstall it???

0
nerd7473
nerd7473

Reply 8 years ago on Introduction

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
0
robomaniax
robomaniax

9 years ago on Introduction

how to install other libraries on raspberry pi arduino ide

0
nerd7473
nerd7473

Reply 9 years ago on Introduction

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

0
nerd7473
nerd7473

Reply 9 years ago on Introduction

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

0
nerd7473
nerd7473

Reply 9 years ago on Introduction

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

0
nerd7473
nerd7473

9 years ago on Introduction

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

0
nerd7473
nerd7473

9 years ago on Introduction

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