How control xy stepper motor without GRBL ?

Hi
I manage to laser engrave any simple shape (circle, square...) using old DVD stepper motor Arduino UNO and A4988 driver.

the goal is that this engraver is standalone no need any sender (PC+GRBL or SDCARD)

just engrave any simple shape :slight_smile:

thanks for your suggestions.

The Arduino will need to store the list of moves. You could store data for several pre-determined moves in PROGMEM. But that would require uploading a new program if you need to change the data. If the data is on an SD Card you could either updtate the cared using a PC or by sending data to the Arduino from a PC.

You can certainly write your own program to control stepper motors.

If this does not answer your question or does not make sense post the code you use to make a simple square and explain your requirement in more detail.
And please use the code button </> so your code looks like this and is easy to copy to a text editor

Also please tell us the data format you plan to use to define each shape.

…R
Stepper Motor Basics
Simple Stepper Code

Thank you for reply
do you know how many steps are in DVD stepper motor ?

dalishare:
do you know how many steps are in DVD stepper motor ?

I have no idea.

Write a program to step slowly and post the count to the Serial Monitor as each step is made and watch what happens.

...R