The following setup was used:
https://osoyoo.com/2017/04/07/arduino-uno-cnc-shield-v3-0-a4988/
Install arduino IDE
- Download zip file from https://github.com/grbl/grbl.
- Install library by either:
a) Opening grbl folder (in extracted zip) in the zip library method for Arduino IDE 1.
b) Manually installing using grbl folder for Arduino IDE 2. - Since we're not going to be using the z-axis, we need to change a few lines in the config.h file in the grbl folder (which is in the arduino libraries folder):
Find these lines in config.h file:and replace with:#define HOMING_CYCLE_0 (1<<Z_AXIS) // REQUIRED: First move ... #define HOMING_CYCLE_1 ((1<<X_AXIS)|(1<<Y_AXIS)) // OPTIONAL: Then move ...#define HOMING_CYCLE_0 ((1<<X_AXIS)|(1<<Y_AXIS)) // OPTIONAL: Then move ... - Upload grblUpload (found in Arduino IDE: file>Examples>grbl>grblUpload) to Arduino
Use some grbl controller to calibrate xy-table, I recommend Universal Gcode Sender, since it has a setup wizard.
- Open ugs-platform.
- connect to arduino using correct baud-rate (usually 115200)
- access setup wizard in Machine>Setup Wizard
- Follow setup wizard
NOTE: (for linux-users)
If the interface is glitching, run the ugsplatform file (in bin folder) from the terminal using:
LIBGL_ALWAYS_SOFTWARE=true ./ugsplatform