// code to determine the direction of the motors //+ve of left to pin 6;-ve of left to pin 3 //+ve of right to pin 11,-ve of right to pin 14 int left=9;//pin 9 of arduino to pin 7 of driver int leftrev=8;//pin 8 of arduino to pin 2 of driver int right=10;//pin 10 of arduino to pin 10 of driver int rightrev=7;//pin 7 of arduino to pin 15 of driver void setup() { int i; //configuring the pinmodes for(i>6;i<11;i++){ //if u do not like the letter i or dont want to use a loop pinMode(i,OUTPUT); //erase the entire setup portion and uncomment the following:::::> //pinMode(left,OUTPUT); //pinMode(leftrev,OUTPUT); //pinMode(right,OUTPUT); //pinMode(rightrev,OUTPUT); } } void loop() { digitalWrite(left,LOW); digitalWrite(leftrev,HIGH); digitalWrite(right,HIGH); digitalWrite(rightrev,LOW); }