Hi, I've created a jellyfish from piano parts. Now I want to have it moving.
I want the movement to be smooth and variable; the servo shall move a wheel only few degrees in both directions and at various speed.
I've done tests with regular servo and manage to get the movement I'm looking for but can't control its speed of course.
I'm trying with a continuous servo wich I understand 0-180 determine speed running and direction.
How can I ask the servo to run only few degrees?
Is it a timing code I need so the servo only moved some millis before stop and delay then moves back the same? I can't find or don't understand how.
Thanks helping a beginer in rush!
You can't control the degree of a continuous rotation servo , but only normal servos .
If you want to have continuous rotation and great control , Stepper motors are the best , but choosing the right stepper and the right driver AND controlling the stepper is really hard .
Hi Seibpascot
I've done tests with regular servo and manage to get the movement I'm looking for but can't control its speed of course
Can you post the code you have tried with the servo? You should be able to control the speed of movement by moving the servo a small amount, waiting for x time, moving the servo some more, waiting for x time, etc. If you vary x, you can vary the speed.
Regards
Ray
Seibpascot:
Hi, I've created a jellyfish from piano parts. Now I want to have it moving.
That's the most intriguing opening line for a posting I've seen in ages!
You can control the speed of a servo:
http://arduino.cc/en/pmwiki.php?n=Tutorial/Sweep
In fact improve on that example by using serov.writeMicroseconds () to get
finer granularity in servo positioning.