I have a simple setup with an Arduino UNO SMD R3, a Pololu VNH5019 Dual motor driver and a brushed DC motor. Everything is powered with a 12V power supply connected to the motor driver and send to the Arduino through VIN.
My problem is that I get different behavior with my motor depending on the presence of my USB cable used for programming and debugging.
As long as I am working on my project (USB cable connected) everything is fine. If I unplug the USB cable for testing, the motor has not enough power for moving the load. Everything works again when I plugin the cable again...
Whats the problem here? The 12V at the motor driver are always 12V, the USB connection does not affect this. Grounding? The PWM in this case is at 20%
The code ramps up the motor driver PWM from 0 to 35% after button 1 is pressed. The speed stays there for one second and goes back to 0. Without USB no problem. With USB connected no motor movement. The load seems to be too heavy.