Elegoo v1.1 Smart Car Code Not working

I'm using the code from folders I've gotten online from the official Elegoo website and the motors are not working. I'm not sure what could possibly be wrong with the code or the robot itself. The lights on the arduino are on and the shield seems fine. It could also potentially be the soldering its for a school project and my partner isn't the best at it lol
Here is the code:
//www.elegoo.com
//2016.09.12

int ENA=10; 
int IN1=9;
int IN2=8;
int ENB=5; 
int IN3=7;
int IN4=6;
void setup()
{
  pinMode(IN1,OUTPUT);
  pinMode(IN2,OUTPUT);
  pinMode(IN3,OUTPUT);
  pinMode(IN4,OUTPUT);
  pinMode(ENA,OUTPUT);
  pinMode(ENB,OUTPUT);
  digitalWrite(ENA,HIGH);  
  digitalWrite(ENB,HIGH);      

}
void loop()
{
  digitalWrite(IN1,LOW);      
  digitalWrite(IN2,HIGH);         // left wheel goes forward
  digitalWrite(IN3,LOW);      
  digitalWrite(IN4,HIGH);         // right wheel goes forward
  delay(500);
  digitalWrite(IN1,LOW);      
  digitalWrite(IN2,LOW);         //left wheel holds still
  digitalWrite(IN3,LOW);      
  digitalWrite(IN4,LOW);         // right wheel holds still
  delay(500);
  digitalWrite(IN1,HIGH);      
  digitalWrite(IN2,LOW);        //left wheel is back up
  digitalWrite(IN3,HIGH);      
  digitalWrite(IN4,LOW);        // right wheel is back up
  delay(500);
  digitalWrite(IN1,LOW);      
  digitalWrite(IN2,LOW);         // left wheel holds still
  digitalWrite(IN3,LOW);      
  digitalWrite(IN4,LOW);         // right wheel holds still
  delay(500);
}

I suggest you read:

and redo your topic.

  1. Turn the battery power OFF.
  2. Upload your motor sketch (above)
  3. Remove all connections to the Arduino.
  4. Connect ONE motor to the Shield.
  5. Connect the battery to the Shield.
  6. Turn the battery power ON.

What do you observe?

Posting an annotated schematic would help us help you. Be sure to include all connections, power, ground and power sources. Also links to technical information on the extra hardware and which Arduino you are using. Your links to take me to printers.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.