A bit of a specialist one this. If you are using GRBL software to control your CNC machine, and want to use a VFD spindle (rather than a DC motor) then this is the video for you. It covers how to convert the speed output to the signals required by a VFD drive. This is what I did for my recent metal capable CNC build.