picpicpikapika WROTE:Sorry, I dun really understand what do you mean, the speed you mentioned is the lenght of the delay or what? So, is my concept correct, now if I want to make my servo to turn clockwise and counter clockwise I just apply the minimum and maximum angle pwm pulse right? And the distance of the movement is depends on the lenght of the delay right?
What my code do is Timer interrupt counter.The interrupt is every 51.2us.
Time 1 cycle = 390*51.2us = ~20ms
Ton(min) = 10*51.2us = 0.5ms, Ton(max) = 50*51.2us = 2.5ms
So, what I mean, minimum position change is 51.us. Or if state in degree, 180 degree/(50-10) = 4.5 degree.