Trying to use my Raspberry to run an Arduino.....

My arduino runs very well on my Surface laptop. No problems. I have a project that requires the use of analog and digital inputs. So I would like to have my Raspberry pi talk to my Arduino. I browsed around the web and found the link below.

After reading what was written it looked very simple, too simple, so I tried it. I ran the three sudo lines as indicated. Sure enough the IDE for the Arduino showed up right under Geany the one I use for the Raspberry.

I loaded one of the sample sketches. I then ran verify and it verifies with no errors. When I went to upload to the arduino I got an error.

My question is this. Is this a good way to do what I want to do or is something missing? I also had the question, where does Raspian get the arduino install?

Can anyone shed some light on this topic. It really would be nice to have two little black boxes talking to each other. Sure keeps the components to a minimum when hauling hardware around.

John

jrickert:
So I would like to have my Raspberry pi talk to my Arduino.

This simple Python - Arduino demo may help.

When I went to upload to the arduino I got an error.

What error? Please post the error message.

...R

jrickert:
Is this a good way to do what I want to do

No. It's the worst way. That tutorial is giving very bad advice. When you install the Arduino IDE via apt-get, you get an extremely outdated version of the Arduino IDE, that may have been modified in unspecified ways. You should always download the official Arduino IDE from here:
http://www.arduino.cc/en/Main/Software
For your Raspberry Pi, you want the "Linux ARM 32 bits" download.

jrickert:
is something missing?

Six years of worth of development work on the Arduino IDE.

jrickert:
where does Raspian get the arduino install?

From a package repository that hasn't been updated in 6 years due to licensing issues with the Arduino IDE's source code.