jogl
Posts: 93
Joined: Sun Mar 13, 2016 12:02 pm
Location: SW Ontario Canada

RPi plus Arduino

Thu Dec 29, 2016 6:40 pm

I would like to use an RPi 3 and an Arduino Uno together. I want them to be connected via USB so that I can use the R Pi 3 to program the Uno and so that the two can send data back and forth. The R Pi 3 would hang on my LAN.

The R Pi 3 and Uno combination will be located remotely. I will use a remote desktop viewer to access the R Pi 3 and run the Arduino IDE when Uno program changes are desired.

I have been reading through some of the the existing threads on getting the Arduino IDE to work and haven't quite figured out which revision I should load. I would like to use the latest one that can be installed without a lot of rigmarole.

What versions of Raspian and the Arduino IDE should I load to make all of this work with minimal pain?

Thanks.

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: RPi plus Arduino

Thu Dec 29, 2016 6:53 pm

You can install the Arduino IDE with sudo apt-get install arduino that works with Unos and Nanos.

Or if you have a really modern Arduino (or want to play with ESP8266s) then grab a copy of https://www.arduino.cc/download_handler ... arm.tar.xz and install that. Beware 1.8.0 has an ugly font problem that should get fixed in a few days time.

If you don't need the IDE then there's always the command ino tool from http://inotool.org/
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

User avatar
B.Goode
Posts: 10356
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: RPi plus Arduino

Thu Dec 29, 2016 7:33 pm

What versions of Raspian
Raspbian?

Unless you know some reason to do something different, use the most recent release, which at the time of writing is late November 2016. Since you are apparently planning to use the Arduino IDE which has a graphical interface you will need the full version of the os, not the lite version.

jogl
Posts: 93
Joined: Sun Mar 13, 2016 12:02 pm
Location: SW Ontario Canada

Re: RPi plus Arduino

Thu Dec 29, 2016 7:37 pm

Thanks Dougie:

If I understand correctly,

Code: Select all

apt-get install arduino
will get me 1.0.5, right?

That inotool looks very interesting at first glance, I will be reading up some about that.

W. H. Heydt
Posts: 12648
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: RPi plus Arduino

Thu Dec 29, 2016 7:41 pm

jogl wrote:Thanks Dougie:

If I understand correctly,

Code: Select all

apt-get install arduino
will get me 1.0.5, right?

That inotool looks very interesting at first glance, I will be reading up some about that.
You will need to prefix the command with "sudo" because apt-get needs root privileges to install software.

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: RPi plus Arduino

Thu Dec 29, 2016 11:20 pm

Version 1.0.5 is a bit old (because of DebIan being very conservative with its update policy) but it works for stock Arduinos.

I like inotool because I don't like GUIs. I can edit Arduino C++ code with vi and compile it from a command line.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

RetiredProgrammer
Posts: 14
Joined: Sat Jan 10, 2015 10:42 pm

Re: RPi plus Arduino

Sun Jan 29, 2017 8:53 pm

jogl wrote:Thanks Dougie:

If I understand correctly,

Code: Select all

apt-get install arduino
will get me 1.0.5, right?

That inotool looks very interesting at first glance, I will be reading up some about that.
If you want the latest Arduino IDE (1.8.1), follow the simple steps at https://medium.com/@ronm333/installing- ... .oeijmb71i

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: RPi plus Arduino

Sun Jan 29, 2017 9:20 pm

If you want the official version of 181 get it from https://www.arduino.cc/en/Main/Software - there's now an official ARM port (and nightly build) of the standard Arduino IDE.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Return to “Beginners”