Loading...
Logo
Processing Forum
So, I'm working on a project using Processing running on a Raspberry Pi with an Arduino attached to that. So far, by following these tutorials:
http://scruss.com/blog/2012/08/12/controlling-an-arduino-from-raspberry-pi-using-processing/
http://cagewebdev.com/index.php/raspberry-pi-running-processing-on-your-raspi/
I've gotten Processing to run on my Pi (so as hell, but that's okay. The Pi allows for more mobile flexibility (as in the arduino isn't as chained to my laptop. not cell phone / tablet mobile) so it's worth it).

So i've gotten a couple programs to run (all of the java issues needed to be ironed out) such as a simple "Hello World" and one that sends a tweet. But I can't seem to get anything that utilizes Serial, such as
Copy code
  1. println(Serial.list());

In the first link, in those instructions, it says:

5. In the Processing folder, remove or rename modes/java/libraries/serial/library/linux32/librxtxSerial.so; it’s an x86 binary, and will fail



Which I did. And for your reference, I have included
Copy code
  1. import processing.serial.*;

but when i run any of the Serial aspects of Processing, nothing happens. For example, if I run
Copy code
  1. println(Serial.list());
  2. println("hello everybody");

"hello everybody" will print on the screen, but the Serial.list() is ignored. No errors. Just ignored. I think that this is why I'm having issues getting my Arduino to be part of the equations since my program uses Serial communication between Processing and the board.

Any tips/tricks/help would be great. I'm fairly new to Linux and even newer to Pi, so my apologies if this is a lame-noob question. But thanks in advance all the same.

Shields

Replies(3)

@#$%!
So after #$%& with this Pi + Processing + Arduino. I rebooted the Pi and relaunched Processing and, wouldn't you know it, the Serial communication works.

Goes to show that the ole basic "turn it off and back on" should be one of the first things to try.

Oh well, lesson learned.
Hi, how did you iron out the Java issues? 

Could you post what errors you got and how you solved them? 
For the Java I just followed along with these 2 tutorials:
http://scruss.com/blog/2012/08/12/controlling-an-arduino-from-raspberry-pi-using-processing/
http://cagewebdev.com/index.php/raspberry-pi-running-processing-on-your-raspi/

I found the first one to be a little more helpful than then second (i only followed it just for the Java portion), but both are good. As for the errors, there was a long list of red errors at the bottom of the screen. I can't remember all of it to tell you exactly what it all said. But the gist of the issue was the Processing wasn't finding the Arduino on the Pi. The same thing happens if the program runs with out the Arduino plugged in.

So for my issue, merely resetting the Pi solved the issue.

Hope this helps