CNC shield V4 (control 2 stepper and 2 servos)

Hi,

Currently I use a Arduino Nano, CNC shield V4 with 2 steppers and 1 servo (on the Z endstop pin)

Is it possible to control 2 steppers and 2 servos with this shield? if so, how to wire it and what change do I have to make to GRBL?

Thanks in advance,
Roy

I do not know if there's a version of grbl out there that lets you use 2 servos with the nano. From wiring, it's no problem, the code for servo control is in spindle_control.[ch], but what 2 axis do you want to use for servos?

like a pan/tilt function

In that ase I would strongly advise against using servos. Reason is that each servo has its ownb control loop which is uncorrelated with the rest of the system. So if you do anything CNC - e.g. pan/tilt a router - it will not work (in the sense a CNC should work).

Ok, but I like to use the stepper to move in the X / Y direction... (using grbl?)

And the on a specific location I like to do a pan/tilt motion.. How would you do that?

If it's noz CNC, then you can get away with the easier to use Servo + Stepper library. And you can still use the cnc shield :slight_smile:

I forgot: you might also try the AccelStepper library, as it supports acceleration and deceleration --> higher speed than the Stepper-library:

https://www.airspayce.com/mikem/arduino/AccelStepper/