Society of Robots - Robot Forum

Mechanics and Construction => Mechanics and Construction => Topic started by: aruna1 on January 13, 2009, 07:01:02 AM

Title: servo angle determining help
Post by: aruna1 on January 13, 2009, 07:01:02 AM
I'm new to this and i have a problem about how servo works
my question is is it possible to get intermediate angles of servo?
example

for a servo:

when inputs 1ms PWM it goes to zero angle
when inputs 1.5ms PWM it goes to 90 angle
when inputs 2ms PWM it goes to 180 angle

my question is is it possible to get angles like 36 degrees of 130 degrees (other than above fixed angles)
if it is possible how to calculate relevent PWM?
thanks

Title: Re: servo angle determining help
Post by: jka on January 13, 2009, 10:19:29 AM
Yes. If the pulse is 1.25, for example, the angle should be 45 etc. You have a span of 1ms from 0 to 180 (2ms - 1ms), so to calculate the required pulse width, do 1+((1/180)*V).
Title: Re: servo angle determining help
Post by: aruna1 on January 13, 2009, 10:22:53 AM
Yes. If the pulse is 1.25, for example, the angle should be 45 etc. You have a span of 1ms from 0 to 180 (2ms - 1ms), so to calculate the required pulse width, do 1+((1/180)*V).
thank you very much :)