gSender control of a spindle using an Arduino Nano and a Huanyang VFD

Hi all, I have a 1.5kW spindle attached to a Huanyang VFD that I manually adjust to set the speed and start/stop the spindle. I control the movement of my CNC with gSender via a GRBL Arduino Nano controller. I am running gSender 1.5.7 and noted that there is a spindle control option in the config settings. I would like to control the spindle start/stop and speed through the software if possible. I bought a PWM to voltage converter to make the frequency output pin of the Arduino into a scalable voltage to input into the Huanyang VFD, which I think is correct. However, I cant work out a way to get an output from the Nano to turn on/off the spindle. Has anyone succeeded in setting up a pseudo DIY CNC to work in this way, or am I just trying to do the impossible with an Arduino Nano based control system? Any suggestions gratefully received!

You could possibly wire up a RS485 transceiver module to the nano and control the spindle that way. I’m using an ESP32 flashed with GRBL-hal for a plasma table project. No spindle but I have become a fan of the ESP32 over Arduinos due to cost, performance and versatility.