Problem with L298N and motor

hi , i am using L298N with my DC motor

But my motor is not working with driver and motor is runs with connected to battery without L298N . How can i solve this problem :slightly_smiling_face:

I am using 9V battery with arduino Nano.

*Code is given below.

const int ctrl_rightA = A2;
const int ctrl_rightB = A3;

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

pinMode(ctrl_rightA,OUTPUT);
pinMode(ctrl_rightB,OUTPUT);

}

void Run(void){
  //RUN FORWARD
digitalWrite(ctrl_rightA,HIGH);
digitalWrite(ctrl_rightB,LOW);
}

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

Run();
delay(8000);

//STOP
digitalWrite(ctrl_rightA,LOW);
digitalWrite(ctrl_rightB,LOW);
delay(2000);


//riverse
digitalWrite(ctrl_rightA,LOW);
digitalWrite(ctrl_rightB,HIGH);
delay(8000);

}

Show us a good schematic of your circuit.
Show us a good image of your โ€˜actualโ€™ wiring.
Give links to components.

A PP3 is not a good choice for high current loads.
You should use 6 AA batteries.

The L298 is not the best choice for your motor. It is a bipolar device which will have about 1.4V drop across each side for a total of about 2.8V. That voltage drop is burnt up in the bipolar drivers as heat. They have voltage but not capacity. There internal resistance is high and gets higher as it is discharged. I would suggest you find another H-Bridge that uses MOSFET outputs, you will get probably 2.5V or more at the motor. LarryD gave you a good suggestion, it will work better. You might also investigate in a wall wart to power off the line, a lot less money over time.

Thanks for letting us know!

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