Thread: servo problem
View Single Post
  #6   Spotlight this post!  
Unread 17-02-2013, 23:57
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: servo problem

Quote:
Originally Posted by akash992391 View Post
I expect servo to move 0 to 180 and come back to I position
Basically I want that servo to push frisbee to the spinning tires... So yeah
That partly answers a second one of my three questions. I'd still like to know when you want the servo to move from 0 to 180, and when you want it to return to 0. But the most important thing you haven't said yet is what the servo does do. When you describe what it does, try not to leave out any details. Some of them might be important clues to what's causing your problem.

Note that your code won't ever get the servo to 180, because it sets the servo to either 0 or 130 based on Joystick 3's trigger button. The servo will be at 130 while the trigger is not being pressed. It will move from 130 to 0 when the trigger is pressed, and remain at 0 as long as the trigger is held. It will move from 130 to 0 when the trigger is released.

Pushing a frisbee more than an inch or two is a heck of a job to ask a servo to perform. It's likely to just sit there and buzz trying to do something that takes more torque than it is able to apply.