Quiet Cut Spindle On ChiliPeppr with TinyG
I am helping a friend build an OX CNC kit from smw3d.com (terrible instructions and horrific post sale support) $1,500 bucks worth of parts, and no info on how to set up any of the electonics. Anyways...
His kit came with a Quiet Spindle upgrade (on a 48V supply). This spindle uses the PWM connection on the TinyG via a motor controller.
I found some information in an Inventables Blog post (blog post here https://www.inventables.com/projects/quiet-cut-spindle-upgrade-tinyg ) where it shows a similar Speed Controller, ours has a built in Pot next to the PWM jumper so it cant be removed, again Zero support from where it was purchased Boo..smw3d.com. Also the blog post offers some information on how to add PWM code to configure the spindle. However its all done in TgFX. They say to input the PWM settings one at a time into the G Code entry window ($p1frq=5000 $p1csl=0 $p1csh=10000 $p1cpl=0 $p1cph=1 $p1pof=0) I think I did it wrong...
Now for some questions. First off will that same code be used to set up the spindle in ChiliPeppr? Also I dont have a G code entry window. I have a Serial Port Console window. See the ChiliPeppr GUI that I see here ---> http://gyazo.com/9f18533aa9a5dbdbad728441e70efc61
Since the quiet spindle upgrade (from smw3d.com) comes with a motor controller that's different than the one shown on the inventables website. I dont know if the jumper position is right or not. Jumper on one way I get no spindle movement, on the other its always on, and with limited code control. You see, when I power the machine the spindle starts to turn, and I can't use M code to shut it down completely. M3 is supposed to turn it on (but its always on), M03 it actually speeds up the spindle. M05 Is supposed to shut it down, but it slows it to the slowest speed that I have observed, but not off. S2000 should offer up a slow spindle speed, but it does not. However S8000 does ramp the speed up to the highest rpm observed. When the motor is running at 8,000 rpm via the S8000 command, if I type M05 I get the slowest speed (again not off)
In ChiliPeppr there is no Spindle control at all. So I assume you are supposed to control it via Gcode or M and S commands. Since the M and S controls dont work as they should, I think I must have not config'd the PWM spindle correctly. Any and all information or advice is greatly appreciated.
Sorry for the long and drawn out first post. I spent 11 hours yesterday trying to get this machine up and running, but its just not right. However it is a live https://youtu.be/YvVN43GgR-A