User avatar
raspberrypiguy1
Posts: 379
Joined: Sun Sep 02, 2012 7:01 pm

Arduino IDE problems....

Sat Sep 15, 2012 8:41 pm

I recently purchased an Arduino Nano to use with my Raspberry Pi... I installed the official Arduino IDE with the command: 'sudo apt-get install arduino'. And all appears to be fine until you run it!

You get the classic Arduino interface BUT WITH NOTHING ELSE.... It has no options to compile or to Debug or even to change the board that you are using! It is simply nothing more than a text editor! I though that the Raspberry Pi could be a fully established Arduino host PC... Was I wrong???

Thanks for all your help! :) :) :)

The Raspberry Pi Guy
Matt, The Raspberry Pi Guy YouTube channel, author of Learn Robotics with Raspberry Pi, available now: http://mybook.to/raspirobots, Computer Science & Electronics Undergraduate at The University of Edinburgh

User avatar
joan
Posts: 16159
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: Arduino IDE problems....

Sat Sep 15, 2012 9:32 pm

Odd.

There should be a big tick on the screen just under the File text. That should verify (compile). Next to it should be a right arrow to upload the program to the Arduino.

User avatar
raspberrypiguy1
Posts: 379
Joined: Sun Sep 02, 2012 7:01 pm

Re: Arduino IDE problems....

Sun Sep 16, 2012 8:31 am

I know.... What command did you use to install it?

Thanks
The Raspberry Pi Guy
:)
Matt, The Raspberry Pi Guy YouTube channel, author of Learn Robotics with Raspberry Pi, available now: http://mybook.to/raspirobots, Computer Science & Electronics Undergraduate at The University of Edinburgh

User avatar
raspberrypiguy1
Posts: 379
Joined: Sun Sep 02, 2012 7:01 pm

Re: Arduino IDE problems....

Sun Sep 16, 2012 10:11 am

Sadly I can't upload a picture but all it shows is a box you can input text into.... The name of the sketch... And a small drop down menu that does not give you any options at all apart from new tab.... What is going on???

Thanks
The Raspberry Pi Guy
Matt, The Raspberry Pi Guy YouTube channel, author of Learn Robotics with Raspberry Pi, available now: http://mybook.to/raspirobots, Computer Science & Electronics Undergraduate at The University of Edinburgh

User avatar
Bigcat123
Posts: 230
Joined: Thu Aug 23, 2012 2:41 pm

Re: Arduino IDE problems....

Mon Sep 17, 2012 6:18 pm

I had the same problem... Anybody got a solution? Please say yes!!!

Thanks
Just a beginner sharing his experiences on his way to geek nirvana...

User avatar
joan
Posts: 16159
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: Arduino IDE problems....

Mon Sep 17, 2012 7:33 pm

raspberrypiguy1 wrote:I know.... What command did you use to install it?

Thanks
The Raspberry Pi Guy
:)
Same as you, but on the laptop I normally use. I haven't tried installing the arduino package on the Pi.

User avatar
Bigcat123
Posts: 230
Joined: Thu Aug 23, 2012 2:41 pm

Re: Arduino IDE problems....

Mon Sep 17, 2012 8:06 pm

So then... How do I link an Arduino and a Pi?

Thanks for your help!
Just a beginner sharing his experiences on his way to geek nirvana...

JamieA
Posts: 5
Joined: Tue Sep 18, 2012 11:38 am

Re: Arduino IDE problems....

Tue Sep 18, 2012 11:43 am

I' a complete RPi / Linux newbie but had success last night with this:
http://raspberrypi.homelabs.org.uk/rasp ... ment-tool/

With the IDE running on, and the Arduino UNO connected to, the Pi I got Arduino talking to the Pi in Python:
http://www.doctormonk.com/2012/04/raspb ... duino.html

Hope that helps.

Cheers,
Jamie

Kurt
Posts: 5
Joined: Sat Apr 14, 2012 1:30 pm

Re: Arduino IDE problems....

Sat Nov 17, 2012 11:52 am

My main problem that after installing the Arduino SW, set "Select serial" in the tool menu are grey. I have a UNO connected and should therefore use the /dev/ttyACM0 port. Even if i edit the pref...txt file it cant open serial communication.
If I do a "lsusb" I get this:

pi@raspberrypi /dev $ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 005: ID 2341:0001 Arduino SA Uno (CDC ACM)
pi@raspberrypi /dev $

This means that my Arduino UNO are connected. I have a schetch on my Arduino that output temperature on the "Serial USB" port.

But why is my serial port selection not here?

andrewjawitz
Posts: 4
Joined: Sun Aug 26, 2012 2:15 pm

Re: Arduino IDE problems....

Wed Nov 21, 2012 5:54 pm

Same issue here... Running Adafruit's Occidentalis v0.2 distro (based on the August 16th Wheezy image). I've been following the instructions from the current issue of MagPi (http://issuu.com/themagpi/docs/the_mag ... de=window) which mentions that power supply issues are often to blame for Arduino communication problems via USB. I'm using a Powered Belkin 4 USB Hub and have a 12V Power supply hooked up to the Uno as well.
lsusb returns almost the exact same thing as the output posted by Kurt, so I know the Uno is connected.
Within the IDE I can select the Uno or any other board from the tools menu and it will display "Arduino Uno on COM1" in the lower right hand corner of the window and will change depending on which board I have selected. But when I try to open a serial port it is greyed out on the dropdown menu, and the text in the lower right of the window continues to say "Arduino Uno (or other selection) on COM1" no matter where its plugged in...

gordon77
Posts: 7137
Joined: Sun Aug 05, 2012 3:12 pm

Re: Arduino IDE problems....

Thu Nov 22, 2012 7:13 pm

I haven't got to programming the Arduino Uno from the RPi (I use another PC) but I do use an Uno connected to the RPi and send commands to it to control my telescope

Opening the link

ser = serial.Serial('/dev/ttyACM0',9600)

using ls /dev/tty* you should see /dev/ttyACM0

example of how I send data to the Uno from the RPi

ser.write(bytes(Vcorrt.encode('ascii')))
t1 = time.time()
while time.time() < t1 +0.5:
t2 = time.time()
ser.write(bytes(Hcorrt.encode('ascii')))

It seems to need a time delay between sending the 2 strings, example of Vcorrt string ':Mgn1000'

cavu
Posts: 7
Joined: Sat Nov 24, 2012 3:38 pm

Re: Arduino IDE problems....

Sat Nov 24, 2012 3:42 pm

I had the same problem. i did an update
sudo apt-get update
and all ran fine as far as the IDE is concerned.
all the issues with the other posts get solved, it compiles properly, though slowly.
......my problem now is that it crashes or just stops when i try to upload the sketch to the arduino uno.
so has anyone been able to fix that.

siddiqov
Posts: 1
Joined: Thu Oct 03, 2013 6:41 pm

Re: Arduino IDE problems....

Thu Oct 03, 2013 6:48 pm

Hay guys, I was stuck by the issue under discussion here since 3 days. My arduino UNO was connected with RPi using power hub, but the Arduino IDE was showing consistently "serial port" under tool menu grayed. Then I got a blog that solved my problem, read the following lines
Troubleshooting USB and the grayed out Serial Port

When I got the Arduino 1.0.1 update, “Serial Port” was grayed out in the tools menu. Running arduino as root ( sudo ./arduino) resolved the issue, but it’s not an acceptable solution. In my case, serial port was grayed out because my user didn’t have permission to read and write to the device.
" I added my user to the dialout group with the command sudo usermod -a -G dialout mark . Usually, that would have fixed it but serial port was still grayed out. Changing the permissions on /dev/ttyACM0 to world readable and writeable fixed the grayed out serial port. I ran sudo chmod a+rw /dev/ttyACM0 and the serial port menu worked again. I’ve noticed that running programs that send lots of data over USB can cause issues with the arduino programming software, making it give errors while uploading code. Holding down the reset button fixed my upload and USB errors in most cases".
the link is given below
http://blog.markloiseau.com/2012/05/ins ... no-ubuntu/

Return to “Automation, sensing and robotics”