Maker Pro
Maker Pro

SERVO ANGLE

burassu

Jul 1, 2011
36
Joined
Jul 1, 2011
Messages
36
I am using an 18.342 Mhz crystal with an 8051, and I need to drive a servo to a specified angle . How can I calculate the duty cycle which needs to be produced to achieve the specified angle ??

PLS HELP :confused:

TNKS
 
Last edited:

KMoffett

Jan 21, 2009
723
Joined
Jan 21, 2009
Messages
723
I'm assuming you are talking about R/C servos.
A positive pulse is outputted to the servo input about every 20mS. The position of the servo shaft/arm is proportional to the width of these pulse. The standard pulse width varies from 1mS for a full CCW position to 2mS for a full CW position. So a 1.5mS pulse would move the arm to the mid-arc position. There are small variations in angle vs pulse width from servo to servo, but that's the standard.
Google RC servo timing.

Ken
 
Last edited:
Top