Welcome! Log In Create A New Profile

Advanced

CNC mill : which firmware to manage spindle speed regulation?

Posted by pierrepoulpe 
CNC mill : which firmware to manage spindle speed regulation?
February 02, 2016 05:35AM
Hello,

I have a small CNC mill (sable 2015), with a parallel port driven electronic, with linuxcnc running on my old laptop (with // port).

I have also an unused arduino mega+ RAMPS 1.4 board.

I'd like to work with this mill without depending on this old laptop... so I had the plan to swap the original electronic by this RAMPS.
I think any firmware can do the job, basic 3 cartesian axis, no extruder, no heater, no endstop etc.....

But I have a second need : the original spindle runs way too fast : 28000rpm. I will use it as a precision drill table with a 4mm bit in alu. 1000-4000 rpm should be a better speed range.
To do a good job, I'd like to control motor speed with an optical speed encoder (1 or 2 pulse per rev is enough), and a PWM output, managed by PID loop.

I know than heater is managed by a PID loop.
At what frequency this pid is refreshed?
What's the upper limit to increase the PID calculation frequency?
How easy is to modify the code to run a PID loop with an optical encoder?
And to include management of the gcode command for spindle speed?

Well, on which firmware would you start to do that?
Some pointers would be appreciated.


Thanks,
Pierre

Edited 1 time(s). Last edit at 02/02/2016 05:37AM by pierrepoulpe.
Sorry, only registered users may post in this forum.

Click here to login