Go to Post FIRST inspired me to become a pain in the patootie or something. :) - Madison [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 10:48 AM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi