My DC motor slows down and stops while using an L298N motor driver with an Arduino Uno
In addition to the other answers posted, you need to connect pin 9 (logic supply voltage) on the L298 to 5V. It's marked as &quot;5V&quot; on your motor driver board. The reason you need this is because there's internal digital logic that sits between the Input1-4 pins and the H bridge power transistors. Without logic supply voltage, it'll act funky.