how to move 5 Servos smoth and different from each other, for bloody dummys :)

Hi, i m an Artists and i have no clue about coding... really almost bloody nothing...

i try to get 5 servos going with a arduino uno

i tryed cupple of different codes from useres and the basic code from the arduino library... its alright but not satisfing

The code from Piratebrain ( http://forum.arduino.cc/index.php?topic=184377.0 ) seems pretty cool...

the 2 servos moving different from each other... and their movemend is smooth... (allthoe the 2 Servos sometimes stop and i dont know why)

I wanted to adabt this code from Piratebrain to my 5 servo thing, but i didnt mange it...
could u help me witch that ?.

pls help me
thx for any

i tryed cupple of different codes

But you didn't post them, or adequately explain how they were deficient.

Ok sorry for my bad writings... i m not used to comunicate in forums...

I would like to have this code from Pirate brain (i attached the .ino) work for 5 Servos

His code is working fine for 2 Servos an i m not able to rewrite his code for 5 Servos and it would be great if someone could do that for me.

The other codes i tryed didn“t have the smooth Start and End movment thats the reason why i want to have his code

i hope i did make a better point then last time and somebothy can help me please

best.
dave

SERVO_SHIMMY_V83.ino (12.9 KB)

I have got no idea what that code is, or what it is supposed to do, and I'm not about to build something to find out.
Why don't you clue us in?

hmm... i will just copy and paste the description from Pirate Brain in here.... becouse i am afraid every word i write will create a bigger missunderstanding

PirateBrain wrote:

I wrote a smooth sine wave transition for servos between any two positions with some added features.
Recent edit: fixed cross contamination delay problem

Features:

-Multiple servos can run simultaneously, each with different start speed, end speed, start position, end position and delay time to start values.
-the option of different start and end speeds allows the on-the-fly FOR loop stretch of the sine wave to simulate a more natural movement
-all position computation is done at the (1700 unit) resolution of the servo so there is basically little to no twitch.
-you can declare the desired movement positions of the servo in microseconds (position value)
-servo variables and movement function is modular so more servos can be added (I usually run a similar code with 6 servos simultaneous movement)
Limitations:
-all servo movement function is only 1 direction for each sine wave movement of servo, code waits for all servos to complete their singular motion before being able to go to next programmed move function -I am working on a continuous multi-count wave based on arrays..

does this help ?

does this help ?

No, that just repeats the gibberish at the top of the file you attached in reply #2.

What is it supposed to do?

it moves 2 servo arms with a smooth start movement and a smooth end movement

here is a video the guy made i think there its best to see what the code is doing

does this help?