Finished my BIG OX build with a 400w spindle, TinyG and speed controller (kit from smw3d.com & more)
There are multiple settings to get the TinyG setup so that when you give an "M3S5000" the spindle actually does 5000 RPMs..
To save you LOTS of time, the following settings will hit very close RPMs for the s5000 to s12000 settings:
(ccw is NOT included)
[p1frq] pwm frequency 15000 Hz
[p1csl] pwm cw speed lo 5600 RPM
[p1csh] pwm cw speed hi 14000 RPM
[p1cpl] pwm cw phase lo 0.130
[p1cph] pwm cw phase hi 0.360
[p1pof] pwm phase off 0.000 [0..1]
The following table shows the voltage for each RPM (when using the pot) and the actual "no load" RPM for the "S" settings (using a tach):
"s" voltage actual RPM
05000 18.49 5065
06000 22.18 5748
07000 25.88 6998
08000 29.58 8036
09000 33.28 9087
10000 36.98 10024
11000 40.67 11056
12000 44.37 11966
>> Started looking at the CCW settings but they seem to be unique...
Walt

settings for 400w spindle and TinyG
hi & Low phase and RPM settings to get desired result for m3sxxx settings