Hello all, I am currently assembling my first CNC and I'm running into a dead end when trying to get the thing to move. I've tried finding other solutions but nothing else has worked so far. Here's what's happening (or not happening)... The build: Workbee 1000mm x 1000mm 4x DM556 stepper motor drivers 4x NEMA 23 stepper motors Arduino Mega 2560 Rev 3 36v 13.8A power supply GRBL v1.1f Makita router for the spindle The settings: $0 = 10 (Step pulse time, microseconds) $1 = 255 (Step idle delay, milliseconds) $2 = 0 (Step pulse invert, mask) $3 = 3 (Step direction invert, mask) $4 = 1 (Invert step enable pin, boolean) $5 = 0 (Invert limit pins, boolean) $6 = 0 (Invert probe pin, boolean) $10 = 1 (Status report options, mask) $11 = 0.020 (Junction deviation, millimeters) $12 = 0.002 (Arc tolerance, millimeters) $13 = 0 (Report in inches, boolean) $20 = 1 (Soft limits enable, boolean) $21 = 0 (Hard limits enable, boolean) $22 = 1 (Homing cycle enable, boolean) $23 = 10 (Homing direction invert, mask) $24 = 100.000 (Homing locate feed rate, mm/min) $25 = 1000.000 (Homing search seek rate, mm/min) $26 = 250 (Homing switch debounce delay, milliseconds) $27 = 3.000 (Homing switch pull-off distance, millimeters) $30 = 1000 (Maximum spindle speed, RPM) $31 = 0 (Minimum spindle speed, RPM) $32 = 0 (Laser-mode enable, boolean) $100 = 200.000 (X-axis travel resolution, step/mm) $101 = 200.000 (Y-axis travel resolution, step/mm) $102 = 200.000 (Z-axis travel resolution, step/mm) $110 = 2500.000 (X-axis maximum rate, mm/min) $111 = 2500.000 (Y-axis maximum rate, mm/min) $112 = 2500.000 (Z-axis maximum rate, mm/min) $120 = 150.000 (X-axis acceleration, mm/sec^2) $121 = 150.000 (Y-axis acceleration, mm/sec^2) $122 = 150.000 (Z-axis acceleration, mm/sec^2) $130 = 550.000 (X-axis maximum travel, millimeters) $131 = 520.000 (Y-axis maximum travel, millimeters) $132 = 47.000 (Z-axis maximum travel, millimeters) The problem: Absolutely nothing is happening in UGS. I can't get any of the motors to jog/move at all, for any of the axes. When attempting to home the machine, I get the following error messages: [Error] An error was detected while sending '$H': (ALARM:9) Homing fail. Could not find limit switch within search distances. Try increasing max travel, decreasing pull-off distance, or check wiring. Streaming has been paused. [Error] Error while processing response <ok>: An unexpected command was completed by the controller. The motors are receiving power, I confirmed that they do not turn when power is supplied (and they do turn when the power is off). I tested the wiring to the stepper motors and all are receiving between 34 and 36v. UGS is connecting and I can view/modify the GRBL settings, but I can't make any type of movement. I do not currently have limit switches installed on the machine, so I've opted for soft limits in the GRBL settings. Stepper motor drivers are wired to the Arduino in the following manner: X PULSE+ to Pin 2 Y PULSE+ to Pin 3 Z PULSE+ to Pin 4 X DIR+ to Pin 5 Y DIR+ to Pin 6 Z DIR+ to Pin 7 All PULSE- and DIR- wired to Arduino GRND pin With the 1000mm x 1000mm machine, I know I need to update my maximum travel ($130-$132), but I don't think that would be stopping the machine from moving at all since its still got a decent range. From what I've read elsewhere, the Arduino pins (2-7) are set up as the default. Is this correct or do I need to add this code to the Arduino for it to function correctly? If so, how? Are there any other modifications that should be made to the settings above for the WorkBee to function correctly? Any advice/direction would be greatly appreciated!
You are using an Arduino Mega. You need a Arduino Uno or Nano. The pin assignment is not the same. This may help if you stick with the Mega, Arduino Mega 2650 Pinout question? · Issue #390 · grbl/grbl