Hi everyone I am new to arduino programming and i wanted to ask some questions. I would like to build a 2 axis cnc machine. I found this easy circuit that uses 2 easydriver and arduino uno.
The problem that i have is that i don't know how to write the program to control the stepper motors whit the pc.
Is there a piece of code out there that i could use for my project?
You haven't given any indication of how much background knowledge of CNC you have.
Are you familiar with an Arduino CNC program called GRBL (Google will find it).
Do you know how to produce G Code that defines the movements that the tool tip should follow?
And, by the way, neither of those diagrams shows that the stepper motors need their own power supply. The Arduino can't supply enough power to drive electric motors.
Robin2:
You haven't given any indication of how much background knowledge of CNC you have.
Are you familiar with an Arduino CNC program called GRBL (Google will find it).
Do you know how to produce G Code that defines the movements that the tool tip should follow?
And, by the way, neither of those diagrams shows that the stepper motors need their own power supply. The Arduino can't supply enough power to drive electric motors.
...R
Ok so I have done some more research and I think I'm getting to understand know.
From what I understand I need to connect the servos according to the schematic I posted above but I also have to connect an external 24V power supply to the unconnected pins on the easydriver.
After I do that I have to connect my Arduino to the pc and run xloader to flash the grbl hex file to the Arduino.
After that is completed I should run the Universal GcodeSender that sends gcode commands to the Arduino.
Is that correct? Tnx a lot for any help in advance
What you say sounds about right but I have no experience of Grbl or the G Code sender so I can't say that it will work. And, of course the G Code itself matters.
You would probably be better looking for a forum about CNC or Grbl.