Why doesn't the L298N motor driver modul work?

Hello, i have a little 12v dc motor from a drilling machine, an L298N motor driver modul, 9v battery and an arduino uno.
I tried various basic example projects,. but none of it seems like working. Lets talk about this one for now: https://www.instructables.com/id/L298-DC-Motor-Driver-DemosTutorial/. I wire everything as on the site, start the arduino code, connect the battery, and then the motor driver’s onboard led lights up, but the motor dont want to rotate, just takes a tiny little step everytime it has to do something (the tiny little step is almost none, but i can feel a little vibration if i hold the motor in my hand)
I don’t think the wiring would be the problem. The motor works fine too if i attach it directly to the 9v battery. I have allready triedd an other arduino uno, and other sites’ basic example programs too.

What could be the problem? How can i tell if i f***ed something up accidentally on the motor driver modul while wiring?

Here is the code:
//Setup Motor Pins

#define in1 3 //We are not using PWM for this demo.
#define in2 4
// in1 and in2 are the pins on the L298 drive board,
// 3 and 4 are the pins on the Arduino board.

void setup() {
//set the pins for output
pinMode(in1, OUTPUT);
pinMode(in2, OUTPUT);
//set the pins low - this will keep the motor from moving.
digitalWrite(in1, LOW);
digitalWrite(in2, LOW);
}

void loop() {

//set the pins low - this will keep the motor from moving.
digitalWrite(in1, LOW);
digitalWrite(in2, LOW);

//Spin Motor in one direction
digitalWrite(in1, HIGH);
digitalWrite(in2, LOW);
delay(10000); //let it spin for about 10 seconds

//Stop the motor
digitalWrite(in1, LOW);
digitalWrite(in2, LOW);

//Spin Motor in the other direction
digitalWrite(in1, LOW);
digitalWrite(in2, HIGH);
delay(1000); //let it spin for about 10 seconds

}

That "little 12V motor" looks like an RS550 which typically runs at currents way higher than either that weedy little battery or L298 driver can deliver and then connecting it all through a (low current) breadboard makes it all worse. The L298 will drop several volts so you're likely only getting around 5-6V at the motor.

Basically everything is mismatched. If you want to run the motor you need a higher power driver and a better battery.

Steve

Hi,
Welcome to the forum.

Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html . Then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.

Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?

What is your 9V battery?

Can you post a picture of your project please?
Do you have a DMM?

Thanks… Tom… :slight_smile: