jaredpi:
If you have a potentiometer, use the knob example sketch, and move the pot from one end of its range to the other.
I tried that and then tested it with the same sketch and the controller would only work when the potentiometer was only slightly off dead-center. Anymore and it would not work.
You calibrated it that way? What I would do is, instead of using a pot to control it, write a sketch like this:
#include <Servo.h>
Servo myvictor;
int pos = 0;
void setup()
{
myvictor.attach(9);
for(pos = 0; pos < 180; pos += 1) {
myvictor.write(pos);
delay(50);
}
myvictor.write(90);
pinMode(13, OUTPUT);
}
int ledstate = HIGH;
void loop() {
digitalWrite(13, ledstate);
ledstate = !ledstate;
delay(250);
}
This code moves the "servo" all the way from 0 to 180 then returns it to center, then starts blinking the onboard led to show that it's done. To calibrate the victor, upload this sketch, hold down the calibration button, then turn the arduino on and wait for the onboard led to start blinking, then release the calibration button. Then you should be able to run a sketch where a servo value of 0 corresponds to full negative; 180 is full positive; and 90 is off.