Go Down

Topic: Trying to use my Raspberry to run an Arduino..... (Read 200 times) previous topic - next topic

jrickert

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.

https://www.hackster.io/techno_z/program-your-arduino-from-your-raspberry-pi-3407d4

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


Robin2

#1
Apr 17, 2019, 09:19 am Last Edit: Apr 17, 2019, 09:20 am by Robin2
So I would like to have my Raspberry pi talk to my Arduino.
This simple Python - Arduino demo may help.

Quote
When I went to upload to the arduino I got an error.
What error? Please post the error message.

...R
Two or three hours spent thinking and reading documentation solves most programming problems.

pert

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.

is something missing?
Six years of worth of development work on the Arduino IDE.

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.

Go Up