I'm trying to control servos from Processing and I'm wondering whether it's possible use analogWrite in the Arduino library (in conjunction with Firmata), as opposed to sending data over the Serial port to Arduino for use with the built-in Servo library. Are there benefits to either?
Is there an easy way to set up a depth threshold with the Kinect? For example, how might I read the depths of all points between 2 and 4 meters away from the Kinect?
When I grab raw depth data from the Kinect I'm given an int[] of size 307200 (640x480). I'm trying to figure out the correct order of these values (i.e., whether the first 480 values correspond to the first "width" pixel, or whether the first 640 values correspond to the first "height" pixel). Any ideas?
I have a very simple script in Arduino that reads user input and writes it back to the serial monitor. I'm trying to read the value in Processing (using port.readString()). However, it seems like half the time the value is printed out in the Processing console and the other half it's printed out in Arduino. Is there any way to capture the full, uninterrupted value of the input in Processing? My code is below for reference. Note that right now I'm just printing out the character 'a' for the sake of debugging.