Homing problems

Hi, I’ve put homing switches on my hobby built CNC using GRBL on Arduino Uno. It homes for X and Y but Z doesn’t move. I know the switch works because on the Openbuilds control the Z switch indicates on and off as the switch clicks when I jog it. I’ve gone through GRBL but can’t find anything else I should set. I’m puzzled any help as where to start looking would be appreciated, Oh I’m a beginner to this.

Check if the correct HOMING_CYCLE params are activated in config.h:

#define HOMING_CYCLE_0 (1<<Z_AXIS) // REQUIRED: First move Z to clear workspace.
#define HOMING_CYCLE_1 ((1<<X_AXIS)|(1<<Y_AXIS)) // OPTIONAL: Then move X,Y at the same time.

1 Like

Thanks, yes thats correct set to 1 and X and Y both home correctly but Z doesn’t.

And jogging Z works?

yes jogging works and when the switch actuates the software recognizes it

What do you mean with “… correct set to 1”?

Both lines “HOMING_CYCLE_0…” and “HOMING_CYCLE_1…” should be active to get first Z homing, then X & Y homing.

Can you please post this part of your config.h.

Thanks everyone for you’re help. I’ve finally sorted it out, I think GRBL was corrupted somehow, I’ve reloaded it onto the Arduino Uno and now now its homing perfectly.