I have a usb boarduino v2 from adafruit and am trying to use it with firmata and processing.
I am having trouble using my boarduino with the arduino firmata library - every time it needs to communicate something to processing, no reading is shown. I have uploaded the standard_firmata that is included with arduino but consistently see analog readings of zero. The boarduino works fine - when I use arduino's serial monitor readings are displayed.
I've tried the old firmata, the uno firmata, and the standard firmata - none work. The code works properly on my uno. Here's what I'm using in processing:
import processing.serial.*;
import cc.arduino.*;
Arduino arduino;
void setup() {
println(Arduino.list());
arduino = new Arduino(this, Arduino.list()[0], 115200);
}
void draw() {
println(arduino.analogRead(0));
}
Any advice on how to get readings?