CNC Shield V3 Stepper motor - Arduino IDE

Hey All

I have gotten to a stage now where i would like to be able to configure my stepper motors through IDE and not GRBL.

Can some please explain to me how to control Stepper motors through a shield in IDE and how to control the functions. any code I find online to see if I can get anything out of it compiles but nothing happens.

I want to be able to control how far the stepper motor moves and how fast it moves ( I guess that's everything the motor can do) i just need X and Y to be a pair and Y and A to be a pair and mirror each others movement.

thanks in advance. i have probably missed key information, please let me know if further clarification is needed.

Hi, I suggest to use Wokwi simulation to learn how to do that.
The AccelStepper library can do a lot, but every step is done in the loop(). Other code can cause hiccups.

I don't know who made this, but this shows how to use the AccelStepper library: https://wokwi.com/projects/330760606733828691

Log in to Wokwi (it is free) to save your project, so you can find it under "Projects".
You can use Ctrl+C and Ctrl+V to make more copies of the stepper motor and other parts.

The step and dir pins for the stepper drivers are on Uno pins. Uou can find the pin mspping on the net.

The stepper enable (pin 8) is tied high on the board, disabling the steppers by default. Set pin 8 to pinMode OUTPUT and write it to LOW to enable the stepper drivers. Or jumper the EN header by the reset switch.

I like the MobaTools stepper library. It is simpler and easier to learn and use than AccelStepper. The MobaTools library is available for installation via the IDE library manager.

What's wrong with grbl? You can configure grbl and move steppers using the serial monitor.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.