There are a few changes in config.h that you need to make on the stock Grbl v0.9 code branch to get the SuperPID working.
I'm going to list them here just for funzies. These are all changes from the default config.h file.
Code: Select all
Change #define DEFAULTS_GENERIC to #define DEFAULTS_SHAPEOKO_3 Uncomment #define INVERT_SPINDLE_ENABLE_PIN Set the max/min spindle speed here #define SPINDLE_MAX_RPM 30000.0 #define SPINDLE_MIN_RPM 0.0 Uncomment #define USE_SPINDLE_DIR_AS_ENABLE_PIN
If you made it this far, I have a problem that I hope someone has the solution to.
I set the SPINDLE_MIN_RPM to 5000 and SPINDLE_MAX_RPM to 30000. If I send S5000 then I get 5000 RPM on the spindle. If I send S30000 then I get 30000 RPM. But the low end of the range is not right. It won't increase the spindle speed above 5000 until I send S10000, and then the spindle runs at 6070 RPM.
Should I be setting MIN/MAX differently? Or is the Grbl controller sending voltage and not PWM? Should I wire it like it's sending a voltage level? Maybe I'll try that and see...
Edited: MIN should be Zero and works as advertised. See later posts.