i'm using a single servo attached to pin 10, 5v, and ground.
it keeps doing that.
Quotei'm using a single servo attached to pin 10, 5v, and ground.Wrong. You need a separate power supply for the servo.Quoteit keeps doing that.Of course it does. That's what loop does.If all that the Arduino is ever supposed to do is move the servo twice, move the code from loop() to setup().
Move the code in loop() to setup() and it will only be executed once.-br
Wrong. You need a separate power supply for the servo.
Hi warboyzzzz,Its doing exactly what you programmed it to do As billroy says, you have to move the code out of the 'loop' function. Loop repeats forever...Pat.