I'm using two dc motors and a servo. The moment i add the line "myservo.attach(servoPin); // attaches the servo on pin 2 to the servo object" to the sketch only one motor turns. Can somone tell me what I'm doing wrong. The whole sketch is in the attachment.
Hi,
Can you post a link to the servo library you are using and can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?
What are you using as a power supply for the motors and servo?