Timer for continuous servo motor


I'm trying to set my servo motor to start and stop after running for a set amount of time within an "if-then" statement.

I've searched the internet of other code but have had trouble implementing it into my arduino.

I need only to activate a continuous servo for a set amount of time and turn off afterwards.

If anyone can help me with what code to use to do this I would greatly appreciate it.

We can help you with ‘your’ sketch.

Always show us your ‘current’ compete sketch.
Use CTRL T to format the sketch.
Please use code tags.
Use the </> icon in the posting menu.

[code] Paste sketch here. [/code]


Like @larryd said, write some code.
Have you been able to make the servo run at all? Look at the servo sweep examples.
There is a blinkwithout delay example that shows how to read millis.

Have a look at how millis() is used to manage timing in Several things at a time.