Go to Post I think that in general people should worry more about what they are doing, and less about what others are doing. That goes for a lot more than FIRST. - pfreivald [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 24-03-2011, 18:03
Charlie675 Charlie675 is offline
Registered User
FRC #0675
 
Join Date: Jan 2010
Location: Sebastopol, CA
Posts: 7
Charlie675 is an unknown quantity at this point
Servo motor isn't working

We are trying to get a servo to work and it won't even move. We've tried different servos and different PWM ports, but nothing happens. We are currently using this piece of code to test the servo:
Code:
Servo servo(4,8);
float servoRange = servo.GetMaxAngle() - servo.GetMinAngle();
for (float angle = servo.GetMinAngle(); angle < servo.GetMaxAngle(); angle += servoRange / 10.0) { 
	servo.SetAngle(angle); // set servo to angle 
	printf("%f\n",servo.GetAngle());
	Wait(1.0); // wait 1 second 
}
Any suggestions?
  #2   Spotlight this post!  
Unread 24-03-2011, 18:26
Robby Unruh's Avatar
Robby Unruh Robby Unruh is offline
*insert random dial-up tone here*
FRC #3266 (Robots R Us)
Team Role: Coach
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Eaton, OH
Posts: 338
Robby Unruh will become famous soon enough
Re: Servo motor isn't working

.. Is there a jumper attatched?
__________________
[Robots R Us #3266]
2015: Georgia Southern Classic (Winners / Thanks 1319 & 1648!), Queen City
2014: Crossroads, Queen City
2013: Buckeye, Queen City, Crossroads
2012: Buckeye, Queen City

2011: Buckeye
2010: Buckeye
  #3   Spotlight this post!  
Unread 24-03-2011, 18:28
Travis Hoffman's Avatar Unsung FIRST Hero
Travis Hoffman Travis Hoffman is offline
O-H
FRC #0048 (Delphi E.L.I.T.E.)
Team Role: Engineer
 
Join Date: Sep 2001
Rookie Year: 2001
Location: Warren, Ohio USA
Posts: 4,047
Travis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond repute
Re: Servo motor isn't working

Quote:
Originally Posted by Robby Unruh View Post
.. Is there a jumper attatched?
Specifically, the jumper that should be installed on the 2 pins situated right next to your servo's PWM output on the Digital Sidecar?
__________________

Travis Hoffman, Enginerd, FRC Team 48 Delphi E.L.I.T.E.
Encouraging Learning in Technology and Engineering - www.delphielite.com
NEOFRA - Northeast Ohio FIRST Robotics Alliance - www.neofra.com
NEOFRA / Delphi E.L.I.T.E. FLL Regional Partner
  #4   Spotlight this post!  
Unread 24-03-2011, 18:35
Newo95's Avatar
Newo95 Newo95 is offline
Registered User
AKA: Owen
FRC #0540 (Talon 540)
Team Role: Mechanical
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Henrico, VA
Posts: 154
Newo95 is infamous around these partsNewo95 is infamous around these partsNewo95 is infamous around these parts
Re: Servo motor isn't working

Also, how new is the actual pwm wire as these have a tendancy to wear out and can sometimes become unable to conduct.
__________________
--Don't be stupid, it's not smart.

--In conclusion, I conclude that the conclusion was conclusive.
  #5   Spotlight this post!  
Unread 24-03-2011, 23:45
Charlie675 Charlie675 is offline
Registered User
FRC #0675
 
Join Date: Jan 2010
Location: Sebastopol, CA
Posts: 7
Charlie675 is an unknown quantity at this point
Re: Servo motor isn't working

Thanks, we did put the jumper in and we tried a few different servos but I'll keep replacing parts and see if anything works.
  #6   Spotlight this post!  
Unread 25-03-2011, 07:54
Robby Unruh's Avatar
Robby Unruh Robby Unruh is offline
*insert random dial-up tone here*
FRC #3266 (Robots R Us)
Team Role: Coach
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Eaton, OH
Posts: 338
Robby Unruh will become famous soon enough
Re: Servo motor isn't working

Can Servo's be set to floats? I thought it was only doubles.

try this code:
Code:
Servo servo(4,8);
double servoRange = servo.GetMaxAngle() - servo.GetMinAngle();
for (double angle = servo.GetMinAngle(); angle < servo.GetMaxAngle(); angle += servoRange / 10.0) { 
	servo.SetAngle(angle); // set servo to angle 
	printf("%f\n",servo.GetAngle());
	Wait(1.0); // wait 1 second
__________________
[Robots R Us #3266]
2015: Georgia Southern Classic (Winners / Thanks 1319 & 1648!), Queen City
2014: Crossroads, Queen City
2013: Buckeye, Queen City, Crossroads
2012: Buckeye, Queen City

2011: Buckeye
2010: Buckeye

Last edited by Robby Unruh : 25-03-2011 at 07:57.
Closed Thread


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 03:42.

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