Go Down

Topic: DC motor isn't rotating  (Read 296 times) previous topic - next topic

Dcj

Mar 08, 2019, 10:20 pm Last Edit: Mar 08, 2019, 10:25 pm by Dcj
Hello,


I am trying to make a DC motor turn in a direction for a few seconds and then rotate it back to the other direction. I am using a L298n, a Arduino UNO and 4 x 1,5V batteries. It works when I am using a really small DC motor, but when I use a motor from a drill, the motor stops spinning after a small "step" and goes back. It is also making a lot of noise. The drill was using 12V batteries. My question is, is the problem the power supply?

This is my code;


void setup()
{
pinMode(7, OUTPUT);
pinMode(8, OUTPUT);
pinMode(9, OUTPUT);
}

void loop()
{
digitalWrite(8, HIGH);
digitalWrite(7, LOW);
analogWrite(9, 100);
delay(2000);
digitalWrite(8, LOW);
digitalWrite(7, HIGH);
analogWrite(9, 100);
delay(2000);

}


Thank you in advance

Northof49

What is the amperage draw of that drill motor?  I suspect it is a lot higher than the 2 amps that L298N motor controller can supply.  It might be 20 times that.

slipstick

Almost certainly. The L298 will drop at least 2V so you're giving 6-7V to a 12V motor and it probably also wants more current than the L298 can supply.

OTOH before anything else you could try giving it full power (max 255 instead of only 100).

Steve

MarkT

#3
Mar 25, 2019, 01:13 am Last Edit: Mar 25, 2019, 01:14 am by MarkT
Drilll motors are rated at 100's of watts, several orders of magnitude more than small toy motors.

The L298 is completely out of its depth with such a motor, as are 1.5V cells
For power requirements think more like 18V, 10A (perhaps upto 50A stall).

Cordless drills use LiPo batteries because they have to to get enough power.
[ I will NOT respond to personal messages, I WILL delete them, use the forum please ]

Go Up