Spindle motor control
Got this spindle from the bay of fleas
www.ebay.co.uk/itm/CNC-Spindle-0-3KW-Mot...&hash=item3a8f660c16
I have been using it manually but its getting to be a pain having to turn the motor on and turn it off again at the end of the run, there have been a couple of occassions where I have forgotten to turn it on and it makes a bit of a mess of the job and doesnt do the cutter any good either.
I have had a play with my multimeter and the small jst connector on the board gives me 0, 0-7 and 7 volts, the 0 -7 volts depends on the setting of the speed controller knob. Could I hook this up to linuxcnc and control the spindle via g-code if so how do I do it. I assume that I would have to remove the VR or disable it some way so it did not affect the signal coming from linuxcnc but other than that I have no idea what to do.
Thanks Bill
Please Log in or Create an account to join the conversation.
www.cnc4pc.com/Store/osc/product_info.ph...h=25&products_id=303
www.cnc4pc.com/Store/osc/product_info.ph...th=25&products_id=58
There are some threads here on the the C6, here is John's
www.linuxcnc.org/emc2/index.php/italian/...-speed-control-board
I use a Mesa 7I47S to control a VFD spindle.
store.mesanet.com/index.php?route=produc...=7i47s&product_id=99
www.mesanet.com/pdf/motion/7i47sman.pdf
Rick G
Please Log in or Create an account to join the conversation.
- Mike_Eitel
- Offline
- Platinum Member
- Posts: 1150
- Thank you received: 184
Simple and cheap...
Use the spindle-on output ( i think available in all hal configs )
and control a small relais. That can short the potentiometer between 0 and middle pin. Only beware of max position. Maybe you have to insert a protective resistor.
Mike
Please Log in or Create an account to join the conversation.
Is the driver that is supplied with the motor capable of being controlled by a signal form Linuxcnc. I assume that the signal will go to the centre connector of the jst as that is the one that varies with the speed of the motor and Linuxcnc will require to be configured for spindle PWM control.
Hardware side is it just a case of connecting the centre connector to a pin on the parallel port.
Software side is it just configure the HAL file to use the selected pin to control the signal.
Bill
Please Log in or Create an account to join the conversation.
If you read the analog output section of the Mesa link that was posted a good description of how this works and how to handle this is explained.
Just hooking up a parallel port pin to the center is not going to give you the 0-7 volt output you are looking for, not to mention the possible damage to the parallel port, speed control, etc..
Rick G
Please Log in or Create an account to join the conversation.
I have had a play with my multimeter and the small jst connector on the board gives me 0, 0-7 and 7 volts, the 0 -7 volts depends on the setting of the speed controller knob.
Of you want a really silly solution, but one with good electrical isolation, you could rig up a radio-control style servo to turn the knob for you, under LinuxCNC control.
However, it is probably better to replace the physical potentiometer with an electronically-controlled one. As well as the others linked, there is also:
store.mesanet.com/index.php?route=produc...spinx&product_id=205
Please Log in or Create an account to join the conversation.
My understanding of PWM is full power is always sent to the motor but it is not there all the time. A bit like flicking a light switch on and off repeatedly, the faster you swich it the faster the motor will run and visa versa.
The confusion I think is beacuse of the motor driver. On the board I have it has a pot to control the speed which is turned to set the speed you require, where does the PWM come into that as once the pot it it set it does not vary, is it done on the board itself?
www.cjh.com.au//PWM%20Spindle%20Control%20using%20Mach3.pdf
Am I right in thinking that the Converting PWM to DC voltages board mentioned in the above article could be used to replace the pot on the board I have. Where the PWM to DC board has 12v GND and Analogue out, could I replace them with the three pins in the jst connector which are Gnd, 7V and I assume it would be the Analogue in to the centre.
One last question does the selected pin on the parallel port supply the pulse for the PWM?
Please Log in or Create an account to join the conversation.
My understanding of PWM is full power is always sent to the motor but it is not there all the time. A bit like flicking a light switch on and off repeatedly, the faster you swich it the faster the motor will run and visa versa.
No, it doesn't matter how fast you flick the switch on and off, what matters is the relative amount of time that the switch is on and off.
Except that if you don't flick the switch fast enough the lights will flash noticeably, so you need to flick your switch at least 20 times a second or the neighbours will wonder what you are up to.
The confusion I think is beacuse of the motor driver. On the board I have it has a pot to control the speed which is turned to set the speed you require, where does the PWM come into that as once the pot it it set it does not vary, is it done on the board itself?
The pot has 0V on one pin, 7V on the other and a variable (between 0 and 7V) voltage on the other pin. You need to find a way to control that variable voltage from LinuxCNC. The simplest way is to take the 0V and 7V and PWM them into a low-pass filter controlled by a PWM signal from LinuxCNC. (This is exactly what the $25 Mesa SpinX board does).
One last question does the selected pin on the parallel port supply the pulse for the PWM?
Yes, exactly. The P-Port can't do any analogue values, it is digital. So we use a PWM digital signal to create analogue voltages in the analogue world outside the PC.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
What does that PWM signal to DC voltage convertor do in that PDF I linked to, is it not the same as the spinx board?
I think that the SPINX includes isolation, which the example in the pdf doesn't. (because he is using an isolated BoB).
If you want to make your own it could be quite a lot simpler than that one. A totem-pole output opto-isolator, one resistor and one cap works fine.
(it has to be totem-pole to actively discharge the filter when the pulse input is low).
picasaweb.google.com/lh/photo/ss1bl5Wh0i...pFm0?feat=directlink
You don't necessarily need a board, you can just solder surface-mount to the legs of the opto and heat-shrink it into the middle of a cable.
He shows it using 12V, but you would be better using the 0V and 7V on the board, which is another reason to isolate in the converter, as the pot might not have the same 0V as logic ground.
(For example, the KBIC DC motor drivers float the pot at +100V)
Please Log in or Create an account to join the conversation.