Hello Guys,
I remember i had used Servo last 2 year back with PIC ADC to Servo with some forum member code.
I have this Servo with me
hxxp://robokits.co.in/motors/standard-dual-ball-bearing-servo
data sheet
I want to know how it work, there are 3 pulses of different width , it it will rotate at small angle the data sheet show 90 and 60 degree of movement if i want to move 20/30 degree
How to move it?
Then I really think you should consider gardening or some other simpler hobby, because electronics is clearly not for you. This is not some advanced mathemathics, this is third grade stuff.
How many micro seconds in one milli second.... 1000... You need to specify micro seconds for accuracy!!
If there are 180 degrees spread over 1 milli second you need to divide it by 180 to get the size ( in microseconds ) of each degree!!!!
Therefore 1000 uS / 180 degree = 5.5micro seconds..... 45 degrees will be 45 * 5.5 micro seconds... That equals 250 micro seconds... Then you have to add in the 1000 micro seconds that represent 0 degrees.. Voila 1250 micro seconds...
How many micro seconds in one milli second.... 1000... You need to specify micro seconds for accuracy!!
If there are 180 degrees spread over 1 milli second you need to divide it by 180 to get the size ( in microseconds ) of each degree!!!!
Therefore 1000 uS / 180 degree = 5.5micro seconds..... 45 degrees will be 45 * 5.5 micro seconds... That equals 250 micro seconds... Then you have to add in the 1000 micro seconds that represent 0 degrees.. Voila 1250 micro seconds...
How many micro seconds in one milli second.... 1000... You need to specify micro seconds for accuracy!!
If there are 180 degrees spread over 1 milli second you need to divide it by 180 to get the size ( in microseconds ) of each degree!!!!
Therefore 1000 uS / 180 degree = 5.5micro seconds..... 45 degrees will be 45 * 5.5 micro seconds... That equals 250 micro seconds... Then you have to add in the 1000 micro seconds that represent 0 degrees.. Voila 1250 micro seconds..
In a cheap servo.... You'll be lucky to get ± 2°..
The other concern is there will be some noise.... Realistically you would need to use a hardware CCP to generate the PWM.... BUT!! there has to be an off time... most people use a 20hz pwm