Don't ad-block us - support your favorite websites. We have safe, unobstrusive, robotics related ads that you actually want to see - see here for more.
0 Members and 1 Guest are viewing this topic.
Then when I uploaded the hex code (for modification purposes) and it would spin to a specific position, but that position is not the center of it's rotation.
while(1) { wheel_left(30);//modify number here until it centers delay_ms(20); }
Does it matter what the delay cycle is after the pulse sent to the servo?
Is there a way to correlate the delay time cycles to ms?
And why not just use the PWM channel to control the servo instead?
But most people find themselves using more servos than there are PWM channels available.
This is assuming 1.5 centers the servo. Then in this case using a delay of 35 is the closest to centering that you can achieve without PWM.
Programming is definitely my Achilles' heel as of now, but if you have a PWM program written I would love to see it.