Control two nema 17 motors with an IDE sketch uploaded to an Arduino Uno

I want to control two nema 17 motors with an IDE sketch uploaded to an Arduino Uno.
I want a continuous simple loop .

At the moment I can control two nema 17 motors using an Arduino uno & a cnc shield and laser grbl which is on my computer.
I want to eliminate the computer hookup.
The two motors run along a V slot bar track on Gantry carts using a pully and a rubber belt.
I have searched through motor control topics without luck . Any insights or links would be very appreciated.
Thank you

Please read and use the topic How to get the best out of this forum - Using Arduino / Introductory Tutorials - Arduino Forum

Nema xx is a mechanical specification telling nothing about the eletrical facts.

What is "laser grbl"? Datasheet link please. Eliminate the "laser grbl"? It makes no sense.

What ever you end up with, it will eliminate the use of your existing system. Is that ok?

This means no Arduino or IDE.

I've deleted the argumentative stuff.

Keep it polite please.

I thank you.

Why would that matter ?
Once the sketch has been uploaded it can run standalone controlled by inputs

As you note, they are needed for programming.

Then the Arduino must be programmed to perform whatever "command and control" functions normally done by the host computer, as well as directly control the motors.

That is in principle possible, but the Uno doesn't have much memory.

OK, here is a little document that explains how to bypass the laserGRBL control board on your PC. and still keep the CNC shield for multiple motors. We can go strieght the the Arduino IDE and upload a sketch to the Arduino. Arduino CNC shield control Stepper motor with DRV8825 The next step is figuring out the code

The point is to get the Arduino loaded with the sketch to run the motors while disconnected from the computer.
The LaserGRBL program interface is dependent on the computer. It provides a live feed to the arduino/cnc shield. You are always wired to the computer.
This doesn't matter if you are laser-engraving or 3D Printing. But it is impractical if you want to set up the motors to carrier out simple repetitive movements.

Yes , thanks. I eventually arrived at uploading a test sketch. Now I have to write more specific sketches which I am looking for examples of.........

If I understand the question: All the Arduino needs after the program is uploaded is power (and external I/O if used). The board (as you know) arrives with a Blink sketch. You can use a full board, but consider building a stand-alone ATMega328P in a ZIF socket. That way, you can program one ATmega328P on the bench, then swap it for the "live" ATmega328P.

Thanks for the link , I just took a look and it looks very helpful.

At the moment all I need to do is to write my IDE sketches.
Apparently, I can also write G-CODE on the IDE which I am looking into now.
But C++ on IDE looks like it will work well for what I want to do.

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