How to wire 48v quiet spindle w/48v power supply & 24v power supply?

I should be here. Scroll down - Anyone know how to make a spindle speed display - #22 by Earwigger

Had to do four versions of the code before I could find a way to read above 24k RPMS. This seems to work. If you program Arduino you can certainly make this your own.