View Single Post
  #2   Spotlight this post!  
Unread 27-04-2015, 22:03
JNajarian JNajarian is offline
Alumni
FRC #0696
Team Role: College Student
 
Join Date: Nov 2012
Rookie Year: 2012
Location: United States
Posts: 6
JNajarian will become famous soon enough
Re: Victor 888 by Arduino Uno R3

Try something like this just to test if your electrical setup works.
Code:
#include <Servo.h>
Servo victor1;
void setup(){
    victor1.attach(2);
}
void loop(){
    victor1.write(180);//0 being full backwards 90 being no motion and 180 being full forwards
}
Last time I used a Victor with an Arduino was about two years ago, I don't have the equipment to test this code right now, but this is essentially what I used to run it.