Problem with Arduino UNO, Processing and Firmata
in
Integration and Hardware
•
2 years ago
The following Processing code used with StandardFirmata_2_2_for_0_3 loaded on the UNO (Arduino 022) will not light the LED I have between pin 11 and GND.
When I run the processing code, LED stops blinking, the available ports are printed and the RX LED lights every 2 seconds.
If I load a sketch to accomplish the same thing directly to the UNO, the LED will light.
I would appreciate help with making this work thru Firmata.
import processing.serial.*;
import cc.arduino.*;
Arduino arduino;
void setup() {
println(Arduino.list());
arduino = new Arduino(this, Arduino.list()[1], 115200);
arduino.pinMode(11, Arduino.OUTPUT);
}
void draw()
{
arduino.digitalWrite(11, Arduino.HIGH);
delay(1000);
arduino.digitalWrite(11, Arduino.LOW);
delay(1000);
}
When I run the processing code, LED stops blinking, the available ports are printed and the RX LED lights every 2 seconds.
If I load a sketch to accomplish the same thing directly to the UNO, the LED will light.
I would appreciate help with making this work thru Firmata.
import processing.serial.*;
import cc.arduino.*;
Arduino arduino;
void setup() {
println(Arduino.list());
arduino = new Arduino(this, Arduino.list()[1], 115200);
arduino.pinMode(11, Arduino.OUTPUT);
}
void draw()
{
arduino.digitalWrite(11, Arduino.HIGH);
delay(1000);
arduino.digitalWrite(11, Arduino.LOW);
delay(1000);
}
2