const int motorA = 3;
const int motorB = 11;
const int brakeA = 9;
const int brakeB = 8;
const int dirA = 12;
const int dirB = 13;

void setup() {
pinMode(dirA, OUTPUT); //dir in A
pinMode(brakeA, OUTPUT); //brakes for A

pinMode(dirB, OUTPUT); //dir in B
pinMode(brakeB, OUTPUT); //brakes for B
}

void loop() {

digitalWrite(dirA, HIGH); // forward
digitalWrite(brakeA, LOW); //brakes off
analogWrite(motorA, 111);

delay(1500);

analogWrite(motorA, 0);
digitalWrite(brakeA, HIGH);

delay(1000);

digitalWrite(brakeB, LOW);
digitalWrite(dirB, LOW);
analogWrite(motorB, 255);

delay(1000);

analogWrite(motorB, 0);
digitalWrite(brakeB, HIGH);


digitalWrite(brakeA, LOW);
digitalWrite(dirA, LOW);
analogWrite(motorA, 111);

delay(1500);

digitalWrite(brakeA, HIGH);
digitalWrite(brakeB, HIGH);

delay(300000);
}