analogWrite(en1Pin,70); //speed A analogWrite(en2Pin,100); //speed B digitalWrite(in1Pin,LOW); //1-2 run at speed A digitalWrite(in2Pin,HIGH); delay(1500); digitalWrite(in1Pin,LOW); //1-2 stop digitalWrite(in2Pin,LOW); digitalWrite(in3Pin,HIGH); //3-4 run at speed B digitalWrite(in4Pin,LOW); delay(5000); digitalWrite(in3Pin,LOW); //3-4 stop digitalWrite(in4Pin,LOW); digitalWrite(in2Pin,LOW); //1-2 run at speed A digitalWrite(in1Pin,HIGH); delay(1500); digitalWrite(in1Pin,LOW); //1-2 stop digitalWrite(in2Pin,LOW);I have annotated it to help me understand what I think you are trying to doCan you confirm that the names you have given the pins correspond to the actual inputs on the H bridges ?

Please do not send me PMs asking for help. Post in the forum then everyone will benefit from seeing the questions and answers.

What H bridge are you using ? Can you provide a link to what you are using ?If it has ENA and ENB inputs then it is almost certainly 2 H bridges, even if they are in 1 chip, possibly an L293 or similar.

Please do not send me PMs asking for help. Post in the forum then everyone will benefit from seeing the questions and answers.

I buyed it, here's a link:http://my.safaribooksonline.com/getfile?item=ODMvZDlpY3B0L20vZ2VzOTg4Mzk5NjI1c2FzcjdhaWxjZW90dC9odHBvdG9tcmxjdW1zeW9yb2Vyc2VhZ2VwZTNlaWx5Z3JpYW55bXMzNjcwMTIuZ24ubGFtanBnEvrything the same, except that I connected the ENB to Pin6 and added a second motor.