Motor not rotating when connected to the l298n motor driver

I've decided to use the l298n motot driver in order to control the direoction of motor rotation, so I had the following wires connected this way:

9V power supply to the 12V+ and its second wire to ground, I also had the ground connected with arduino ground as some sources suggested. I had out1 and out2 connected to the motor and in1 and in2 to the digital pins on my arduino.

I ysed the most basic code there is to determine if it works (in1, HIGH. In2, LOW basically) but it didn't rotate at all. The weird thing is that after unplugging one of the wires (either in1 or in2, don't remember exactly, but it didn't happen when unplugging the other one of these) and touching the big black heat sink in the middle of the driver it started rotating, I don't even know how. Could it be that it's just a faulty hardware problem?

Please post a wiring diagram, no Fritzing.
Show that 9 volt power supply.

1 Like

The schematic is needed as Railroader asked. If that 9V power supply is a battery that is your problem, they do not drive motors very well or long.

Post a link to the data sheet or product page for the motor. The L298 is an ancient and terribly inefficient dinosaur, suitable only for small, low current motors.

A 9 V smoke alarm battery will rarely work for anything else.

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