### Author Topic: servo angle determining help  (Read 3870 times)

0 Members and 1 Guest are viewing this topic.

#### aruna1  ##### servo angle determining help
« 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

I'm Me

#### jka

• Full Member
•   • Posts: 78 ##### Re: servo angle determining help
« Reply #1 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).
« Last Edit: January 13, 2009, 10:20:24 AM by jka »

#### aruna1  ##### Re: servo angle determining help
« Reply #2 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 I'm Me