Clarification on Pins for Coolant & Spindle control in sparkfun stepoko

I am using sparkfun stepoko board for my CNC M/C. I want to use coolant on/off and Spindle Control also.

Which pins should I connect for coolant on/off and Spindle control and G code also required?

Could you please clarify.

This isn’t something we support, but the pins exist on the Stepoko board.

For spindle control you need 2 pins, SPINDLE_DIR and SPINDLE_PWM. Those are on pins D13 & D11 respectively and control direction and speed.

For coolant, you want COOLANT_ENABLE and that’s on pin A3.

Check the [GRBL0.9 documentation for details on what G-code is needed to enable and control those pins.](Configuring Grbl v0.9 · grbl/grbl Wiki · GitHub)