(urgent) how to move a servo

Thread Starter

nipkap

Joined Mar 27, 2009
12
Please help me (urgent)
i have bought Gws servos (GWS S777CG 6BB) from ELE model .
but i have no idea how to work these things.
i even don't know how to move them, or what is required to mive them.
and i am working on a project to build a humanoid, so please help me guys, as soon as possible.
 

jpanhalt

Joined Jan 18, 2008
11,087
I was hoping Bill Marsden, our guru on 555's, would have replied by now. See this thread: http://forum.allaboutcircuits.com/showthread.php?t=21032

It is post #2. You need a base frequency of 50 to 120 Hz and a duty cycle of 1 to 2 ms. Ideally, model servos center on a pulse width of 1.5 ms repeated every 20 ms (50Hz); however, every servo I have dealt with is quite tolerant of the PWM being off frequency. It is the pulse width that is important.

John
 

Thread Starter

nipkap

Joined Mar 27, 2009
12
actually they did'nt send any datasheet thats why we are having so much of trouble.
i have also given this type of pulses to them ...
initially i used astable multivibrator(555) , and now m using mu=c for this ....
but still not getting the expected output ....
intially when we gave series of pulses to it using 555 ckt. the motr was moving to all 180 degree ...and was comming back to -180 degrees .

now am giving serial pulses one after the another from 1 to 2ms it moving to one dircn. and stops the same happens wahen i give 1-2 and 2-1 ms.

guys m very much frustrated with this thing ...
plz help me. is there any probability that these servos follows any other rule .
 

hgmjr

Joined Jan 28, 2005
9,027
actually they did'nt send any datasheet thats why we are having so much of trouble.
i have also given this type of pulses to them ...
initially i used astable multivibrator(555) , and now m using mu=c for this ....
but still not getting the expected output ....
intially when we gave series of pulses to it using 555 ckt. the motr was moving to all 180 degree ...and was comming back to -180 degrees .

now am giving serial pulses one after the another from 1 to 2ms it moving to one dircn. and stops the same happens wahen i give 1-2 and 2-1 ms.

guys m very much frustrated with this thing ...
plz help me. is there any probability that these servos follows any other rule .
Here is just one of a number of links to servo tutorials on the Internet.

Provided it is a genuine servo which I believe it is, then it will certainly obey the standard set of servo control signals.

hgmjr
 

jpanhalt

Joined Jan 18, 2008
11,087
To me, it is not exactly clear what you are doing or what you have tried. For example, a "series of pulses" tells me very little. Similarly, 1-2 and 2-1 ms doesn't mean much. Were the signals to which you refer 1.2 ms and 2.1 ms? What was the repeat rate? You mention it went + and - 180°. That is unusual for a model servo. I have never seen one that did that. What voltage are you using?

Could you post your circuit and/or code? John
 

Thread Starter

nipkap

Joined Mar 27, 2009
12
sorry can't post the circuit due to some problems, but we used 555 and diode to build the astable circuit to produce small +ve pulse and bigger _ve pulses. initially when we gave this o/p to the servo instead of moving to the desired position it mived to and fro.

now, when we are using the microconroller it moves for 180 degree in anticlockwise and stops and starts humming...

we gave 1) 1.2ms with 18ms space
2) 1.5 and same
3 1.75 ms and same
4) incresing series of pulses from 1.0 to 2 ms with spacing of 18 ms
5)increasing to 2ms and then decreasing to 1ms with 18ms spacing

please help ..
 

Thread Starter

nipkap

Joined Mar 27, 2009
12
i am using micro controller and the wave i have checked properly ... should i use any servo controller... and which one should i use for GWS S777CG 6BB
 

jpanhalt

Joined Jan 18, 2008
11,087
Something doesn't make sense. You claim the wave is "proper" and presumably the servo is OK. Thus it should work, but it doesn't.

We are trying to help you. An extra set of eyes to review what you think is proper may help, but we can't get you to post your circuit, describe how you measured the wave, or provide screen prints of anything. So, we are left to just guessing, which is unlikely to get to a workable solution.

As for a servo controller, there are many examples on the Internet. Just search on RC servo controller. Some are MCU based, but most are based on the 555 timer.

John
 

Thread Starter

nipkap

Joined Mar 27, 2009
12
this is one of the programs we used .

org 0000h
LJMP main
ORG 0030h
main:mov TMOD,#01H
back: mov TL0,#0ccH
mov TH0,#0fch
mov p2,#0ffH
acall delay
mov TL0,#0ffH
mov TH0,#0b7H
mov p2,#00H
acall delay
sjmp back
org 0100h
delay: setb TR0
again: jnb TF0,again
clr TR0
clr TF0
ret
end
 

thatoneguy

Joined Feb 19, 2009
6,359
For the code above:
What frequency was the clock?
What microcontroller?
Was it running in debug mode?
What did the code posted above do? What was it intended to do?
Can you post images of the waveform you are generating? Include time/div and v/div.

Otherwise, we are simply running in circles, and have no more usable information than we did at the start of the thread.
 

Thread Starter

nipkap

Joined Mar 27, 2009
12
ok sir, i'll post the things u need ...
tell me one thing if i won't give the required pulses then what will be the servo's movement .....is it that it will move to a particular point and will be stuck to that point...

waitin for your reply
 

Thread Starter

nipkap

Joined Mar 27, 2009
12
freq. is : 11.0592
mu-c is : phillips 89v51rd2
and one cycle of the wave is of :- .889 +ve
and 19.99 -ve
output voltage is 5 volts from the mu-c.

hope this helps ...
and will post the waveform soon
 

beenthere

Joined Apr 20, 2004
15,819
One other quite significant information that is lacking is the hardware between the uC and the servo. No amount of programming is going to make up for a bad or incorrect interface.
 

jpanhalt

Joined Jan 18, 2008
11,087
freq. is : 11.0592
mu-c is : phillips 89v51rd2
and one cycle of the wave is of :- .889 +ve
and 19.99 -ve
output voltage is 5 volts from the mu-c.

hope this helps ...
and will post the waveform soon
1) 11 Hz is way too slow. That could be part of the jitter problem.

2) I don't understand the data you give for the wave. Are you saying the wave goes negative?


tell me one thing if i won't give the required pulses then what will be the servo's movement .....is it that it will move to a particular point and will be stuck to that point...
Don't know what you mean by that. As I interpret it, in all likelihood the servo will pin, particularly with a 91 mS pulse (1/11 Hz).

Obvious question: Do you have a common ground for the servo and pulse generator?

John
 

thatoneguy

Joined Feb 19, 2009
6,359
The servo isn't receiving the right pulses, both frequency and polarity.

They need to be 5-10V pulses, 1-2ms in duration (square wave pulse), with 15-20mS "Dead Time" in between pulses. 90mS dead time usually makes the servo either old position, or return to center, as it assumes radio contact is lost. (airplane servos)

Just to be sure, you have the supply, 6V typical, on the red and black wires with black being -/ground, and the signal pulse feeding the 3rd (often middle) wire with reference to the black wire (ground), right?

The Power lines need to be connected to power All The Time, and only signal on the 3rd wire makes it move. It sounds like you are applying signal to the power wire.
 
Top