Hi Guys,
I'm having trouble attaching servos to Arduino when using the FirmataStandard library, then controlling them from Processing.
I'm trying to declare the pin mode for 2 and 3 to be servos :
import processing.serial.*;
import cc.arduino.*;
Arduino arduino;
int aPin=0, s1=2,s2=3;
int data;
void setup() {
size(512, 200);
arduino = new Arduino(this, Arduino.list()[2], 57600);
arduino.pinMode(aPin, Arduino.INPUT);
arduino.pinMode(s1, Arduino.SERVO);
arduino.pinMode(s2, Arduino.SERVO);
}
but that only seems to treat them as PWM - constant buzzing and 600mA current draw constantly.
I have Firmata 2.2 installed, and when using the Firmata Test.exe program, my servos behave themselves properly.
Where abouts should I be declaring the pinMode, as i'm obviously doing something wrong!
Thanks in advance!
Fergal