View Single Post
  #1   Spotlight this post!  
Unread 09-24-2015, 12:00 AM
AnonymousPencil AnonymousPencil is offline
Registered User
FRC #1660
 
Join Date: Jan 2009
Location: New York
Posts: 5
AnonymousPencil is an unknown quantity at this point
Arduino UNO to CIM Motors via Victor Sp

I have my connections pretty much as it says in the title. I am having issues getting my motors to turn competently. I am using the Servo library and I've been fiddling around with the template program but I cannot seem to get my motor to stop turning in one direction. Theres no while loop,

Servo rightVictor;// create servo object to control a servo
int rightVictorPin = 10; // twelve servo objects can be created on most boards

void setup()
{
rightVictor.attach(rightVictorPin);
pinMode (rightVictorPin, OUTPUT);
analogWrite (rightVictorPin, 192);
}

void loop ()
{


rightVictor.writeMicroseconds(1000);

delay (15);


}

Why wont the motor stop?
Reply With Quote