I am using an Arduino mega 2560 rev3 board together with an Arduino CNC shield and stepper motor driver A4988 to run (for now) only one stepper motor (Nema 17 39.5 mm-1.5A). I want to use them to first get some experience and later use them to build up a 3D printer machine. But, when I connect everything, the stepper motor runs only when I touch the STEP pin of the driver. I have spent a lot of time figuring out what the issue is and how to solve it, but I still couldn’t succeed. Would appreciate it a lot if someone could help me solve this issue.
More about the issue. What I find quite strange is that the stepper motor spins even when no code is running. So, just connect the Arduino mega board to the laptop, connect the power supply of (19 V) to the CNC shield, insert the A4988 driver and touch the STEP pin → stepper motor spins.
Some more data in case needed. I want to use Python programming to control the stepper motor.
Thanks in advance
In the first image, the pin that I’m pointing to is the STEP pin.