Control Servo Without Delay

Hello,

Im having trouble with servos. Is it possible to program a servo to do a function like the sweep sketch… without using delay, perhaps millis instead. How could you do this?

Thank you for your help!

This is the sweep sketch: http://arduino.cc/en/Tutorial/sweep This is the blink without delay: http://arduino.cc/en/Tutorial/BlinkWithoutDelay

If you don't want to use delays, you have to use millis() or an interrupt to get 10ms or 15ms timing. At every timing 'tick' you can calculate what the servo should be. Someone made a VarSpeedServo, I don't know if that is useful for you: http://forum.arduino.cc/index.php?topic=61586.0

Some info that might be of interest.

http://www.bajdi.com/controlling-a-servo-without-the-delay-function/