Introduction: Program Arduino From Raspberry Pi

In this tutorial I will show you how to program arduino with the raspberry pi.

All you need are:

Raspberry pi with internet connection

Arduino uno

Connection cord

Step 1: What to Do

Go in to the raspi lxterminal and type in sudo apt-get install arduino.

Once you hit enter it will download and once you finish restart the pi.

This video will help u through it.

Comments

author
Arman5592 (author)2014-08-26

And why would we do that ? Arduino's language is way better .

author
HristoH11 (author)Arman55922017-04-20

basically the reason why I want to use arduino pro mini and control it over the Pi is the following - ADC

author
dougsmith74 (author)Arman55922015-01-07

Because the Pi is a computer and Aduino has to be programmed from another source. Also Pi's work great as a central server to control Arduinos. Finally Pi can be programmed with any language or IDE available it Linux. I'm don't get what you mean by better? One is a micro computer and the other a computer. They are very different devices.

author

I'd like to point out that an ATmega328 can pretty much boot load from an SD card, and have a menu to select the program to load, and as such, it can pretty much act like a computer.

http://gamebuino.com/wiki/index.php?title=Bootload...

author

Thanks, I was not aware of that even to this day. I'll check it out but, I'm skeptical that it would be as Trivial to setup as simply using the rPi is to control my microcontrollers. Then again I'm a bit biased since I've been using Linux since 1994 and I store all my infrastructure as code.

author
Frankv14 (author)2016-03-26

In case its useful to someone:

When I ran "arduino" on my RPi3 (Raspbian Jessie), I got a message "Gtk-Message: Failed to load module "canberra-gtk-module"". I don't know if that's important, but I ran "sudo apt-get install gnome-session-canberra" and it went away.

author

The arduino.cc IDE 1.0.1 was pretty straight forward, all you really have to do is set the serial permission then you can select the board and upload without a problem. The real problem I'm having is that I purchased a zero pro board from arduino.org and I'm having trouble getting the 1.7.6 that would be required to upload code to it installed on Raspbian. I know the simple solution would be to just run it on a full-sized desktop but lets just assume that all I have to work with are a couple of RPi 2's. I can find virtually nothing online about how to go about it and I know there are others out there looking for ARM to ARM programming options so any suggestions? (Wiling to use an alternate Pi2 compatible IDE to program it from as long as I can have a debugging interface that is preferably integrated but I can settle for a separate one)

author
dlandenberger made it! (author)2015-09-10

nice video

temp_-11555491.jpg
author
LoganS2 (author)2015-07-06

Can you just download the Arduino IDE and install it onto the Raspberry Pi via flash drive? My Pi doesn't like the internet :/

author
cuongpt (author)2015-04-21

author
BrianM15 (author)2015-03-30

unable to locate package arduino

author
StevenS8 (author)2015-02-06

I bought a chinese knockoff arduino that would not been seen on my macbook air or my hackintosh. I know linux sees it just fine but I have gotten rid of all of my linux machines at home. Just wanted to see if I could program it with my raspberry pi and your video proves it can! Thanks for the info.

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

Thank you. I Made it.

IMG_20140910_103547[1].jpg
author
dougsmith74 (author)ruhliar2015-01-07

Thanks! I didn't have access to my computer so, I used this instead!