Spindle control for cnc milling using Repetier
I'm not new to using Repetier-Host for printing, but I'm very new to using it as a cnc mill.
I am using a router which has a controller compatible with Mach3 PWM. The PWM has two electrical connections, GND and PMW.
I have no idea where to start to make this compatible with Repetier. Can Repetier send a PWM signal to the router controller and not step/dir, and if so, how would I do this?
I am using a router which has a controller compatible with Mach3 PWM. The PWM has two electrical connections, GND and PMW.
I have no idea where to start to make this compatible with Repetier. Can Repetier send a PWM signal to the router controller and not step/dir, and if so, how would I do this?
Comments
I very much appreciate it. This has been very helpful.
I have a follow-up question I posted as a new discussion, "Clarification needed on "High Pin Enables" when setting up Laser/CNC in Repetier firmware". Which I could use some help on.
As an aside, you would be VERY surprised what a basic CNC can do. I use a Bridgeport BOSS 6 made in 1979, and it's a brute. It's also very stupid. It's CPU is much less capable than the RUMBA board and it uses a completely manual speed control, no z probe, etc. Yet I can make fantastic things with it. I expect Repetier will be even better!
1. Fix RUMBA pin definitions to get HE0,1,2 and HB on the right PWM channels
2. Configure HE2 as a PWM THERMO_FAN with configuration tool.
3. In EXTRUDER.cpp substitute spindleSpeed instead of T2 in HE2 control loop.
4. In DRIVERS.cpp modified quite a bit but nothing to do with the CNC PWM control purely buggy as spindleSpeed and RPM didnt always update after a M3,M40 Sxxx or M5 command
/*********** DJC MODIFIED ****************************/