RAMPS 1.4 Spindle Speed

Don’t know if this is what you’re looking for but I found an inverter circuit I posted in this thread that worked to drive a +12v pwm signal from the fan output on the RAMPS board.