I am doing a robotic project right now. I am using a servo to pan the robot head. I know how to do it by giving pulseout command to the servo but how can I make the pan servo move slowly.
Can somebody show me some code example.
Thanks.
Printable View
I am doing a robotic project right now. I am using a servo to pan the robot head. I know how to do it by giving pulseout command to the servo but how can I make the pan servo move slowly.
Can somebody show me some code example.
Thanks.
One way my be to send pulses in a double loop, the outer to delay the inner which is doing the actual job.
Ioannis
Hmm not really up on servos, but, how about sending your pulses out sequentially in a counter loop so if you want to send it say 600 send it a for next operation of 50 + 50 . . .
You might add a little pause in each increment too . . .
Servos need the train pulses constantly, say about every 20ms.
Ioannis
I got it. Thanks for reply.