Loading

Report as inappropriate

Hello,

i have the Arduino Board "Improved Version UNO R3 ATMEGA328P Board Compatible with Arduino" with "KEYES L293D Motor Control Shield for Arduino - Blue" and this smal code

[code]

include Wire.h // I have removed only for here the #, < and > while it is not a MD Document!
include Adafruit_MotorShield.h

//Adafruit_MotorShield AFMS=Adafruit_MotorShield();
Adafruit_MotorShield AFMS=Adafruit_MotorShield();

Adafruit_DCMotor MotorL = AFMS.getMotor(1);
Adafruit_DCMotor
MotorR = AFMS.getMotor(2);

void setup() {
// put your setup code here, to run once:

Serial.begin(9600); // set up Serial library at 9600 bps
Serial.println("Adafruit Motorshield v2 - DC Motor with ultrasonic sensor!");

AFMS.begin(); // create with the default frequency 1.6KHz

MotorL->setSpeed(255);
MotorR->setSpeed(255);
MotorL->run(FORWARD);
MotorR->run(FORWARD);
// turn on motor
MotorL->run(RELEASE);
MotorR->run(RELEASE);

}

void loop() {
// put your main code here, to run repeatedly:

MotorL->run(FORWARD);
MotorR->run(FORWARD);
delay(1000);
Serial.println("loop");
}
[/code]

But i have on all Motor Pins 0.0V on the Power Pins 7V
The car is not moving!
What is my Problem???
Please help me!

Many, many Thanks
Oli