driving dc motor with arduino motor shield rev3

Hello everyone,

I am having trouble driving an rc motor with the motor shield. The specific motor i'm using:

I copied some very simple code from a tutorial on a website, and hooked up the motor to the shield. I am using a 9V battery as a power supply. When I upload the code to the arduino, everything is fine. However, the motor just does nothing. The lamps on the channel are on though. The code i'm using is:

void setup() {

//Setup Channel A
pinMode(12, OUTPUT); //Initiates Motor Channel A pin
pinMode(9, OUTPUT); //Initiates Brake Channel A pin

}

void loop(){

//forward @ full speed
digitalWrite(12, HIGH); //Establishes forward direction of Channel A
digitalWrite(9, LOW); //Disengage the Brake for Channel A
analogWrite(3, 255); //Spins the motor on Channel A at full speed

delay(3000);

digitalWrite(9, HIGH); //Eengage the Brake for Channel A

delay(1000);

//backward @ half speed
digitalWrite(12, LOW); //Establishes backward direction of Channel A
digitalWrite(9, LOW); //Disengage the Brake for Channel A
analogWrite(3, 123); //Spins the motor on Channel A at half speed

delay(3000);

digitalWrite(9, HIGH); //Eengage the Brake for Channel A

delay(1000);

}

I've included some pictures of my setup. I really don't know why it's not working, so I'm hoping you might be able to help me.

Thanks in advance,

Mees

The battery is too weak for that powerful motor and so is the motor driver. It's a 12V motor that will take at least 2A to start up, probably more. A 9V battery cannot deliver more than about 250mA and even if it could the motor driver cannot support more than 1.2A and drops around 4V so 9V in means only 5V to the 12V motor.

Basically none of your components are compatible.

Steve

Also in English "universal motor" has a very specific meaning and this is not a universal motor at all.

slipstick:
It's a 12V motor that will take at least 2A to start up, probably more.

8.56Amp@12volt stall, according to the datasheet on that page.

The L298 is an inefficient dinosaur.
It might sort off work if you use a battery pack made from 6-8 rechargeable AA batteries.
But you need a much better motor driver and battery to use that motor to it's full potential.
Leo..