Stopping the robot

To stop the robot from moving, you can provide a HIGH signal or a LOW signal to the pins. In the code to make the robot move backward, add the following command to stop the motors for three seconds: 

digitalWrite(0,HIGH);           //PIN O & 2 will STOP the Left Motor
digitalWrite(2,HIGH);
digitalWrite(3,HIGH); //PIN 3 & 4 will STOP the Right Motor
digitalWrite(4,HIGH);
delay(3000);