pro3000:
So to turn left I should writemyservo.write(179);?And to turn right I should write
myservo.write(-179);Should put a delay after those commands and set
myservo.write(0);to go straight than?And the motor is a 6V motor from a car my teacher bought in a supermarket... It's a RC car. It has two wires.
To turn the servo (and I assume the steering) one way
myservo.write(170);
and the other way
myservo.write(0);
and straight between the two
myservo.write(90);
What is there between the Arduino and the car ?