2014. július 24., csütörtök

Rotational speed measurement - experiment

An essential part of the whole CNC spindle control is the measurement of the rotational speed.
At first I thought, that I add an optical transponder what will measure the rotational speed.
I went further than this. Even I designed a new plastic rotor with an integrated encoder ring.
Yesterday I started to play with the MOSFET based driver for switching on and of the spindle. During this something flashed to my mind:
The motor itself is a highly inductive load, in addition this is a brushed DC one. When there is variation in the magnetic field when the brush switch from one winding to an other there is a massive fluctuation in the current. The frequency of this is proportional to the rotational speed of the motor.
If this is true, that can be measured. I picked a fan (because placing the CNC and the oscilloscope into close proximity needs some transportation), a PSU, a serial resistor and an oscilloscope:


And the result:

Just for fun I exchanged the resistor with a 470uH inductor.
The result even more dramatic:


2014. július 21., hétfő

CNC Improvement 6. - Parts removed

During the weekend I removed all unnecessary things from the box of the controller.
This was it look like originally:


This is after removal of the parts:



The removed parts:


Yes you see it right. I thrown away the whole control electronics of the spindle. It looks like that is impossible to me to use this as part of a closed loop control.
As a for the first step the spindle will run on it's full speed.
This is what I done already:

Here is the last missing part:


Everything assembled together:





The second step will be, to drive a MOSFET from that one of the controller board's relay output and this will switch the spindle on and off. In this place I would use an SSR, but I had very bad experience with the DC ones in my 3D printer (due the working theory just a BJT can be used effectively in it, and the BJT has to high voltage drop for this type of high current driving). This only solve the switching and not the rotational speed control from the LinuxCNC.
The third step will be the closed loop controller. To be able to implement it the spindle have to get an equipment for rotational speed measurement. This is planed to solve with the exchange of the plastic rotor and an optocoupler. The controller itself will be an MCU based PID controller with rotational speed display. The setting of the rotational speed will come from LinuxCNC. The LinuxCNC has a low frequency (10Hz) PWM output possibility. I'll measure the pulse width of this PWM, and set the motor controller to it in big steps (100-500 rpm, what I haven't decided yet). I need the big steps, that the accuracy of the measurement do not cause the instability of the control.

2014. július 18., péntek

CNC Improvement 5. - PSU Finished

I'v finished the power supply. Everything connected, boxed, measured.
It started on the first switch on.
Here is the result:




From the power supply part only the reconstruction of the CNC controller left.

2014. július 16., szerda

CNC Improvement 4. - Front- and backplates

After I successfully finished the tests with the aluminum test sheet, I started the real work.
Here are the finished front- and backplates:



And with sockets and switch:


2014. július 12., szombat

CNC Improvement 3. - aluminum work

On Thursday I done some quick shopping. I bought a connecting socket for the spindle and some new HSS milling bit.
Yesterday morning I connected the new PSU in without any speed control.
Look the miracle, it was milling the hole without any hassle.


 
This means I don't need to buy a new spindle motor, because the old one is doing it's job, just the power supply inadequate. Only the rotation speed control's question need to be solved, and find out the maximum feed rate.
Now coming the milling of the front and back panels of the external PSU.

2014. július 10., csütörtök

CNC - working with aluminum

For my CNC improvement project I wanted to mill the front and back panels of the PSU enclosure. I never worked before with aluminum on my CNC mill, so I started to look around on the internet to decide the feed rate, and the cutting depth. On the top of this, I'm cautious man, so looked around in my workshop to find a piece of aluminum sheet for experimenting.
I set the parameters based on my thoughts. Started the machine and crack. The milling bit broke.
This will not work. I set the parameters massively lower rates. This time I was able to mill something like 10 mm before the spindle stoped and the next bit broke.


I think over the whole thing once more. I can't decide, that only the power supply isn't powerfull enough, or the spindle drive itself also the problem. I think I'll go to the forum to ask around.

2014. július 4., péntek

Fotek SSR-40DD Teardown

I tear apart the SSR producing 4V voltage drop. Removed most of the rubber and plastic crap inside.
Here is the result:



The key components:
  • Motorola H11D1 optocoupler
  • NEC 2SA1009 BJT (This is mostly an assumption, because it only have a A1009 sign on it)
  • ST BUF420A BJT
A silent note: using a 30A BJT in a 40A rated equipment maybe not a good idea.