![]() |
How do the servos work?
our team was wondering how the servo works
i searched and cant find the threads... thing we need is we want to turn the servo backwards after the servo makes full rotation our program in Turing doesnt seem to work either... |
Re: How do the servos work?
Quote:
|
Re: How do the servos work?
Quote:
So can the servos actually be made to move backward, if so what type of signal or the code should you use. As far as what i have researched and what you just said about their limit of 180 degrees matching, and the only way to modify would to be to take it apart and modify it internally ?? right.. your help is appreciated, this is my first year on the competition so do forgive me if these are newbie questions thanks |
Re: How do the servos work?
Quote:
|
Re: How do the servos work?
Quote:
So how would i make it come back???? we tried to output 0 but it doesn't come back any ideas??? |
Re: How do the servos work?
127 is the center, not 0. 0-126 is one direction, and 128-254 is the other direction from the center.
|
Re: How do the servos work?
essentially, when you output 1, you told the servo to rotate almost as far as it can in one direction (almost, because the minimum is 0, but there's little difference). thus, outputting 0 wouldn't make it come back, only turn a fraction more in the direction it already was.
dead center would be outputting 127. try that. likewise, to make it turn in fully the other direction, output something towards the upper end of the range, such as 254. |
Re: How do the servos work?
are the servos in digital or analogue?
|
Re: How do the servos work?
Well, considering that they vary from 0-255, they are considered analog. But, a more useful answer might be proposed if you explain more about what you want to know... (e.g. why does it matter?)
|
Re: How do the servos work?
You might want to think of it this way, output the data to the servo just like you do with a speed controller, ie if you want to center it send 127, full reverse 0 and full foward is 255. however insted of full foward and reverse you would have fully clockwise and fully counter clockwise. As somebody else suggested, map the data from an joystick to the servo output and print the data to your laptop and you will see what we are talking about.
|
Re: How do the servos work?
Quote:
|
Re: How do the servos work?
Ah, whoops. I was talking about the input signal, not how it worked...
|
Re: How do the servos work?
I have a tangent problem to this that I need a solution too.
I have the Servo directly connected to the PWM1 jack on the robot. I map the PWM to a variable and set the variable to 0. I tell the program to change the servo position (increment) when the trigger is held. Nothing happens. We are printf ' ingf the PWM value and the code seems to be working but the servo never moves. Help! Thanks, Phil |
Re: How do the servos work?
Most servos wont make a full rotation. Servos are used to make small turns like on a model airplane. They are use to raise and lower the wing pich.
|
Re: How do the servos work?
A few common debugging procedures:
1) Ensure that the triple cables from the Servo are in the proper direction 2) Test it with a different servo. Then try a different pin. 3) Post the code here. |
| All times are GMT -5. The time now is 17:29. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi