Arduino Victor 884

I'm trying to control an articulated arm with the arduino, which is eventually going to be controlled by a computer applet coded in processing. We'll see how that goes.

Anyway, I'm using a victor 884 from IFI to control a window motor. The victor is receiving power from a large 12V battery that we get in the FIRST robotics kit every year. The arduino is hooked up to the victor with a standard pwm cable.

I have tried using the analogWrite(pin, OUTPUT) function to control the motor, but it only turns the motor at a set speed in one direction. I figured that the motor would not turn if set to 127, and 0 and 255 would be the outer ends, but this isn't the case. What function would I use to set this? The servo function?

Any help would be appreciated.

I'm using a victor hooked up to the motor and a 12V battery. The victor is connected to the arduino by a PWM cable. What I'm saying is, how do I output values using PWM? I know servos use PWM cables, so would using myservo.write(x) be the same as sending the number x through PWM?

Is this what you have?:- http://www.ifirobotics.com/victor-884-speed-controller-robots.shtml#Notes

There is no information I can see that tells you what voltage the the PWM signal has to be. It may be you have to provide a 12V pwm signal. If so then put it through a transistor.

Have you connected the ground line from the 12V supply to the ground of the arduino?

What pin are you using, this function works on pins 3, 5, 6, 9, 10, and 11.

im pretty sure its a 5 volt signal as the CRIO controllers we used on our FIRST kit were 5 volt outputs. my understanding is that a signal of a little more than 0 degrees was one direction, 90 was off, and any more was the other direction. pretty sure it uses servo signals and not a variable pwm.