How to control 4 axis by Arduino uno and CNC Shield V3

Hi everyone,
I’m using an Arduino UNO with a CNC Shield V3, and I want to control 4 stepper motors (X, Y, Z, A) independently.
I know GRBL supports only 3 axes by default.
Can anyone please guide me or share a firmware/code example that allows controlling a 4th axis (A-axis) using this hardware setup?
Any GitHub repo, firmware fork, or custom modification reference would be highly appreciated.

Hardware setup:

Arduino UNO

CNC Shield V3

4 × A4988 drivers

4 × NEMA 17 motors

Thank you in advance!

Kindly read the pinned post re 'How to get the most from the forum'.
NOTE this is not a paid design or code shop. You are expected to do your own work and if/when you get stuck one of the helpers will guide you.

1 Like