Go to Post Afterall, there's a thread for everything and everything in it's thread. - Molten [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 17-02-2011, 09:02
kellermana kellermana is offline
Registered User
FRC #2534
 
Join Date: Jan 2011
Location: Baltimore, MD
Posts: 1
kellermana is an unknown quantity at this point
Programming Servo Motors

We are using a servo with our latch system. Each time to restart the robot, the servo motor flinches abruptly while it resets. Is there a way to prevent this? Thanks from team 2534.
  #2   Spotlight this post!  
Unread 17-02-2011, 09:52
gpetilli gpetilli is offline
Registered User
FRC #1559
 
Join Date: Jan 2009
Location: Victor, NY
Posts: 285
gpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to all
Re: Programming Servo Motors

Assuming you are using the Jaguar speed controller in servo mode, I have seen this happen if it senses an over current condition. Over current can easily happen if you start the servo in the wrong direction and you hit a hard stop. I highly recommend adding limit switches to help prevent this condition (and prevent damage to your hardware).

We found hardware debug using the BDC-Comm-92 PC application extremely useful. Lots of information at the bottom as to the condition of the servo. Also, we found that some of the KOP motors just have too much power for use as servos. There is a parameter on the second tab for max percent voltage. We found setting the max voltage to 60% (7.2V) help to dampen the servo loop.
  #3   Spotlight this post!  
Unread 17-02-2011, 10:15
Jon Stratis's Avatar
Jon Stratis Jon Stratis is offline
Mentor, LRI, MN RPC
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,816
Jon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond repute
Re: Programming Servo Motors

kellermana - we noticed the same thing last year. We used a servo to power a latch holding down our spring-loaded lifting mechanism, and it would always flinch when we enabled the robot. No idea why.

To get around it, we used a combination of things. First, we increased the amount of travel needed to open the latch - the servo had to turn further before it would release the mechanism. Next, we added some rubber bands to help hold the latch closed. It wasn't anything the servo couldn't overpower, but it was enough so the flinching didn't have much of an affect.

It would be awesome if someone on here knew how to fix it so the servo didn't do this... We aren't using any yet this year (but likely will with the minibot deployment), but know it will come up again in the future.
  #4   Spotlight this post!  
Unread 17-02-2011, 10:18
DavidGitz's Avatar
DavidGitz DavidGitz is offline
Lead Technical Advisor
FRC #1208 (MeTool Brigade)
Team Role: Coach
 
Join Date: Dec 2006
Rookie Year: 1996
Location: O'Fallon, IL
Posts: 341
DavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud of
Send a message via AIM to DavidGitz Send a message via MSN to DavidGitz Send a message via Yahoo to DavidGitz
Re: Programming Servo Motors

Quote:
Originally Posted by gpetilli View Post
Assuming you are using the Jaguar speed controller in servo mode, I have seen this happen if it senses an over current condition. Over current can easily happen if you start the servo in the wrong direction and you hit a hard stop. I highly recommend adding limit switches to help prevent this condition (and prevent damage to your hardware).

We found hardware debug using the BDC-Comm-92 PC application extremely useful. Lots of information at the bottom as to the condition of the servo. Also, we found that some of the KOP motors just have too much power for use as servos. There is a parameter on the second tab for max percent voltage. We found setting the max voltage to 60% (7.2V) help to dampen the servo loop.
I believe they are referring to a servo as in the servo's that are provided in the KOP, not the more general term for a servo which encompasses a motor with a feedback system.

Just to clarify, make sure you are NOT using a servo with a speed controller.

The reason that this happens is a servo is a closed-loop feedback system, such that when a properly formatted PWM signal is sent to the servo along with the correct power connections it will attempt to move to that command. In other words, the reason it is moving when you restart the robot (and I assume you have to wait for it have "Robot Code" and then Enable the Robot before it moves) is that it receives a command of "0".

If it is moving immediately after powering the robot, this is another issue. I have worked with servo's with this system and haven't seen this happen before being able to Enable the robot, no matter the initial position of the servo. They should not move until you Enable the robot.
__________________

Last edited by DavidGitz : 17-02-2011 at 10:18. Reason: correction
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 23:39.

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