No connection to Arduino
in
Integration and Hardware
•
1 year ago
Hello, I'm starting to work with Arduino and Processing using serial communication. To do this I copied the sample code on Arduino reference page, when I do a Arduino.list () shows me the port is connected my Arduino, correctly, but when I run all the code, I get an error...
This is the code frome the page...
import processing.serial.*; import cc.arduino.*; Arduino arduino; int ledPin = 13; void setup() { //println(Arduino.list()); arduino = new Arduino(this, Arduino.list()[0], 57600); arduino.pinMode(ledPin, Arduino.OUTPUT); } void draw() { arduino.digitalWrite(ledPin, Arduino.HIGH); delay(1000); arduino.digitalWrite(ledPin, Arduino.LOW); delay(1000); }
And this is the error...
RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyACM0
I'm working on Ubuntu 12.04.
any idea could help me :D
1