For the last few weeks I have been trying to get my cnc shield with arduino and stepper motors working, but I’ve had no luck sadly.
I’m using grbl with the universal gcode sender. I’m just trying to get one motor working. The problem is when I tell the motor to go forward with the jog control. At the first click it may go forward, then at the second click backwards etc. This video shows the prolem more clearly: https://youtube.com/shorts/A25_cwJE-5A
I have tried using different stepper motors and drivers(same model) but that doesn’t make a difference.
I have also tried sending test code to the arduino, but then the stepper motor doesn’t move at all.
I am using a 30v power supply connected to an arduino uno with an cnc shield v3, a4988 stepper drivers and a 2A bipolar stepper motor.
The controlers have heatzinks and they aren’t getting that hot during my tests. No the aren’t specified to deliver two amps, but if they didn’t provide enough amps, wouldn’t the motor then not move, now they move, only in that weird way I described.
This usually happens due to incorrect wiring or GRBL settings. Check that the stepper motor coils are wired correctly in pairs, the DIR pin isn’t loose, and the driver microstepping/jumper settings are correct. Also verify the $3 direction invert setting in GRBL and ensure the A4988 driver current (Vref) is set properly.
I checked the motor coil wiring, and it seems weird. First on the stepper motor: The first and third wires are connected, and the second and fourth. But on the stepper driver it says that the coils should be 1b 1a 2a 2b. Then in the manual for the cnc shield it says that the coils should be wired B2 B1 A1 A2. Is this wrong and how should I correct it?