I am having trouble running motor with L298N motor driver. To keep things simplified, I removed everything from my project and now only have a motor (specs not known, it's the one that comes with Arduino 4WD car kit project), 12V battery, and L298N driver. There is no Arduino board involved.
Motor works fine when connected directly to battery.
Then I connect battery to 12V pin
And battery's GND to L298N GND
ENA pins have jumper, ENB as well
5V pin is connected to EN1
It makes Out1 high (around 10v), and Out2 low, as expected
Then I connect motor to Out1 and Out2. Both become high. That's the problem.
I also tried with EN2 pin, same problem
I also tried with EN3 and EN4 pins separately, in those cases both Out3 and Out4 become high simultaneously when motor is connected to them, but only one of them high if motor is disconnected.
I have searched on many forums, but couldn't find anyone facing this issue, or a pointer.
Here is the close up. You can see ENA has a jumper, ENB too. IN1 is connected to 5V. In this configuration, OUT1 is high (getting 11+ v), and OUT2 low, which is perfect.
But as soon as I connect motor to OUT1 and OUT2, both become high, so motor doesn't work. If I connect motor directly to the battery pack, it runs.
With ENA_installed/IN1=5V/IN2=0V and motors connected, measure the voltage on the 3 terminal power terminal strip.
What do the 12v and 5v terminals read for voltage ?
If an "In" pin is not connected, the input logic sees it as HIGH, if IN1 is HIGH and IN2 is not connected and ENA is high (the EN pins are pulled HIGH by jumpers) the motor will brake (both outputs HIGH or LOW). https://www.st.com/resource/en/datasheet/l298.pdf