Trouble with Serial when running Processing on Raspberry Pi [RESOLVED]
in
Integration and Hardware
•
5 months ago
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
In the first link, in those instructions, it says:
Which I did. And for your reference, I have included
but when i run any of the Serial aspects of Processing, nothing happens. For example, if I run
"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
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
- println(Serial.list());
In the first link, in those instructions, it says:
5. In the Processing folder, remove or renamemodes/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
- import processing.serial.*;
but when i run any of the Serial aspects of Processing, nothing happens. For example, if I run
- println(Serial.list());
- 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
1