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.
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 . . .
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
You might add a little pause in each increment too . . .
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Bookmarks