so my motor shield uses pin 10 to control right motor and i want to connect a servo so i cant use pin 10 and the shield connects directly to my arduino is there any way of changing that pin ?
Not my area of expertise, but can't you configure a different pin for the servo?
PS
I have suggested that your thread will be moved to "project guidance"; "installation and troubleshooting" is not for problems with your project
I just looked at the Servo sweep example and it uses pin 9.
void setup() {
myservo.attach(9); // attaches the servo on pin 9 to the servo object
}
And the comment in the section below (same example) seems to indicate that you can use most pins / any pin for the servo
#include <Servo.h>
Servo myservo; // create servo object to control a servo
// twelve servo objects can be created on most boards