Do you think my program will work?

UKHeliBob:

I don't want the car to go too fast. An analog pin would be better you think?

Not an analogue pin, a PWM pin, and I hope that you are not driving the motor straight from the Arduino, or are you ?

Just spotted this

    for(pos = 0; pos < 180; pos += 1)  

{                                  
     myservo.write(pos);            
     delay(150);

}


Work out how long it is going to take the servo to move through 180 degrees. Is nearly 27 seconds acceptable ?

Alright, the pin A5 is good?
And no, I'm using a 7V battery with a voltage regulator and a transistor. Don't worry :smiley:

Well, I was going to leave it that way and when I will do the tests with my car, change the values until I find something good... But if you a have a suggestion ,I'll obvioulsy take it! But yes... 150 ms is way too quick... I'll change it to 27 seconds...