Author
Topic: Servo control? (Read 2889 times)

Hey guys, im back, and more confused than before. I still dont understand how to do servo control, Ive read the tutorials, and looked at the source code, but Im not good enough with c to be able to understand what does what. Can anyone help me?

Ok, a servo pulse has a high time and a low time, totalling 20 miliseconds. The high time duration controlls the servo horn position. A 1 ms high time will make the horn go to 0 degrees (left), a 1.5 ms high time will make it go to 90 degrees (middle) and a 2 ms high time will make it go to 180 degrees (right). The low time will make the difference to the 20 ms period. In practice, we just set the high time for all servos and wait for about 15-20 ms at the end of the main loop. A servo modified for continuous rotation will rotate one way for a 1 ms pulse and the other way for a 2 ms pulse. A 1.5 ms pulse should make it stop.