Hi,
I have two Nema 17 motors, each connected to a L298N driver, they are all powered by an 300 W ATX. Both work just fine when the arduino is not connected to my PC and is powered by the ATX, but as soon as the USB conection is made one of the steppers stops working (the other one keeps working just fine).
Both L298N drivers are connected to the ATX power supply, and both motors work perfectly fine as long as the Arduino is not plugged to the USB, as soon as the USB is plugged one stepper stops working (always the same one). The situation doesn't change if I change the pins each motor is connected to. I am increadibly confused as to why it stops.
When the arduino is not powered from USB port, how is the arduino powered, from the ATX? The arduino has an auctioneered power setup for the board. When the arduino is powered from the USB port, that should take some preference over the barrel jack. Could be just lose wires or similar. You might check the voltages various points under the different conditions and see if there are any differences.
Yes, the Arduino is connected to the ATX by the barrel jack when not connected to the USB. Although the problem presist when the USB and the barrel jack are both connected. I checked the voltage readings on the A+ A- B+ and B- pins on the driver and the give readings only when the USB is not conneted, else, the LED flash (I suppose it is getting the signals) but the readings on the output pins is 0.