I have an inquiry regarding the l298n motor driver.
I encountered a problem while using it. It's like this: every time i attach the wires of my dc motors into the board's "motor A" and "motor B" connectors, my dc motors wont move. I re-checked my code to see if there were errors, but there were no errors both in syntax and in logic.
I also noticed, that when i test the voltages at the connectors, there is no voltage output. But every time i remove my dc motors from the connectors and test the voltages at the connectors, there is voltage output. I am confused and i dont really know how to solve this problem. I've searched as much as possibly could in the net, but to no avail.
I am hoping you guys could help me. i would really appreciate it.
Below is a diagram of my circuit. As you can see i plan to power the arduino and motor driver separately, since i am using bigger motors.
Best Answer
You need to make a connection from arduino ground to the driver board ground and supply 5v from arduino board to driver's board 5v input.