CAD CAM EDM DRO - Yahoo Group Archive

Re: CNC: Spindle speed control

on 2003-03-26 02:37:46 UTC
Hello All;

I have spent the last 2 months learning about the PIC Micro and have
90% completed the development and debugging of a PIC-Based PWM to DC
Controller designed around MACH1.

The 5hz output from MACH1 is just too slow to allow it to provide a
stable control voltage, so the only way to do it is to capture the
PWM signal and control the output via software routines.

The Micro runs at 4mhz and samples the 5mhz pulse from MACH1. As it
is running much faster than MACH1's PWM Pulse, It can do a LOT of
stuff in between ulses. Firstly, it has watchdog (charge pump)
safety compatible with MACH, it also has programmable speed ramp
up / ramp down (for large spindles).

This ramp also works if communication is broken between the parallel
port and the speed controller, so if the PC crashes, hangs or
someone accidentally disconnects the parallel port cable, the
controller will not immediatly shut of all control to the motor, but
will ramp down at the programmed ramp rate.

During direction change(M4>M3, M3>M4) , it will automatically ramp
down the motor to zero, change direction (energize a relay) and then
ramp up to speed in opposite direction again.

It has a rsolution of 1000 steps, so if your max spindle speed is
3000 RPM, it can control to 3 RPM, the accuracy is about 99.4% and
it outputs a DC Control voltage from 0 to 5v.

It has programmable minimum speed, maximum speed, resolution & ramp
speed. It has outputs to LEDs and / or relays for M3, M4, Motor On,
Ramp Up/ Down, Max Speed and 0-5v control voltage. The resolution
allows small fluctuations in the input PWM not to effect the output
control voltage, it is defaulted to 5 RPM so if any change is less
than 5 RPM, then the output voltage will not vary.

I have monitored the control voltage output over many hours, it is
stable within a couple of millivolts!

It can also be hooked up to a Serial LCD Display to show the status,
but other than in debugging, I'm not sure if its necessary !

It does this using 3 inputs, PWM, Charge Pump & Direction and If you
can think of any other features, I would welcome any suggestions.

Cheers

PeterC

Discussion Thread

J. Malte Stoeckhert 2003-03-25 14:02:35 UTC CNC: Spindle speed control Bob Simon 2003-03-25 14:22:57 UTC Low cost torque amplifier caudlet 2003-03-25 14:37:18 UTC Re: CNC: Spindle speed control Andrew Mawson 2003-03-25 14:44:12 UTC Re: CNC: Spindle speed control James Cullins 2003-03-25 16:06:58 UTC Re: [CAD_CAM_EDM_DRO] CNC: Spindle speed control Matt Shaver 2003-03-25 17:04:45 UTC Re: [CAD_CAM_EDM_DRO] Low cost torque amplifier Jon Elson 2003-03-25 22:04:50 UTC Re: [CAD_CAM_EDM_DRO] Low cost torque amplifier Peter Cruickshank 2003-03-26 02:37:46 UTC Re: CNC: Spindle speed control Peter Cruickshank 2003-03-26 03:00:40 UTC CNC: Spindle speed control - F to V Bob Simon 2003-03-26 06:41:33 UTC Re: [CAD_CAM_EDM_DRO] Low cost torque amplifier Erie Patsellis 2003-03-26 07:19:14 UTC RE: [CAD_CAM_EDM_DRO] Re: CNC: Spindle speed control J. Malte Stoeckhert 2003-03-26 08:34:11 UTC Re: CNC: Spindle speed control ccq@x... 2003-03-26 12:29:03 UTC Re: [CAD_CAM_EDM_DRO] Re: CNC: Spindle speed control Peter Cruickshank 2003-03-27 04:27:44 UTC Re: CNC: Spindle speed control